- Posts: 20
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
If that file is overwritten, it is (in my opinion) a bug, not a missing feature. Please file a bug report.surveytranslator_helper.php is a core file and will be overwritten with an update.
Why should that be an bug? If you want to ADD a new language, you will need to create a new language code description with a few settings like this:tpartner wrote:
If that file is overwritten, it is (in my opinion) a bug, not a missing feature. Please file a bug report.surveytranslator_helper.php is a core file and will be overwritten with an update.
// Czech informal $supportedLanguages['cs-informal']['description'] = gT('Czech (informal)'); $supportedLanguages['cs-informal']['nativedescription'] = 'Česky neformální'; $supportedLanguages['cs-informal']['rtl'] = false; $supportedLanguages['cs-informal']['dateformat'] = 4; $supportedLanguages['cs-informal']['radixpoint'] = 1; $supportedLanguages['cs-informal']['cldr'] = 'cs';
This is, at least partially, already the case.If you think languages a bit different, there are sometimes projects which would need an languages more than once. E.g. a survey in English, but in different countries (USA,UK and also e.g. India). Would be nice to put them in one survey.
The language-codes have to be unique.holch wrote: Now the question is, how to guarantee that the file, where you add your custom languages is not overwritten via an update, because this doesn't make sense.
Agreed. Maybe something like "lc_" for "local" or "cm_" for "custom". Would need to check if those don't collide with any other language tag.Perhaps a prefix or postfix to the languagecodes.
What I want to see, is the possibility to add the language English more than once to a survey files and only modify a few things (e.g date format). This is currently not possible. This is not uncommon for worldwide business surveys to ask in English with a few modifications (date format, currency, time). You can copy 99% of the content but would like to have a URL to the specific English language. Even if this is the same PO language file, it would be nice to have the chance to make use of a language more than once via different languagecodes.