Forums / Cotonti / Core Labs / Plugin config localization

trying to localize plugin config (admin) files

Macik
#16644 2009-09-01 05:09
As I know (http://www.cotonti.com/docs/ru/plugins/Perevod_adminpaneli_v_pl#c454) I can now localize some part of plugin config parameters.

It rather be good to complete this idea, so user can translate values in 'select' parameter.

Example of an idea:

[BEGIN_SED_EXTPLUGIN_CONFIG]
separator=01:select:dot,colon,semicolon:dot:values separator
[END_SED_EXTPLUGIN_CONFIG]

example.en.lang.php
$L['cfg_ separator'] = array('values separator', '', 'dot,colon,semicolon','dot');

example.ru.lang.php
$L['cfg_ separator'] = array('разделитель значений', '', 'точка,двоеточие,точка с запятой','точка');

It's simple to code and completely close plugin localization theme. :)
https://github.com/macik
правильный хостинг — https://goo.gl/fjCa1F