summaryrefslogtreecommitdiffstats
path: root/installer/vagrant/Vagrantfile-browser-vbox
diff options
context:
space:
mode:
Diffstat (limited to 'installer/vagrant/Vagrantfile-browser-vbox')
-rw-r--r--installer/vagrant/Vagrantfile-browser-vbox23
1 files changed, 16 insertions, 7 deletions
diff --git a/installer/vagrant/Vagrantfile-browser-vbox b/installer/vagrant/Vagrantfile-browser-vbox
index 60db8297..8e3abebf 100644
--- a/installer/vagrant/Vagrantfile-browser-vbox
+++ b/installer/vagrant/Vagrantfile-browser-vbox
@@ -21,27 +21,37 @@ dpkg-reconfigure -fnoninteractive console-setup
# Install main dependencies.
apt-get update
apt-get install -y build-essential gettext libssl-dev libucommon-dev libxtst-dev subversion
-# Compile Qt-Embedded 4.8 (aceptar la licencia Open Source).
-wget http://download.qt.io/official_releases/qt/4.8/4.8.7/qt-everywhere-opensource-src-4.8.7.tar.gz
+# Compile Qt-Embedded 4.8 (accept Open Source license).
+wget http://download.qt.io/archive/qt/4.8/4.8.7/qt-everywhere-opensource-src-4.8.7.tar.gz
tar xvzf qt-everywhere-opensource-src-4.8.7.tar.gz
cd qt-everywhere-opensource-src-4.8.7
echo "yes" | ./configure -opensource -embedded x86 -webkit -openssl -qt-gfx-vnc -qvfb -prefix /usr/local/ -nomake demos -nomake examples
make
make install
-# Compile Browser.
-svn export https://github.com/opengnsys/OpenGnsys/branches/devel/client/browser ../browser
-cd browser
+# Compile the 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|
@@ -54,7 +64,6 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
vb.name = "ogBrowser"
vb.memory = VMMEM
vb.cpus = VMCPUS
- vb.gui = true
end
# VM base and host name.
br.vm.box = "ubuntu/trusty32"