You are here: Foswiki>Tasks Web>Item12301 (01 Feb 2013, GeorgeClark)Edit Attach

Item12301: i18n->maketext calls in plugin init run before user language has been determined.

pencil
Priority: Urgent
Current State: Closed
Released In: 1.1.7
Target Release: patch
Applies To: Engine
Component:
Branches: Release01x01 trunk
Reported By: CrawfordCurrie
Waiting For:
Last Change By: GeorgeClark
(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

 

ItemTemplate edit

Summary i18n->maketext calls in plugin init run before user language has been determined.
ReportedBy CrawfordCurrie
Codebase 1.1.6, trunk
SVN Range
AppliesTo Engine
Component
Priority Urgent
CurrentState Closed
WaitingFor
Checkins distro:b4cacd6a2636 distro:3aaef34e0f6d
TargetRelease patch
ReleasedIn 1.1.7
CheckinsOnBranches Release01x01 trunk
trunkCheckins distro:3aaef34e0f6d
Release01x01Checkins distro:b4cacd6a2636
Topic revision: r7 - 01 Feb 2013, GeorgeClark - This page was cached on 01 Oct 2016 - 07:08.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License