Pomo icon indicating copy to clipboard operation
Pomo copied to clipboard

If the file does not has enters between messages it fails

Open lcrodriguez opened this issue 9 years ago • 4 comments

Translations of aaaa aa module

msgid "" msgstr "" "Project-Id-Version: aa:aa (7.x-3.12)\n" "POT-Creation-Date: 2015-06-30 01:28+0000\n" "PO-Revision-Date: YYYY-mm-DD HH:MM+ZZZZ\n" "Language-Team: aaaa aaa\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n!=1);\n"

msgid "Updated" msgstr "Updated" msgid "Measurements" msgstr "Measurements"

This fails, only has Measurements on it. Updated is ignored.

lcrodriguez avatar Oct 20 '15 19:10 lcrodriguez

I'm not 100% sure I actually get it. If you're more confortable explaining the issue in spanish or portuguese please do, as right as-is it seems to work for me.

Your use case seems to work for me, somehow. I'm guessing I'm not getting the problem right; please explain in any other language you're more comfortable with so we can get to the bottom of it; we can post translations in any case once this gets fixed

cfv1984 avatar Oct 20 '15 19:10 cfv1984

I had to change this for it to work:

https://github.com/lcrodriguez/Pomo/commit/2fba4b7725e924d27f2852ebece0f5405fcb4050

I'm using it in the browser.

lcrodriguez avatar Oct 20 '15 20:10 lcrodriguez

I've done a few improvements to this. The problem I have is that I have valid PO files that do not separate with /n/n between messages so where not correctly parsed. I will update my code now.

lcrodriguez avatar Nov 03 '15 19:11 lcrodriguez

Code to be improved but works: https://github.com/lcrodriguez/Pomo/commit/28e5e5acff0dec63a7af8a494047f14687e7540f

lcrodriguez avatar Nov 03 '15 19:11 lcrodriguez