Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/Remmina/remmina-wiki.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortukusejssirs <tukusejssirs@protonmail.com>2019-06-20 21:24:11 +0300
committertukusejssirs <tukusejssirs@protonmail.com>2019-06-20 21:24:11 +0300
commit45d8c020bf845e7387fc84a3920a83640edc7aec (patch)
tree10810c6b6ebc3b50e662560029887410be34e289 /Localisation/Update-gettext-messages.md
parentd71d4c9b48f08da4c0d9ca8af158cd6a060db5af (diff)
Remove Unsorted folder; Add _sidebar.md
Diffstat (limited to 'Localisation/Update-gettext-messages.md')
-rw-r--r--Localisation/Update-gettext-messages.md31
1 files changed, 31 insertions, 0 deletions
diff --git a/Localisation/Update-gettext-messages.md b/Localisation/Update-gettext-messages.md
new file mode 100644
index 0000000..c9f548a
--- /dev/null
+++ b/Localisation/Update-gettext-messages.md
@@ -0,0 +1,31 @@
+This is a quick, dirty and no brainy procedure to update the po files in Remmina.
+
+Please count till 10 seconds before to copy&paste it in the terminal.
+
+```bash
+REMMINATOP=~/remmina_devel/Remmina
+cd $REMMINATOP
+find src plugins -name "*.c" | sed 's/^.\///' >| po/POTFILES.in
+find data -name "*.glade" | sed 's/^.\///' >> po/POTFILES.in
+find data -name "*.appdata.xml" | sed 's/^.\///' >> po/POTFILES.in
+xgettext --from-code=UTF-8 -k_ -kN_ -ktranslatable --keyword=C_:1c,2 --keyword=NC_:1c,2 --keyword=g_dngettext:2,3 --add-comments --files-from=po/POTFILES.in --output=po/messages.pot --copyright-holder="2014-2018 Antenore Gatta, Giovanni Panozzo" --package-name="Remmina" --package-version="1.2.31" --msgid-bugs-address="admin@remmina.org"
+cd $REMMINATOP/po
+for i in *.po; do
+msgmerge -N --backup=off --update $i messages.pot
+done
+for i in $REMMINATOP/po/*.po ; do
+TMPF=/tmp/f$$.txt
+sed '/^#~/d' $i > $TMPF
+awk 'BEGIN{bl=0}/^$/{bl++;if(bl==1)print;else next}/^..*$/{bl=0;print}' $TMPF >| $i
+rm $TMPF
+done
+rm *.po~
+rm messages.pot
+
+```
+
+To test remmina in another language you can start it from the command line this way:
+
+```bash
+LANGUAGE=ru remmina
+```