cnjinhao / nana

a modern C++ GUI library
https://nana.acemind.cn
Boost Software License 1.0
2.32k stars 333 forks source link

Internationalization - comments are not supported in PO translation files #618

Open AStepaniuk opened 3 years ago

AStepaniuk commented 3 years ago

According to the PO files spec, PO file might contain comment lines, which are starting from # character at the beginning of the line.

Currently such files cannot be read by tokenizer. The presence of comment character stops reading translation file.

The example of such PO file:

#: This is the reference to the file
msgid "MSGID"
msgstr "This is a demo string"

Some tools, which produce PO files, put the comments automatically. So, it would be good to support comments in internationalization feature in nana library.

For now the workaround is obvious: avoid having comments in PO files.