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.
Re:Show HN: Pollly – Editor for YAML localization and transl... by politician on Friday June 02, 2017 @09:05AM (#14469531)
[off-topic] Does anyone know of a CLI tool like jq that works with YAML instead?
Re:Show HN: Pollly – Editor for YAML localization and transl... by killercup on Friday June 02, 2017 @09:42AM (#14469775)
https://github.com/dflemstr/rq seems to be something like that
Re:Show HN: Pollly – Editor for YAML localization and transl... by aequitas on Friday June 02, 2017 @09:31AM (#14469710)
Just convert yaml to json and run it through jq?
Re:Show HN: Pollly – Editor for YAML localization and transl... by artursapek on Friday June 02, 2017 @09:30AM (#14469706)
You should handle errors more gracefully. I just tried uploading a YAML file that we're reading perfectly fine in Golang and your tool refused to open it with a "duplicate mapping" error.
Re:Show HN: Pollly – Editor for YAML localization and transl... by tokenizerrr on Friday June 02, 2017 @09:14AM (#14469591)
Just tried it. This is absolutely not a YAML editor. It doesn't even let you edit a single file. Very odd application, no idea what the goal is but it's certainly not editing YAML.
Re:Show HN: Pollly – Editor for YAML localization and transl... by killercup on Friday June 02, 2017 @09:22AM (#14469642)
Yes. They seem to mean "Rails-style translation files that happen to be in YAML format" when they say "YAML".
Re:Show HN: Pollly – Editor for YAML localization and transl... by tokenizerrr on Friday June 02, 2017 @09:24AM (#14469659)
I saw the title, "Simple, free, YML editor" and tried to use it for one of my ansible yml files. It doesn't even accept it. It wants two files to be uploaded which doesn't even make sense. So, it's not a YML editor and the title is wrong. Perhaps it should be changed to "Rails translation file editor, which happens to use the YML format"
Re:Show HN: Pollly – Editor for YAML localization and transl... by tokenizerrr on Friday June 02, 2017 @09:02AM (#14469513)
What's up with the focus on translation? No idea how that related to yaml.
Re:Show HN: Pollly – Editor for YAML localization and transl... by mathnode on Friday June 02, 2017 @09:23AM (#14469652)
diff doesn't need a landing page, unnecessary text, images, and logos to be loaded.

The interface has too much friction for the user. Even WITH all the extra gumpf, scrolling and clicking I still have no idea what this is for.

Re:Show HN: Pollly – Editor for YAML localization and transl... by m_t on Friday June 02, 2017 @10:06AM (#14469954)
Have you tried reading the description?

  > Localize and translate any apps or sites that uses YAML for localization.
  > Yaml is used in many languages such as Ruby, Python, Php and for Framework such as Rails or Symphony.
Re:Show HN: Pollly – Editor for YAML localization and transl... by adlpz on Friday June 02, 2017 @09:06AM (#14469536)
I think the title should be updated, this is a translation helper tool that happens to work on translation files formatted as YAML.

This is not a YAML editor.

Re:Show HN: Pollly – Editor for YAML localization and transl... by crdoconnor on Friday June 02, 2017 @09:30AM (#14469698)
I really wish there was something like that though:(