mlocati / betterpoeditor

Better PO Editor is an editor for .po files, used to generate compiled gettext .mo files which are used by many programs and websites to localize the user interface. It offers great features... It's worth to give it a try!
Other
40 stars 10 forks source link

ID started more than once #7

Open JustBlackBird opened 10 years ago

JustBlackBird commented 10 years ago

It seems that the program does not recognize entities with no whitespace between them. But according to https://www.gnu.org/software/gettext/manual/html_node/PO-Files.html the whitespace is optional.

For example, a .po file with the following content is open the error message lead to "ID started more than once." is triggered.

msgid "one"
msgstr "uno"
msgid "two"
msgstr "dos"

At the same time a file with the following content is parsed fine:

msgid "one"
msgstr "uno"

msgid "two"
msgstr "dos"

I'm using version 1.2.0.