diegopvlk / Dosage

Medication tracker for Linux
GNU General Public License v3.0
87 stars 15 forks source link

Several pathes related to translatable strings #16

Closed ghost closed 1 year ago

ghost commented 1 year ago

data: Use double quotes

po: Update the POT file

po: Update the POTFILES

diegopvlk commented 1 year ago

Can you share the command used to generate the POT file?

ghost commented 1 year ago

One line

xgettext --files-from=po/POTFILES --output=po/io.github.diegopvlk.Dosage.pot --package-name=io.github.diegopvlk.Dosage --from-code=UTF-8 --add-comments --keyword=_ --keyword=C_:1c,2

Readable

xgettext \
--files-from=po/POTFILES \
--output=po/io.github.diegopvlk.Dosage.pot \
--package-name=io.github.diegopvlk.Dosage \
--from-code=UTF-8 \
--add-comments \
--keyword=_ \
--keyword=C_:1c,2
diegopvlk commented 1 year ago

Oh, nice. I was using --language=javascript since xgettext doesn't recognize blueprint but this is way better, thanks!