OPNsense Forum

English Forums => Documentation and Translation => Topic started by: ruslan-gennadievich on August 26, 2020, 05:57:28 pm

Title: Add new translation (po file)
Post by: ruslan-gennadievich on August 26, 2020, 05:57:28 pm
Hello

I trying to add new translate, so to first i install dependencies:

pkg install git gettext-tools p5-Locale-Maketext-Lexicon python27

and clone to first tools, and then lang

cd /usr
git clone https://github.com/opnsense/tools.git
git clone https://github.com/opnsense/lang.git

cd /usr/tools
make update  # <-- its OK!

and after
cd /usr/lang
make src  # <-- this return some warrnings
make template #<-- this Scan some dir in /usr

Code: [Select]
make[1]: "Mk/Mk/defaults.mk" line 42: warning: "Detected 'Base' flavour is not currently support
ed"
make[2]: "../../Mk/../../Mk/defaults.mk" line 42: warning: "Detected 'Base' flavour is not curre
ntly supported"
make[2]: "../../Mk/../../Mk/defaults.mk" line 42: warning: "Detected 'Base' flavour is not curre
ntly supported"

Then i tryed add locales to system.inc to get_locale_list() and build
cd /usr/tools
make dvd

As result i have my lang in web GUI (System: Settings: General -> Language) but if i select my language, this nothing change and interface keep alive in English lang.


So, i need help, how add translation and build opnsense from source?
Thanks!