Actions

Talk

Plugin localization: Difference between revisions

From LimeSurvey Manual

(Created page with "I am not sure if it is possible to use different message sources at the same time. (for example use .po and Db at the same time). So far I had the impression that it was not p...")
 
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
I am not sure if it is possible to use different message sources at the same time. (for example use .po and Db at the same time). So far I had the impression that it was not possible, at least not when using the standard Yii app language object.
I am not sure if it is possible to use different message sources at the same time. (for example use .po and Db at the same time). So far I had the impression that it was not possible, at least not when using the standard Yii app language object.
If every plugin instantiates its own lang translation function it would not be a problem, though.
If every plugin instantiates its own lang translation function it would not be a problem, though.
In general I don't care how a plug in translates itself, though we should encourage to use the .po/.mo standard. But it might be easier for some plugin auhtor to use a different system.
--[[User:C schmitz|C schmitz]] ([[User talk:C schmitz|talk]]) 10:47, 18 July 2016 (CEST)


In general I don't care how a plug in translates itself, though we should encourage to use the .po/.mo standard it might be easier for some plugin auhtor to use a different system.
 
--[[User:C schmitz|C schmitz]] ([[User talk:C schmitz|talk]]) 10:47, 18 July 2016 (CEST)
In fact : Yii already allow different cache for example. But must be set quicly (in config);, i think but not sure : different translation source can can be allowed with the same manner. If we can not do it like this : we can extend Yii system to allow different translation source. Using sme systme than modules : http://www.yiiframework.com/doc/guide/1.1/en/topics.i18n#c3902 Yii::t('MyModuleNameModule.translation','it works');
--[[User:DenisChenu|DenisChenu]] ([[User talk:DenisChenu|talk]]) 11:31, 18 July 2016 (CEST)

Latest revision as of 11:42, 18 July 2016

I am not sure if it is possible to use different message sources at the same time. (for example use .po and Db at the same time). So far I had the impression that it was not possible, at least not when using the standard Yii app language object. If every plugin instantiates its own lang translation function it would not be a problem, though. In general I don't care how a plug in translates itself, though we should encourage to use the .po/.mo standard. But it might be easier for some plugin auhtor to use a different system. --C schmitz (talk) 10:47, 18 July 2016 (CEST)


In fact : Yii already allow different cache for example. But must be set quicly (in config);, i think but not sure : different translation source can can be allowed with the same manner. If we can not do it like this : we can extend Yii system to allow different translation source. Using sme systme than modules : http://www.yiiframework.com/doc/guide/1.1/en/topics.i18n#c3902 Yii::t('MyModuleNameModule.translation','it works'); --DenisChenu (talk) 11:31, 18 July 2016 (CEST)