Translating the Ubersmith Interface Estimated Reading Time: 4 Minutes You can add a translation of the Ubersmith interface for a language that Ubersmith does not include. Ubersmith uses gettext translation files (.po and .mo files). Ubersmith includes these languages: Locale Language en_US English (United States) en_GB English (United Kingdom) es_AR Spanish (Argentina) fr_CA French (Canada) pt_PT Portuguese (Portugal) sv_SE Swedish zh_CN Simplified Chinese zh_TW Traditional Chinese In the procedures below, replace [locale] with the locale of your language, for example fr_FR for French (France). Run the commands on the Ubersmith host, as root. Some steps recreate the Ubersmith containers. Ubersmith is not available for a short time during these steps. Make the translation file Make the folder for the new locale: mkdir -p /usr/local/ubersmith/app/custom/locale/[locale]/LC_MESSAGES Copy the translation template from the web container into the new folder, as ubersmith.po: cd /usr/local/ubersmith docker cp ubersmith-web-1:/var/www/ubersmith_root/app/www/ubersmith.pot /usr/local/ubersmith/app/custom/locale/[locale]/LC_MESSAGES/ubersmith.po Open /usr/local/ubersmith/app/custom/locale/[locale]/LC_MESSAGES/ubersmith.po in a text editor. For each msgid line, enter the translation in the msgstr line below it. For example, for French: msgid "Welcome" msgstr "Bienvenue" If a msgstr stays empty, Ubersmith shows the English text. Save the file in UTF-8 encoding. Make the language.ini file The file name must be language.ini. If the file has a different name, Ubersmith does not show the language in the list of languages that you can add. Make the file /usr/local/ubersmith/app/custom/locale/[locale]/language.ini. Enter these settings in the file. This example is for French (Canada): language_name = "Français canadien" description = "Français canadien" name_convention = 0 date_format = "Y-m-d" language_name: The name of the language that Ubersmith shows. description: A description of the language. name_convention: The sequence in which Ubersmith shows the names of persons. For the name "John Smith": 0: John Smith 1: Smith John 2: SmithJohn date_format: The date format, in PHP date format. For example, Y-m-d shows 2026-11-20. If you do not set a value, Ubersmith uses M/d/Y. Put values that have characters other than letters and numbers in double quotation marks ("). Compile the translation Recreate the containers, so that Ubersmith links the new locale files into the web root: cd /usr/local/ubersmith docker compose rm -sf ./ubersmith_start.sh Install the gettext package in the php container: cd /usr/local/ubersmith docker compose exec --user root php apt-get update docker compose exec --user root php apt-get install gettext -y The package stays installed until the next time that you recreate the containers. Run the update_translations.php script. The script compiles ubersmith.po into ubersmith.mo: cd /usr/local/ubersmith docker compose exec php php /var/www/ubersmith_root/app/www/update_translations.php Copy ubersmith.mo into the custom locale folder, then remove the copy in the web root: cd /usr/local/ubersmith docker cp ubersmith-web-1:/var/www/ubersmith_root/app/www/locale/[locale]/LC_MESSAGES/ubersmith.mo /usr/local/ubersmith/app/custom/locale/[locale]/LC_MESSAGES/ubersmith.mo docker compose exec web rm /var/www/ubersmith_root/app/www/locale/[locale]/LC_MESSAGES/ubersmith.mo Recreate the containers again, so that Ubersmith links the new ubersmith.mo file: cd /usr/local/ubersmith docker compose rm -sf ./ubersmith_start.sh Add the language in Ubersmith Add and activate the new language in Ubersmith. For more information, see "Adding Languages". Ubersmith uses the operating system locale of the container to show a translation. The Ubersmith containers include the locales of the languages that Ubersmith includes. If the interface stays in English after you add a different language, contact Ubersmith Support. Update the translation The translation template contains the text strings of the Ubersmith version that it was made for. Newer text strings can be missing from the template. To add the missing text strings to your ubersmith.po file, do these steps: Install the gettext package in the php container (step 2 of "Compile the translation"). Run the script with the --force-extract option. The script makes a new template from the current Ubersmith code, then adds the new text strings to ubersmith.po: cd /usr/local/ubersmith docker compose exec --user root php php /var/www/ubersmith_root/app/www/update_translations.php --force-extract Run this command as root (--user root), because the script writes the new text strings into the ubersmith.po file in the custom locale folder. Translate the new text strings in /usr/local/ubersmith/app/custom/locale/[locale]/LC_MESSAGES/ubersmith.po. Do steps 3–5 of "Compile the translation". Do these steps again after you upgrade Ubersmith.