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
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
-%global langs en pl
+%global langs_api en pl
+%global langs_web en pl pt ja
%global destdir build
%global metaname baculum
# 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
%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
%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
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