News for hackers. Stuff that matters.
Re:Show HN: Pollly – Editor for YAML localization and transl... by andybak on Friday June 02, 2017 @09:02AM (#14469512)
Can you explain what it's for? I'm familiar with YAML but I have no idea what "translate apps & sites" means.

Do you mean "translate" as in i18n? What kind of files would I be uploading?

Re:Show HN: Pollly – Editor for YAML localization and transl... by sirn on Friday June 02, 2017 @09:10AM (#14469568)
I believe it's Rails translation files which looked like this:

en.yml: https://github.com/svenfuchs/rails-i18n/blob/d14fe4e0a1c54d2...

fr.yml: https://github.com/svenfuchs/rails-i18n/blob/d14fe4e0a1c54d2...

In this case, I understand the need of the editor because managing large translation files by hand is a very time consuming task and overall painful experience. From going back and forth between trying to match translation files key-by-key (nope, pluralization rules differ from languages to languages) or trying to find the correct key to edit, to fixing merge conflicts.

Re:Show HN: Pollly – Editor for YAML localization and transl... by andybak on Saturday June 03, 2017 @01:51AM (#14475197)
So Rails doesn't use .po files?
Re:Show HN: Pollly – Editor for YAML localization and transl... by sirn on Saturday June 03, 2017 @06:15AM (#14475708)
There are gettext gem available, but by default Rails ship with the YAML translation thing.