Closed archonwang closed 12 years ago
my enviroment redmine 1.3.2
Ruby version 1.8.7 (i686-linux) RubyGems version 1.3.7 Rack version 1.1.2 Rails version 2.3.14 Active Record version 2.3.14 Active Resource version 2.3.14 Action Mailer version 2.3.14 Active Support version 2.3.14 Application root /usr/local/redmine-1.3 Environment production Database adapter mysql Database schema version 20110902000000
Most probably an encoding issue with the locale files. I'll have a look this evening. Could you confirm your browser default locale and the default locale of your redmine machine, please?
Firefox 3.6 + default locale simplified chinese.
Hello again,
I'm going to install a Ruby environment from scratch on a Windows machine to try and reproduce what you observed. Could you just paste here the result of "gem list --local"? It would help me recreate an identical environment.
Thanks!
* LOCAL GEMS *
actionmailer (2.3.14) actionpack (2.3.14) activerecord (2.3.14) activeresource (2.3.14) activesupport (2.3.14) bundler (1.1.1) cgi_multipart_eof_fix (2.5.0) coderay (1.0.5) fastercsv (1.5.4) gem_plugin (0.2.3) i18n (0.6.0, 0.4.2) json (1.6.5) mongrel (1.1.5 x86-mingw32) mysql (2.8.1 x86-mingw32) net-ldap (0.3.1) pg (0.9.0 x86-mingw32) rack (1.4.1, 1.1.3) rails (2.3.14) rake (0.9.2.2) rdoc (3.12) rmagick (2.13.1) ruby-ole (1.2.11.3) ruby-openid (2.1.8) spreadsheet (0.6.8) sqlite3 (1.3.5 x86-mingw32) zip (2.0.2)
Still can't reproduce after installing the same gems you list - except rmagick. I'll further try to get the exact rmagick version install, meanwhile could you please make sure that the fr.yml files in config/locales and lang directories does not contain garbage? You can also try the latest tag: I've removed these labels while adding a filter option.
I'll update as soon as I get rmagick installed.
interesting. maybe I have add a new localization file cause it. i add a zh.yml file with uft-8.
Rmagick installed and redmine 1.3.2 still starts properly with the plugin in place. Could you download the 0.0.2 tag, please, and check that the fr.yml files are still UTF-8?
Thanks.
I checked the fr.yml. it's with utf-8, and It works.
and I want to add the Simplified_Chinese yml file. but not works with the error.
It's interesting. anything I've do wrong?
the zh.yml file is :
#################################################
zh: my_roadmaps_name: 我的路线图 permission_view_my_roadmaps:查看我的路线图 label_all_issue_type: 所有问题类型 label_exclude_closed_issues: 包括已关闭问题 label_x_closed_issue_not_shown: zero: " (0 个已关闭问题未显示)" one: " (1 个已关闭问题未显示)" other: " (%{count} 个已关闭问题未显示)" button_refresh: 刷新 #################################################
Ok, it better explains why it was working on my side. As soon as I've finished work on the shared versions, I'll try to include your translation.
I just commited some preliminary zh.yml files based on your translation, and it seems to work properly. Latest labels are obviously missing their translation, but the ones you provided are here. I think the problem was with the line "permission_view_my_roadmaps:查看我的路线图": a space between the ":" and the translation seems to be required.
Thanks,I will try later
Hello Archon,
I'm putting back some english translation for the missing ones in the zh.ymls, so your users should see some english instead of "FIXME".
the error information as follows:
C:\Test_PRJ\redmine-1.3>ruby script/server -e production => Booting Mongrel => Rails 2.3.14 application starting on http://0.0.0.0:3000 C:/Ruby187/lib/ruby/1.8/yaml.rb:133:in
load': syntax error on line 21, col 2:
label_all_issue_type: 鎵€鏈夐棶棰樼被鍨? (ArgumentError) from C:/Ruby187/lib/ruby/1.8/yaml.rb:133:inload' from C:/Ruby187/lib/ruby/1.8/yaml.rb:144:in
load_file' from C:/Ruby187/lib/ruby/1.8/yaml.rb:143:inopen' from C:/Ruby187/lib/ruby/1.8/yaml.rb:143:in
load_file' from C:/Ruby187/lib/ruby/gems/1.8/gems/i18n-0.6.0/lib/i18n/backend/base. rb:171:inload_yml' from C:/Ruby187/lib/ruby/gems/1.8/gems/i18n-0.6.0/lib/i18n/backend/base. rb:157:in
send' from C:/Ruby187/lib/ruby/gems/1.8/gems/i18n-0.6.0/lib/i18n/backend/base. rb:157:inload_file' from C:/Ruby187/lib/ruby/gems/1.8/gems/i18n-0.6.0/lib/i18n/backend/base. rb:15:in
load_translations' from C:/Ruby187/lib/ruby/gems/1.8/gems/i18n-0.6.0/lib/i18n/backend/base. rb:15:ineach' from C:/Ruby187/lib/ruby/gems/1.8/gems/i18n-0.6.0/lib/i18n/backend/base. rb:15:in
load_translations' from C:/Ruby187/lib/ruby/gems/1.8/gems/i18n-0.6.0/lib/i18n/backend/simpl e.rb:57:ininit_translations' from C:/Ruby187/lib/ruby/gems/1.8/gems/i18n-0.6.0/lib/i18n/backend/simpl e.rb:40:in
available_locales' from C:/Ruby187/lib/ruby/gems/1.8/gems/i18n-0.6.0/lib/i18n/config.rb:39: inavailable_locales' from C:/Ruby187/lib/ruby/gems/1.8/gems/i18n-0.6.0/lib/i18n.rb:31:in
ava ilable_locales' from C:/Ruby187/lib/ruby/gems/1.8/gems/actionpack-2.3.14/lib/action_view /template.rb:226:invalid_locale?' from C:/Ruby187/lib/ruby/gems/1.8/gems/actionpack-2.3.14/lib/action_view /template.rb:243:in
parse_extensions' from C:/Ruby187/lib/ruby/gems/1.8/gems/actionpack-2.3.14/lib/action_view /template.rb:233:insplit' from C:/Ruby187/lib/ruby/gems/1.8/gems/actionpack-2.3.14/lib/action_view /template.rb:118:in
initialize' from C:/Ruby187/lib/ruby/gems/1.8/gems/actionpack-2.3.14/lib/action_view /template.rb:92:innew' from C:/Ruby187/lib/ruby/gems/1.8/gems/actionpack-2.3.14/lib/action_view /template.rb:92:in
create_template' from C:/Ruby187/lib/ruby/gems/1.8/gems/actionpack-2.3.14/lib/action_view /template.rb:87:intemplates_in_path' from C:/Ruby187/lib/ruby/gems/1.8/gems/actionpack-2.3.14/lib/action_view /template.rb:86:in
each' from C:/Ruby187/lib/ruby/gems/1.8/gems/actionpack-2.3.14/lib/action_view /template.rb:86:intemplates_in_path' from C:/Ruby187/lib/ruby/gems/1.8/gems/actionpack-2.3.14/lib/action_view /template.rb:69:in
load!' from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_s upport/dependencies.rb:173:into_proc' from C:/Ruby187/lib/ruby/gems/1.8/gems/actionpack-2.3.14/lib/action_view /paths.rb:40:in
each' from C:/Ruby187/lib/ruby/gems/1.8/gems/actionpack-2.3.14/lib/action_view /paths.rb:40:inload!' from C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/initializer.rb:4 02:in
load_view_paths' from C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/initializer.rb:1 94:inprocess' from C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/initializer.rb:1 13:in
send' from C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/initializer.rb:1 13:inrun' from C:/Test_PRJ/redmine-1.3/config/environment.rb:24 from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in
gem_original_require' from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:inrequire' from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_s upport/dependencies.rb:182:in
require' from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_s upport/dependencies.rb:547:innew_constants_in' from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_s upport/dependencies.rb:182:in
require' from C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/commands/server. rb:84 from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:ingem_original_require' from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in
require' from script/server:3