Item12301: i18n->maketext calls in plugin init run before user language has been determined.
Priority: Urgent
Current State: Closed
Released In: 1.1.7
Target Release: patch
Applies To: Engine
Component:
Branches: Release01x01 trunk
(19:04:14) CDot: ok - you are clalling i18n->maketext during plugin loading
(19:04:24) gac410: hm. Which plugin?
(19:04:25) CDot: *before* the preferences are fully loaded
(19:04:34) CDot: none; lib/Foswiki/Plugin.pm
(19:04:47) gac410: Damn... I've been caught by this before. :(
(19:04:56) CDot: if a plugin has errors on load, it invoked the error messsage
(19:05:08) CDot: you don't see it, because none of your plugins error out
(19:05:24) gac410: Ah... and the error results in a translation that isn't possible due to timing.
(19:05:31) CDot: the problem is not with your code; it's with the Prefs.pm code
(19:05:46) CDot: it makes *stupid* assumptions about the maturity of the preferences stack
(19:06:05) CDot: however, even if fixed, the maketext will still be wrong
(19:06:15) CDot: because it is called before the LANGUAGE has been specified
(19:06:29) CDot: (which is done in User prefs, which haen't been loaded yet)
(19:06:54) CDot: so there are two problems; one is the maketext calls, the other is the stupid Prefs code
--
CrawfordCurrie - 17 Dec 2012