fix makefile

- generate POT file with non asci symbols (use UTF-8)
 - change newline symbol in pot file (by sed)
This commit is contained in:
vantu5z
2021-08-31 10:03:36 +03:00
parent ab730b9270
commit 5f93239c20

View File

@@ -50,9 +50,10 @@ mergepo: potfile
./po/dash-to-panel.pot: $(TOLOCALIZE) Settings.ui
mkdir -p po
xgettext -k_ -kN_ -o po/dash-to-panel.pot --package-name "Dash To Panel" $(TOLOCALIZE)
xgettext -k_ -kN_ -o po/dash-to-panel.pot --package-name "Dash To Panel" $(TOLOCALIZE) --from-code=UTF-8
intltool-extract --type=gettext/glade Settings.ui
xgettext -k_ -kN_ --join-existing -o po/dash-to-panel.pot Settings.ui.h
sed -i -e 's/&\#10;/\\n/g' po/dash-to-panel.pot
./po/%.mo: ./po/%.po
msgfmt -c $< -o $@