Iām not a coder so Iām asking for your guidance on how to do it.
I will make the required changes if its just requires editing the language files!
As you know SuiteCRm language files do not have a single pattern for all files. Some files use only one type of strings but there are others with different types mixed.
This cause issues using online tools to translate (as Transifex), as some styles do not parse when mixed.
So, is there a simple way to make this language array:
Note: making strings with 2 keys in the same line is not ok for me (Transifex issues also!)
$app_list_strings[āmoduleListā][āAOP_Case_Updatesā] = āCase Updatesā;
(it it useful, I took strings from the \custom\Extension\application\Ext\Language\en_us.AdvancedOpenPortal.php )
To make it more clear: Transifex do not recognize values in a multidimensional array and ignores those lines.
It works fine with PHP arrays and PHP Alternative arrays but they canāt be mixed in the same file!
A- Multidimensional arrays: Values are not recognized by Transifex to be translated. (ate least Transifex do not change those lines either). Example:
app_list_strings['relationship_type_list']['SS'] = 'Start to Start';
The type A (multimdimensional) is a limitation of the Transifex tool.
I will ask Transifex to support it (other software has already make similar requests but not attended yet)
What about the limitation on mixed arrays in same file (B and C examples):
Is there a way to avoid that in SuiteCRm language files?
You know: this only happens in less then 20 files, so probably this is not a required way to work on all SuiteCRM languages, but allowed as an option for developers.
On the other side:
Transifex can create a new ātypeā of files for a given software but they require a set of rules for that type.
Example: they allow INI files AND INI Joomla files.
See: Supported File Formats http://docs.transifex.com/developer/formats/
Can you provide some resource/rules so I can send to them?
Can we have a set of rules/recommendation on creating language files.
This would be important, not only for your in house developers but also for all other users that will develop their own modules/Plugins with language files.
That would also prevent that a file that works with Transifex now will not be broken after some future update??