You can add a language translation that is not included by default in Ubersmith. In the instructions below, [locale name] is the correct locale for the language you are translating Ubersmith into, for example for French the locale would be fr_FR. Once you have configured your Ubersmith instance to use a new language, you will need to activate that language in the system interface.
The default languages included with Ubersmith by default: American (en_US) and United Kingdom English (en_GB), Argentinian Spanish (es_AR), (French Canadian (fr_CA), Portuguese (pt_PT), Swedish (sv_SE), and Traditional Chinese (zh_TW) and Simplified Chinese (zh_CN).
# mkdir -p /usr/local/ubersmith/app/custom/locale/[locale name] /LC_MESSAGES
# cd /usr/local/ubersmith
# docker cp ubersmith_web_1:/var/www/ubersmith_root/app/www/ubersmith.pot
/usr/local/ubersmith/app/custom/locale/[locale name] /LC_MESSAGES/ubersmith.po
msgid "Welcome"
msgstr "Bienvenue"
# cd /usr/local/ubersmith
# docker-compose rm -sf; ./ubersmith_start.sh
# cd /usr/local/ubersmith
# docker-compose exec --user root php apt-get update
# docker-compose exec --user root php apt-get install gettext -y
# cd /usr/local/ubersmith
# docker-compose exec php php /var/www/ubersmith_root/app/www/update_translations.php
# docker cp ubersmith_web_1:/var/www/ubersmith_root/app/www/locale/[locale name]
/LC_MESSAGES/ubersmith.mo /usr/local/ubersmith/app/custom/locale/[locale name]
/LC_MESSAGES/ubersmith.mo
# docker-compose exec web rm /var/www/ubersmith_root/app/www/locale/[locale name]
/LC_MESSAGES/ubersmith.mo
# cd /usr/local/ubersmith
# docker-compose rm -sf; ./ubersmith_start.sh
On this page: |
|