Permalink
Browse files

added zh en localization

api content will move with the mouse wheel
  • Loading branch information...
1 parent 01e5b47 commit 02cd6f86a4e4c207b7004ec065687b3b0fe4b9a5 @lizhepro committed Jul 21, 2012
Showing with 19,292 additions and 157 deletions.
  1. +10 −0 app.js
  2. +1 −0 locales/.js
  3. +9 −0 locales/en.js
  4. +9 −0 locales/zh.js
  5. +0 −9 node_modules/.bin/stylus
  6. +1 −0 node_modules/.bin/stylus
  7. +1 −1 node_modules/express/node_modules/connect/lib/connect.js
  8. +1 −1 node_modules/express/node_modules/connect/lib/middleware/csrf.js
  9. BIN node_modules/express/node_modules/connect/lib/public/icons/page.png
  10. BIN node_modules/express/node_modules/connect/lib/public/icons/page_add.png
  11. BIN node_modules/express/node_modules/connect/lib/public/icons/page_attach.png
  12. BIN node_modules/express/node_modules/connect/lib/public/icons/page_code.png
  13. BIN node_modules/express/node_modules/connect/lib/public/icons/page_copy.png
  14. BIN node_modules/express/node_modules/connect/lib/public/icons/page_delete.png
  15. BIN node_modules/express/node_modules/connect/lib/public/icons/page_edit.png
  16. BIN node_modules/express/node_modules/connect/lib/public/icons/page_error.png
  17. BIN node_modules/express/node_modules/connect/lib/public/icons/page_excel.png
  18. BIN node_modules/express/node_modules/connect/lib/public/icons/page_find.png
  19. BIN node_modules/express/node_modules/connect/lib/public/icons/page_gear.png
  20. BIN node_modules/express/node_modules/connect/lib/public/icons/page_go.png
  21. BIN node_modules/express/node_modules/connect/lib/public/icons/page_green.png
  22. BIN node_modules/express/node_modules/connect/lib/public/icons/page_key.png
  23. BIN node_modules/express/node_modules/connect/lib/public/icons/page_lightning.png
  24. BIN node_modules/express/node_modules/connect/lib/public/icons/page_link.png
  25. BIN node_modules/express/node_modules/connect/lib/public/icons/page_paintbrush.png
  26. BIN node_modules/express/node_modules/connect/lib/public/icons/page_paste.png
  27. BIN node_modules/express/node_modules/connect/lib/public/icons/page_red.png
  28. BIN node_modules/express/node_modules/connect/lib/public/icons/page_refresh.png
  29. BIN node_modules/express/node_modules/connect/lib/public/icons/page_save.png
  30. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white.png
  31. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_acrobat.png
  32. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_actionscript.png
  33. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_add.png
  34. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_c.png
  35. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_camera.png
  36. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_cd.png
  37. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_code.png
  38. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_code_red.png
  39. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_coldfusion.png
  40. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_compressed.png
  41. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_copy.png
  42. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_cplusplus.png
  43. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_csharp.png
  44. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_cup.png
  45. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_database.png
  46. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_delete.png
  47. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_dvd.png
  48. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_edit.png
  49. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_error.png
  50. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_excel.png
  51. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_find.png
  52. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_flash.png
  53. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_freehand.png
  54. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_gear.png
  55. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_get.png
  56. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_go.png
  57. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_h.png
  58. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_horizontal.png
  59. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_key.png
  60. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_lightning.png
  61. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_link.png
  62. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_magnify.png
  63. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_medal.png
  64. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_office.png
  65. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_paint.png
  66. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_paintbrush.png
  67. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_paste.png
  68. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_php.png
  69. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_picture.png
  70. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_powerpoint.png
  71. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_put.png
  72. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_ruby.png
  73. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_stack.png
  74. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_star.png
  75. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_swoosh.png
  76. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_text.png
  77. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_text_width.png
  78. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_tux.png
  79. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_vector.png
  80. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_visualstudio.png
  81. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_width.png
  82. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_word.png
  83. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_world.png
  84. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_wrench.png
  85. BIN node_modules/express/node_modules/connect/lib/public/icons/page_white_zip.png
  86. BIN node_modules/express/node_modules/connect/lib/public/icons/page_word.png
  87. BIN node_modules/express/node_modules/connect/lib/public/icons/page_world.png
  88. +2 −4 node_modules/express/node_modules/connect/node_modules/formidable/package.json
  89. 0 node_modules/express/node_modules/connect/node_modules/formidable/test/run.js
  90. +19 −0 node_modules/express/node_modules/connect/node_modules/mime/LICENSE
  91. +63 −0 node_modules/express/node_modules/connect/node_modules/mime/README.md
  92. +104 −0 node_modules/express/node_modules/connect/node_modules/mime/mime.js
  93. +34 −0 node_modules/express/node_modules/connect/node_modules/mime/package.json
  94. +55 −0 node_modules/express/node_modules/connect/node_modules/mime/test.js
  95. +1,588 −0 node_modules/express/node_modules/connect/node_modules/mime/types/mime.types
  96. +59 −0 node_modules/express/node_modules/connect/node_modules/mime/types/node.types
  97. +6 −0 node_modules/express/node_modules/connect/node_modules/qs/.gitmodules
  98. +1 −0 node_modules/express/node_modules/connect/node_modules/qs/.npmignore
  99. +4 −0 node_modules/express/node_modules/connect/node_modules/qs/.travis.yml
  100. +78 −0 node_modules/express/node_modules/connect/node_modules/qs/History.md
  101. +12 −0 node_modules/express/node_modules/connect/node_modules/qs/Makefile
  102. +58 −0 node_modules/express/node_modules/connect/node_modules/qs/Readme.md
  103. +17 −0 node_modules/express/node_modules/connect/node_modules/qs/benchmark.js
  104. +51 −0 node_modules/express/node_modules/connect/node_modules/qs/examples.js
  105. +2 −0 node_modules/express/node_modules/connect/node_modules/qs/index.js
  106. +1 −0 node_modules/express/node_modules/connect/node_modules/qs/lib/head.js
  107. +252 −0 node_modules/express/node_modules/connect/node_modules/qs/lib/querystring.js
  108. +1 −0 node_modules/express/node_modules/connect/node_modules/qs/lib/tail.js
  109. +38 −0 node_modules/express/node_modules/connect/node_modules/qs/package.json
  110. +254 −0 node_modules/express/node_modules/connect/node_modules/qs/querystring.js
  111. +1,202 −0 node_modules/express/node_modules/connect/node_modules/qs/test/browser/expect.js
  112. +18 −0 node_modules/express/node_modules/connect/node_modules/qs/test/browser/index.html
  113. +8,981 −0 node_modules/express/node_modules/connect/node_modules/qs/test/browser/jquery.js
  114. +163 −0 node_modules/express/node_modules/connect/node_modules/qs/test/browser/mocha.css
  115. +4,201 −0 node_modules/express/node_modules/connect/node_modules/qs/test/browser/mocha.js
  116. 0 node_modules/express/node_modules/connect/node_modules/qs/test/browser/qs.css
  117. +351 −0 node_modules/express/node_modules/connect/node_modules/qs/test/browser/qs.js
  118. +145 −0 node_modules/express/node_modules/connect/node_modules/qs/test/parse.js
  119. +73 −0 node_modules/express/node_modules/connect/node_modules/qs/test/stringify.js
  120. +6 −11 node_modules/express/node_modules/connect/package.json
  121. +12 −27 node_modules/express/node_modules/connect/test.js
  122. +3 −0 node_modules/i18n/.npmignore
  123. +4 −0 node_modules/i18n/.travis.yml
  124. +177 −0 node_modules/i18n/README.md
  125. +8 −0 node_modules/i18n/TODO.md
  126. +285 −0 node_modules/i18n/i18n.js
  127. +1 −0 node_modules/i18n/index.js
  128. +17 −0 node_modules/i18n/locales/de.js
  129. +17 −0 node_modules/i18n/locales/de.json
  130. +17 −0 node_modules/i18n/locales/en.js
  131. +17 −0 node_modules/i18n/locales/en.json
  132. +14 −0 node_modules/i18n/node_modules/sprintf/README.md
  133. +189 −0 node_modules/i18n/node_modules/sprintf/lib/sprintf.js
  134. +21 −0 node_modules/i18n/node_modules/sprintf/package.json
  135. +37 −0 node_modules/i18n/package.json
  136. +28 −0 node_modules/i18n/test/i18n.configure.js
  137. +81 −0 node_modules/i18n/test/i18n.test.js
  138. +31 −0 node_modules/i18n/vows/i18n.configure.vows.js
  139. +157 −0 node_modules/stylus/Readme.md
  140. 0 node_modules/stylus/bin/stylus
  141. +56 −1 node_modules/stylus/lib/functions/index.js
  142. +13 −0 node_modules/stylus/lib/nodes/media.js
  143. +1 −1 node_modules/stylus/lib/stylus.js
  144. +3 −2 node_modules/stylus/lib/visitor/evaluator.js
  145. +34 −0 node_modules/stylus/node_modules/cssom/README.mdown
  146. +1 −1 node_modules/stylus/node_modules/cssom/lib/CSSKeyframeRule.js
  147. +3 −1 node_modules/stylus/node_modules/cssom/lib/CSSStyleSheet.js
  148. +11 −11 node_modules/stylus/node_modules/cssom/lib/parse.js
  149. +6 −8 node_modules/stylus/node_modules/cssom/package.json
  150. +5 −5 node_modules/stylus/node_modules/debug/package.json
  151. +2 −7 node_modules/stylus/node_modules/mkdirp/package.json
  152. +5 −9 node_modules/stylus/package.json
  153. +8 −20 node_modules/stylus/testing/small.styl
  154. +49 −12 public/javascripts/client.js
  155. +84 −0 public/javascripts/jquery.mousewheel.js
  156. +24 −26 views/index.jade
View
10 app.js
@@ -3,11 +3,20 @@
*/
var express = require('express')
, gzippo = require('gzippo')
+, i18n = require('i18n')
, routes = require('./routes');
+i18n.configure({
+ locales:['en', 'zh']
+});
var app = module.exports = express.createServer();
+app.helpers({
+ __i: i18n.__
+, __n: i18n.__n
+});
+
// Configuration
@@ -18,6 +27,7 @@ app.configure(function(){
app.use(express.bodyParser());
app.use(express.methodOverride());
app.use(require('stylus').middleware({ src: __dirname + '/public' }));
+ app.use(i18n.init);
app.use(app.router);
//app.use(express.static(__dirname + '/public'));
app.use(gzippo.staticGzip(__dirname + '/public'));
View
@@ -0,0 +1 @@
+{}
View
@@ -0,0 +1,9 @@
+{
+ "Changelog": "Changelog"
+, "Feedback": "Feedback"
+, "About me": "About me"
+, "Welcome": "Welcome to Nodejs API"
+, "Rate": "Like it? help me make this better"
+, "Placeholder": "Type whatever you want"
+, "Close": "Close"
+}
View
@@ -0,0 +1,9 @@
+{
+ "Changelog": "更新记录"
+, "Feedback": "反馈"
+, "About me": "关于我"
+, "Welcome": "欢迎使用Nodejs API"
+, "Rate": "觉得不错?不妨帮我宣传宣传吧"
+, "Placeholder": "请输入"
+, "Close": "关闭"
+}
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 02cd6f8

Please sign in to comment.