Permalink
Browse files

language

  • Loading branch information...
smalloranges committed May 30, 2012
1 parent b581b61 commit d29ca62863c083f8429393930ff3837c6cd519a1
Showing with 15 additions and 3 deletions.
  1. +1 −1 app/views/sessions/new.haml
  2. +1 −1 config/application.rb
  3. +1 −1 config/locales/en.yml
  4. +8 −0 config/locales/kaminari.yml
  5. +4 −0 config/locales/zh_cn.yml
@@ -13,7 +13,7 @@
%a.forgot-pwd{:href => "/forgot_pwd"} 忘记密码?
%a.reg{:href => "/register"} 还没注册?
%a{:href => new_douban_services_path}
- %img{:src => "assets/doubanicon-16-full.png"}
+ %img{:src => "/assets/doubanicon-16-full.png"}
- content_for :footers do
= javascript_include_tag "plugin/validate", "dev/login"
View
@@ -37,7 +37,7 @@ class Application < Rails::Application
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
- # config.i18n.default_locale = :de
+ config.i18n.default_locale = :zh_cn
# Configure the default encoding used in templates for Ruby 1.9.
config.encoding = "utf-8"
View
@@ -2,4 +2,4 @@
# See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
en:
- hello: "Hello world"
+ huacaor: "huacaor"
@@ -0,0 +1,8 @@
+zh_cn:
+ views:
+ pagination:
+ first: "&lsaquo; 首页"
+ last: "末页 &rsaquo;"
+ previous: "&laquo; 上一页"
+ next: "下一页 &raquo;"
+ truncate: "..."
View
@@ -0,0 +1,4 @@
+# https://github.com/svenfuchs/rails-i18n/blob/master/rails/locale/zh-CN.yml
+
+zh_cn:
+ huacaor: "花草儿"

0 comments on commit d29ca62

Please sign in to comment.