grosser / gettext_i18n_rails

Rails: FastGettext, I18n integration -- simple, threadsafe and fast!
MIT License
268 stars 90 forks source link

Difference between app.po and app.edit.po #163

Closed peterwake closed 8 years ago

peterwake commented 8 years ago

Could someone please explain what these files are for - I am sure there is a reason for both! Which one should be sent to someone to translate? Many thanks.

grosser commented 8 years ago

Where are these files ?

... .po files are supposed to exist 1 per language ... the app.edit.po might have a different set of translations ...

peterwake commented 8 years ago

If I run

$ rake gettext:find

I get this output on the terminal:

touch config/locales/de/app.po.time_stamp
rm -f config/locales/en/app.edit.po
cp config/locales/en/app.po config/locales/en/app.edit.po
touch config/locales/en/app.po.time_stamp
rm -f config/locales/zh_CN/app.edit.po
cp config/locales/zh_CN/app.po config/locales/zh_CN/app.edit.po
touch config/locales/zh_CN/app.po.time_stamp

And then both the app.po and app.edit.po files change to add new translations, and the only difference between them is the line

"POT-Creation-Date: 2016-09-06 19:54+0100\n"

I'm really just wondering what purpose it serves to have both these files. Or is one a backup file?

grosser commented 8 years ago

no idea where this .edit is coming from ... might be some strange leftover ... try deleting it ?

On Tue, Sep 6, 2016 at 12:04 PM, Peter Wake notifications@github.com wrote:

If I run

$ rake gettext:find

I get this output on the terminal:

touch config/locales/de/app.po.time_stamp rm -f config/locales/en/app.edit.po cp config/locales/en/app.po config/locales/en/app.edit.po touch config/locales/en/app.po.time_stamp rm -f config/locales/zh_CN/app.edit.po cp config/locales/zh_CN/app.po config/locales/zh_CN/app.edit.po touch config/locales/zh_CN/app.po.time_stamp

And then both the app.po and app.edit.po files change to add new translations, and the only difference between them is the line

"POT-Creation-Date: 2016-09-06 19:54+0100\n"

I'm really just wondering what purpose it serves to have both these files. Or is one a backup file?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/grosser/gettext_i18n_rails/issues/163#issuecomment-245055594, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAsZ46WkipdA0-vrNKejWJJWZDADroSks5qnbk0gaJpZM4J2FXO .

peterwake commented 8 years ago

On further digging the rake command jumps into a gettext rake command.

There is a discussion on this here: https://github.com/ruby-gettext/gettext/issues/36