Hi chris, tried to Add a new locale from admin, the xy folder got created automatically in work_directory/app/locale then wentback to folder in work_directory/app/locale/xy/config.ini edited usinf Notepad++ and added translations. Now after logging into frontend of site admin and went to Manage_locale page,xy locale row shows as NAN not 100, when clicked on 'xy' link everything shows in red color (empty) in the second column and with errors below:
WARNING: syntax error, unexpected '(' in localhost/src/locale/xy/configure.ini on line 768
at line 118 in localhost/src/library/Utility.php
in parse_ini_file, line 118 in localhost/src/library/Utility.php
called from seekquarry\yioop\library\parse_ini_with_fallback, line 682 in localhost/src/models/LocaleModel.php
called from seekquarry\yioop\models\LocaleModel->updateLocale, line 642 in localhost/src/models/LocaleModel.php
called from seekquarry\yioop\models\LocaleModel->updateLocales, line 612 in localhost/src/models/LocaleModel.php
called from seekquarry\yioop\models\LocaleModel->extractMergeLocales, line 515 in localhost/src/controllers/components/SystemComponent.php
...
so in order to add a new locale what all things to be edited to make it work 100%, This can be added in documentation.
See if this can help in anyway to yioop locale, https://github.com/umpirsky/locale-list
(
Edited: 2022-01-15)
Hi chris, tried to Add a new locale from admin, the <u>xy</u> folder got created automatically in work_directory/app/locale then wentback to folder in work_directory/app/locale/xy/config.ini edited usinf Notepad++ and added translations. Now after logging into frontend of site admin and went to Manage_locale page,<u>xy</u> locale row shows as NAN not 100, when clicked on '<u>xy</u>' link everything shows in red color (empty) in the second column and with errors below:
WARNING: syntax error, unexpected '(' in localhost/src/locale/xy/configure.ini on line 768
at line 118 in localhost/src/library/Utility.php
in parse_ini_file, line 118 in localhost/src/library/Utility.php
called from seekquarry\yioop\library\parse_ini_with_fallback, line 682 in localhost/src/models/LocaleModel.php
called from seekquarry\yioop\models\LocaleModel->updateLocale, line 642 in localhost/src/models/LocaleModel.php
called from seekquarry\yioop\models\LocaleModel->updateLocales, line 612 in localhost/src/models/LocaleModel.php
called from seekquarry\yioop\models\LocaleModel->extractMergeLocales, line 515 in localhost/src/controllers/components/SystemComponent.php
...
so in order to add a new locale what all things to be edited to make it work 100%, This can be added in documentation.
See if this can help in anyway to yioop locale, https://github.com/umpirsky/locale-list