Gyoung-Yoon Noh
2006-Jun-22 08:28 UTC
[Rails] GetText Question: How not to gather ActiveRecord''s columns?
Hi, Rake''s ''updatepo'' task[1] suggested by Masao(Ruby-GetText maintainer) gather whole model''s columns. I don''t need to translate those column names. So I''d like to give translators the po files without such needless messages. However I wouldn''t like to exclude ''app/models'', because of some useful gettext-ized validation messages. What should I do? Thanks, [1]: http://www.yotabanana.com/hiki/ruby-gettext-howto-rails.html#Rakefile -- http://nohmad.sub-port.net
Masao Mutoh
2006-Jun-22 16:29 UTC
[Rails] GetText Question: How not to gather ActiveRecord''s columns?
Hi, On Thu, 22 Jun 2006 17:28:51 +0900 "Gyoung-Yoon Noh" <nohmad@gmail.com> wrote:> Hi, > > Rake''s ''updatepo'' task[1] suggested by Masao(Ruby-GetText maintainer) > gather whole model''s columns. I don''t need to translate those column names. > So I''d like to give translators the po files without such needless messages. > However I wouldn''t like to exclude ''app/models'', because of some useful > gettext-ized validation messages. > What should I do?Now Ruby-GetText doesn''t have such options. But if you stop your database (or wrong config.xml), updatepo task can''t extract the column names. As the result, it may be satified what you need. I understood the needs and I agree we need some options for this. So, I''ll try to add a new feature for it. Thanks. -- .:% Masao Mutoh<mutoh@highway.ne.jp>
Gyoung-Yoon Noh
2006-Jun-23 04:26 UTC
[Rails] GetText Question: How not to gather ActiveRecord''s columns?
On 6/23/06, Masao Mutoh <mutoh@highway.ne.jp> wrote:> Hi, > > Now Ruby-GetText doesn''t have such options. > > But if you stop your database (or wrong config.xml), > updatepo task can''t extract the column names. As the result, it may > be satified what you need. > > I understood the needs and I agree we need some options for this. > So, I''ll try to add a new feature for it. > > Thanks. >Thanks. I think it''s a good hack for the present. -- http://nohmad.sub-port.net