]> git.sur5r.net Git - bacula/bacula/commitdiff
baculum: Add Japanese language support in deb and rpm packages
authorMarcin Haba <marcin.haba@bacula.pl>
Tue, 23 May 2017 05:01:12 +0000 (07:01 +0200)
committerMarcin Haba <marcin.haba@bacula.pl>
Tue, 23 May 2017 05:01:12 +0000 (07:01 +0200)
gui/baculum/Makefile
gui/baculum/debian/baculum-web.install
gui/baculum/debian/baculum-web.links
gui/baculum/examples/rpm-template/baculum.spec

index 84cfa52ec31057968643ebda7d26fcf2ddee3929..7474314a724e684ddcc26651bf490b5eea8be9b1 100644 (file)
@@ -67,7 +67,7 @@ miscfilesrc = index.php \
        LICENSE \
        README
 
-localelang = en pl pt
+localelang = en pl pt ja
 localewebdirsrc = $(datadir)/$(webdir)/Lang
 localeapidirsrc = $(datadir)/$(apidir)/Lang
 localefile = messages.mo
index 3063bfe2980101d5b9a50ad9bf8ef3afb7b2616e..d93ef8fb1bfbc402fe1c096ba3f19aae885bfceb 100644 (file)
@@ -10,4 +10,5 @@ build/usr/share/baculum/htdocs/protected/Web/Init.php         /usr/share/baculum
 build/usr/share/baculum/htdocs/protected/Web/endpoints.xml    /usr/share/baculum/htdocs/protected/Web/
 build/usr/share/locale/en/LC_MESSAGES/baculum-web.mo          /usr/share/locale/en/LC_MESSAGES/
 build/usr/share/locale/pl/LC_MESSAGES/baculum-web.mo          /usr/share/locale/pl/LC_MESSAGES/
-build/usr/share/locale/pt/LC_MESSAGES/baculum-web.mo          /usr/share/locale/pt/LC_MESSAGES/
\ No newline at end of file
+build/usr/share/locale/pt/LC_MESSAGES/baculum-web.mo          /usr/share/locale/pt/LC_MESSAGES/
+build/usr/share/locale/ja/LC_MESSAGES/baculum-web.mo          /usr/share/locale/ja/LC_MESSAGES/
\ No newline at end of file
index e91614101c0f435bcddc25eb87b936bad8ed7760..b9ef3279828cee6483529b5af0842536112d27d0 100644 (file)
@@ -3,4 +3,5 @@ var/cache/baculum usr/share/baculum/htdocs/assets
 var/cache/baculum usr/share/baculum/htdocs/protected/runtime
 usr/share/locale/en/LC_MESSAGES/baculum-web.mo usr/share/baculum/htdocs/protected/Web/Lang/en/messages.mo
 usr/share/locale/pl/LC_MESSAGES/baculum-web.mo usr/share/baculum/htdocs/protected/Web/Lang/pl/messages.mo
-usr/share/locale/pt/LC_MESSAGES/baculum-web.mo usr/share/baculum/htdocs/protected/Web/Lang/pt/messages.mo
\ No newline at end of file
+usr/share/locale/pt/LC_MESSAGES/baculum-web.mo usr/share/baculum/htdocs/protected/Web/Lang/pt/messages.mo
+usr/share/locale/ja/LC_MESSAGES/baculum-web.mo usr/share/baculum/htdocs/protected/Web/Lang/ja/messages.mo
\ No newline at end of file
index 61b549fa873c8bdb825732e861239dc83e5066b9..6f864b441aff123bcf0eb328435431346b568f8b 100644 (file)
@@ -1,4 +1,5 @@
-%global langs en pl
+%global langs_api en pl
+%global langs_web en pl pt ja
 %global destdir build
 %global metaname baculum
 
@@ -148,8 +149,10 @@ make build DESTDIR=%{destdir}
 # Remove these cache directories, because here will be symbolic links
 rmdir %{destdir}/%{_datadir}/%{metaname}/htdocs/assets
 rmdir %{destdir}/%{_datadir}/%{metaname}/htdocs/protected/runtime
-for lang in  %{langs}; do
+for lang in  %{langs_api}; do
        rm %{destdir}/%{_datadir}/%{metaname}/htdocs/protected/API/Lang/${lang}/messages.mo
+done
+for lang in  %{langs_web}; do
        rm %{destdir}/%{_datadir}/%{metaname}/htdocs/protected/Web/Lang/${lang}/messages.mo
 done
 
@@ -165,7 +168,7 @@ ln -s  %{_localstatedir}/cache/%{metaname} %{_datadir}/%{metaname}/htdocs/protec
 %post api
 # because framework does not use system locale dir, here are linked
 # locale files to framework location
-for lang in  %{langs}; do
+for lang in  %{langs_api}; do
        ln -s  %{_datadir}/locale/${lang}/LC_MESSAGES/%{metaname}-api.mo \
                %{_datadir}/%{metaname}/htdocs/protected/API/Lang/${lang}/messages.mo
 done
@@ -173,7 +176,7 @@ done
 %post web
 # because framework does not use system locale dir, here are linked
 # locale files to framework location
-for lang in  %{langs}; do
+for lang in  %{langs_web}; do
        ln -s  %{_datadir}/locale/${lang}/LC_MESSAGES/%{metaname}-web.mo \
                %{_datadir}/%{metaname}/htdocs/protected/Web/Lang/${lang}/messages.mo
 done
@@ -199,12 +202,12 @@ rm %{_datadir}/%{metaname}/htdocs/assets
 rm %{_datadir}/%{metaname}/htdocs/protected/runtime
 
 %preun api
-for lang in  %{langs}; do
+for lang in  %{langs_api}; do
        rm %{_datadir}/%{metaname}/htdocs/protected/API/Lang/${lang}/messages.mo
 done
 
 %preun web
-for lang in  %{langs}; do
+for lang in  %{langs_web}; do
        rm %{_datadir}/%{metaname}/htdocs/protected/Web/Lang/${lang}/messages.mo
 done