Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed doc gen and more polite chinese

  • Loading branch information...
commit 9102262cf9eb864988cf4845d177396be393e742 1 parent 51f50e6
@logaan authored
View
2  Makefile
@@ -1,5 +1,5 @@
doc:
- lein marg
+ lein with-profile doc marg
cp ./docs/uberdoc.html /tmp/uberdoc.html
git checkout gh-pages
cp /tmp/uberdoc.html ./index.html
View
4 README.md
@@ -80,7 +80,7 @@ convenience.
(defmethod chinese-translate :vlad.validations/present
[{:keys [name]}]
- (format "必须填写%s" name))
+ (format "请输入%s" name))
; Other validation translations go here.
@@ -89,7 +89,7 @@ convenience.
(assign-name chinese-field-names)
(translate-errors chinese-translate))
- => {[:email] ["必须填写邮箱"]})
+ => {[:email] ["请输入邮箱"]})
```
## A simple example
View
8 project.clj
@@ -8,9 +8,7 @@
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.5.1"]
[potemkin "0.3.3"]]
- :profiles {:dev {:source-paths ["dev"]
- :dependencies [[lein-marginalia "0.7.1"]
- [midje "1.5.1"]
- [com.stuartsierra/lazytest "1.2.3"]
- [clj-ns-browser "1.3.1"]]}})
+ :profiles {:doc {}
+ :dev {:source-paths ["dev"]
+ :dependencies [[midje "1.5.1"]]}})
View
2  test/vlad/test/readme.clj
@@ -46,7 +46,7 @@
(defmethod chinese-translate :vlad.validations/present
[{:keys [name]}]
- (format "必须填写%s" name))
+ (format "请输入%s" name))
; Other validation translations go here.
Please sign in to comment.
Something went wrong with that request. Please try again.