summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRamón M. Gómez <ramongomez@us.es>2019-09-11 19:05:49 +0200
committerRamón M. Gómez <ramongomez@us.es>2019-09-11 19:05:49 +0200
commitbf7643d23ff1ca5717b56029ac1eac7d51e238fa (patch)
tree7f8a63220aef1ece88f0cf988899e664c276fd17
parent293234a05bbfa5522b26839637229fc7d3a0e1fc (diff)
#919: Show instructions to compile locale files in the Browser's Vagrant file.
-rw-r--r--installer/vagrant/Vagrantfile-browser-vbox14
1 files changed, 12 insertions, 2 deletions
diff --git a/installer/vagrant/Vagrantfile-browser-vbox b/installer/vagrant/Vagrantfile-browser-vbox
index 60db8297..9295d1d2 100644
--- a/installer/vagrant/Vagrantfile-browser-vbox
+++ b/installer/vagrant/Vagrantfile-browser-vbox
@@ -29,19 +29,29 @@ echo "yes" | ./configure -opensource -embedded x86 -webkit -openssl -qt-gfx-vnc
make
make install
# Compile Browser.
-svn export https://github.com/opengnsys/OpenGnsys/branches/devel/client/browser ../browser
+BRANCH="devel"
+svn export "https://github.com/opengnsys/OpenGnsys/branches/$BRANCH/client/browser" ../browser
cd browser
qmake browser.pro
make
strip browser
+# Update locale string files.
+xgettext -C --qt --from-code=UTF-8 -o browser.pot src/*.cpp
+msgmerge -U po/en.po browser.pot
+msgmerge -U po/ca.po browser.pot
+rm -f browser.pot
# Instructions.
echo "Browser's code is in /home/vagrant/browser directory."
echo "To compile a new Browser, run as root user:"
echo " cd /home/vagrant/browser && qmake browser.pro && make"
-echo "Do not forget to copy all Browser's files to OpenGnsys Server:"
+echo "To compile new locale files (note that \"xx\" is a locale code, like \"en\" or \"ca\"):"
+echo " - Translate strings by editing each po/xx.po file."
+echo " - Compile each locale file by running as root: msgfmt -o xx.mo po/xx.po"
+echo "Do not forget to copy all Browser's files to the OpenGnsys Server:"
echo " - Browser binary to /opt/opengnsys/client/bin directory on server."
echo " - Qt linked libraries to /opt/opengnsys/client/lib/qtlibs directory."
echo " - 64-bit-based ogLive only: libssl and libcrypto to /opt/opengnsys/client/lib/qtlibs directory."
+echo " - Compiled Locale files, if needed: xx.mo as /opt/opengnsys/client/lib/locale/xx/LC_MESSAGES/browser.mo (\"xx\" is a locale code)."
EOT
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|