search for: fast_gettext

Displaying 3 results from an estimated 3 matches for "fast_gettext".

2010 Apr 26
11
Rails I18n
I was just wondering about locales and .yml files. Is it better to store the multilanguage strings in .yml files than in databases? And if yes, why? I was also wondering how rails are loading this files (for example, I have 4 languages in my web app, each has her own .yml file, will my rails app loads all the files in ram and then it will call each variable inside my web app? Or something else?)
2010 Jan 30
1
RoR & YML
In ruby\lib\ruby\gems\1.8\gems\actionpack-2.3.5\lib\action_view\locale\en.yml I see activerecord: errors: template: header: one: "1 error prohibited this {{model}} from being saved" other: "{{count}} errors prohibited this {{model}} from being saved" # The variable :count is also available Where does "model" come
2010 Feb 11
4
recursive expansition of <% ... %>
In a controller I have @message = "The size is <% @a.size %>." In the view I have <%= @message %> which, sadly, produces The size is <% @a.size %>. rather than, say, The size is 4. If I try <%= <%= @ message %> %> I get a syntax error. Is there a solution? -- Posted via http://www.ruby-forum.com/. -- You received this message because you