lainsce / emulsion

Store your palettes in an easy way, and edit them if needed.
GNU General Public License v3.0
66 stars 8 forks source link

Some strings in window.ui are untranslatable #4

Closed oscfdezdz closed 2 years ago

oscfdezdz commented 3 years ago

To be more precise, strings between <![CDATA[]]>.

lainsce commented 3 years ago

I think those should be translatable once I update the pot file? The CDATA part should be just a model template for things so it might be hard to translate, idk...

oscfdezdz commented 3 years ago

I tried compiling the pot file with meson but they don't show up.

lainsce commented 3 years ago

I don't know how to help with this since the CDATA part is meant to be a model/template and I lack the knowledge to make it translatable.

oscfdezdz commented 3 years ago

A workaround is to manually add the lines:

#: data/ui/window.ui:210
msgid "Copy Palette to Clipboard"
msgstr ""

#: data/ui/window.ui:214
msgid "Copy Palette Image to Clipboard"
msgstr ""

#: data/ui/window.ui:220
msgid "Remove Palette"
msgstr ""

...

#: data/ui/window.ui:349
msgid "Copy Hexcode to Clipboard"
msgstr ""

#: data/ui/window.ui:353
msgid "Copy RGB to Clipboard"
msgstr ""

#: data/ui/window.ui:359
msgid "Remove Color from Palette"
msgstr ""

but it requires modifying the line number each time there is a change in the code. Tested locally and it works as it should.

lainsce commented 3 years ago

Could you make a PR for this then? You'd help translators :D

lainsce commented 2 years ago

The PR fixed this.