Permalink
Browse files

fixed doc gen and more polite chinese

  • Loading branch information...
1 parent 51f50e6 commit 9102262cf9eb864988cf4845d177396be393e742 @logaan committed Sep 22, 2013
Showing with 7 additions and 9 deletions.
  1. +1 −1 Makefile
  2. +2 −2 README.md
  3. +3 −5 project.clj
  4. +1 −1 test/vlad/test/readme.clj
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.

0 comments on commit 9102262

Please sign in to comment.