search for: init_gettext

Displaying 13 results from an estimated 13 matches for "init_gettext".

2010 Jul 05
1
[PATCH] gettext initiation problem Thanks to Thibault Deloffre <tdeloffre@linagora.com>
...ntrollers in the application. # Likewise, all the methods added will be available for all controllers. +require 'gettext_rails' class ApplicationController < ActionController::Base # FIXME: once all controller classes include this, remove here include ApplicationService -# init_gettext "ovirt" + init_gettext "ovirt" layout :choose_layout before_filter :is_logged_in, :get_help_section -- 1.7.0.1
2010 Mar 31
1
[PATCH] Upgrading the server to work with Rails 2.3.4.
...041f..4c4666e 100644 --- a/src/app/controllers/application_controller.rb +++ b/src/app/controllers/application_controller.rb @@ -25,7 +25,7 @@ class ApplicationController < ActionController::Base # FIXME: once all controller classes include this, remove here include ApplicationService - init_gettext "ovirt" +# init_gettext "ovirt" layout :choose_layout before_filter :is_logged_in, :get_help_section diff --git a/src/config/environment.rb b/src/config/environment.rb index 913b9f9..9c1a9fa 100644 --- a/src/config/environment.rb +++ b/src/config/environment.rb @@ -20,7...
2006 Sep 12
0
Ruby-GetText-Package-1.8.0
...akahashi is well known as the chairman of Japan Ruby no Kai (Japanese Ruby User Group) and "Takahashi Method". [2] http://rubyforge.org/projects/gettextscaffold/ Changes ------- * Support Chinese(Taiwan: zh_TW), Estonian(et: rails.po only) * Enhance to support Ruby on Rails. * init_gettext finds mo-files in /vendor/plugins/{plugin_name}/locale which has app/controller directories such as Rails Engines. And init_gettext accepts :locale_path option to be able to set the locale path manually. * init_gettext manages plural textdomains. * Add before_init_gettext, afte...
2006 Jan 15
15
Gettext and Rails ?
Hello, I''m trying to use ruby-gettext 1.1.1 (installed with gem) with rails and here is all I get : undefined method `init_gettext'' for ApplicationController:Class Here is my source : require ''gettext/rails'' class ApplicationController < ActionController::Base init_gettext "test" end As a Nuby, I don''t really know what to do. Please, Help ! Thx, Jonathan -- Posted via ht...
2006 Jan 29
2
GetText and rjs templates?
...;/div> <%= link_to_remote ''click'', :url => {:action => ''dosomething''} %> </body> </html> and the rjs template dosomething.rjs : page.replace_html ''test'', ''ruby on rails'' this works fine until i add init_gettext "blog" to my application.rb no errors from the server, the div just don''t update its contents anymore. what''s wrong?? -- Posted via http://www.ruby-forum.com/.
2006 May 08
4
Gettext not worked in firefox,but done well under IE
...i18n characteristics to my webapp using gettext,it works under IE,while not under firefox. here is my codes: po: po\zh_CN\myapp.po after rake makemo, i have got: locale\zh_CN\LC_MESSAGES\myapp.mo require ''gettext/rails'' class ApplicationController < ActionController::Base init_gettext "myapp" end Then I use the following to have a test in the application.rhtml <%= local %> <% local=("zh_CN") %> <%= local %> <%= _("Login") %> in IE,it can display as follows: en zh_CN ?? but in firefox,it can not work: en zh_CN Login Am i wr...
2005 Dec 29
5
Ruby-GetText-Package-1.1.0
...n for the English developers who don''t need to localize their application, this function is useful because the developer can rename the table/field names using "en" locale. * More simple to set up ApplicationController. Now, you need to call just init_gettext only. class ApplicationController < ActionController::Base init_gettext "myapp" #Easy! end This "myapp" domain affects all of the controllers/views/models. * Sample "blog" application with rails. Improved the sample appl...
2010 Feb 23
12
"no such file to load -- gettext/rails" error
I get the error below when I try to start my server. Here are the versions installed: OS: Windows Server 2008 Ruby: 1.8.7 Gems: actionmailer (2.3.5, 1.3.5) actionpack (2.3.5, 1.13.5) actionwebservice (1.2.5) activerecord (2.3.5, 1.15.5) activeresource (2.3.5) activesupport (2.3.5, 1.4.4) cgi_multipart_eof_fix (2.5.0) daemons (1.0.10) gem_plugin
2006 May 08
2
How to set the default language in GetText?
How to set the default language in GetText? The default language of GetText is en,and I want to change it to another language,and also keep the ability to change to any other languages by just click the according href. Currently I use: class ApplicationController < ActionController::Base before_filter :set_charset def set_charset @headers["Content-Type"] = "text/html;
2006 Feb 27
4
Gettext and rails
Hi Im using the newest GetText gem, and Im having problems with classes outside rails, they don''t get translated. For example: I have a class representing access in my app, and it is not a ActiveRecord, just a normal class. When require ''gettext'' and include it in the class, I can use the _('''') methods fine. They get picked upp by rake updatepo.
2009 May 15
0
[PATCH server] final cleanup for service layer refactoring.
...re/addhost.rhtml} (76%) diff --git a/src/app/controllers/application.rb b/src/app/controllers/application.rb index e9c515f..040b8a3 100644 --- a/src/app/controllers/application.rb +++ b/src/app/controllers/application.rb @@ -30,19 +30,6 @@ class ApplicationController < ActionController::Base init_gettext "ovirt" layout :choose_layout - # FIXME: once service layer is complete, the following before_filters will be - # removed as their functionality has been moved to the service layer - # pre_new - # pre_create - # pre_edit - # pre_show - # authorize_admin - before_filter :pre_n...
2009 Jul 07
0
[PATCH server] Update app to work with rails 2.3.2
...- - -class ApplicationController < ActionController::Base - # FIXME: once all controller classes include this, remove here - include ApplicationService - - # Pick a unique cookie name to distinguish our session data from others' - session :session_key => '_ovirt_session_id' - init_gettext "ovirt" - layout :choose_layout - - before_filter :is_logged_in, :get_help_section - - # General error handlers, must be in order from least specific - # to most specific - rescue_from Exception, :with => :handle_general_error - rescue_from PermissionError, :with => :handle_pe...
2009 Jul 20
9
Upgrade server to run on Rails 2.3.2/F11
Note that one of the 8 patches (#6) will be sent separately in reply to this email, as some of the replaced lines are too long, so git won't let me send the email. However, there is nothing wrong with that patch, and it should be applied in the sequence listed below. Note also that I assume this will be tested on a clean f11 install, rather than an upgrade of an existing ovirt server