Localization of STB's interface is based on library using gettext
Utility for easy transfer - Poedit
locale -a
/var/lib/locales/supported.d/local
the string with needed locale and then to do:sudo dpkg-reconfigure locales
/usr/share/i18n/SUPPORTED
.locale -a
) in /server/locale/
; it is neccessary to create cataloge LC_MESSAGES
there./server/locale/[NEW_LOCALE]/LC_MESSAGES/
file stb.po
, for example from english localization./server/locale/[NEW_LOCALE]/LC_MESSAGES/stb.po
with help of Poedit.stb.mo
file must appear near the stb.po
(it's the localalization using file in portal).In some cases it is neccessary to restart apache.
To change the existing one it is enough to add it using Poedit.
Settings should be translated separatly in stalker_portal/external/settings/js/langs/
Then add new language in /external/settings/index.html in
var all_lang=[“ru”,“bg”,“uk”];
so it will be for example like next
var all_lang=[“ru”,“bg”,“uk”,“sk”];
New files according to new localization should be created in:
stalker_portalserver/adm/plugins/form-validator/lang/
stalker_portal/server/adm/plugins/datatables/lang/