Closed ayoub-belarbi closed 8 years ago
Does the gettext:find uses the old po files for generating the new one?
Yes.
how is this possible?
Does the following code describes about it?
https://github.com/ruby-gettext/gettext/blob/master/lib/gettext/tools/task.rb#L361-L377
Thank you for your response. Very helpful !
It's good. Can we close this issue?
Thanks to Kouhei's help, I now understand perfectly the purpose of the edit.po files:
So I'm using this gem in an a opensource project with a lot of legacy code, of course in addition to the gettext_i18n_rails and fast_gettext. Usually when we change something in the code we create a pot file and submit that to the translation team. Except this time, only the line numbers changed not the translated text itself, so I noticed that both the generated po and edit.po files contain the original text, the translated text and the right line numbers!
My question is: how is this possible? Not only the gem figured out the correct line numbers, but also it matched the original text with the old translation! Does the gettext:find uses the old po files for generating the new one?
Thanks!