• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item4459: TemplateLogin messages not translated

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine TemplateLogin Normal Closed   minor 4.2.0

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

One message in the login page isn't translated. The message is:

Enter your LoginName. (Typically First name and last name, no space, no dots, capitalized, e.g. JohnSmith, unless you chose otherwise). Visit TWikiRegistration if you do not have one.

I think the problem lies in the order of applying translation (gettext) and TWiki formatting but I didn't dig in to figure it out.

-- TWiki:Main/HowardTsai - 15 Aug 2007

String freeze is any-time-now for 4.2 - perhaps we could take a glance at this one last time. I think the problem is that the string is set in configure for apache login - but perhaps a smarter solution could be found for the TemplateLogin message.

-- TWiki:Main.SteffenPoulsen - 16 Sep 2007

so... as this been resolved in 4.2?

-- SvenDowideit - 01 Oct 2007

No, it has not been solved in 4.2, for neither login scheme. For ApacheLogin there's no chance, because AFAICS Apache's "Realm" does not care for Accept-Language headers.

For TemplateLogin , %MAKETEXT{..}% is not invoked in the login template. Wouldn't be sufficent, though, because TWiki.pot and all the translation(s) contain the TWiki variable %TWIKIWEB% which has already been expanded when %MAKETEXT{..}% would be invoked.

So, either we drop the variable %TWIKIWEB% at this point in favour of the 99.9% constant TWiki, or there's a couple of changes to be made:

  1. In locales/TWiki.pot and its translations, use %1 instead of TWiki. If it is a variable, treat it as a variable.
  2. In lib/TWiki.spec, in the {AuthRealm} definition, change occurrences of TWiki to [_1].
  3. In templates/login.tmpl, change the reference to %AUTHREALM% into %MAKETEXT{"%AUTHREALM%" args="%TWIKIWEB%"}%.

This sort of works (I've just tested it in my T4.2 installation), but only for fresh installs. Everyone else will have the bogus, untranslatable string in his lib/LocalSite.cfg. I am unsure about other side effects because I know pretty much of nothing about I18N. Sorry.

-- TWiki:Main.HaraldJoerg - 01 Oct 2007

Sorry, forgot to set status to "New" after providing new data.

- TWiki:Main.HaraldJoerg - 04 Oct 2007

I understand. After review I don't believe this is Urgent - it should not block a release. Dropping to Normal, consistent with all other non-fatal internationalisation bugs (some day someone will step forward to own internationalisation, but until then....)

CC

TemplateLogin login screen is fully translated now (at least in pattern), and there is nothing that can be done about ApacheLogin - closing.

-- TWiki:Main.SteffenPoulsen - 22 Dec 2007

ItemTemplate
Summary TemplateLogin messages not translated
ReportedBy TWiki:Main.HowardTsai
Codebase 4.1.2
SVN Range TWiki-4.1.2, Fri, 10 Aug 2007, build 14536
AppliesTo Engine
Component TemplateLogin
Priority Normal
CurrentState Closed
WaitingFor

Checkins

TargetRelease minor
ReleasedIn 4.2.0
Edit | Attach | Watch | Print version | History: r8 < r7 < r6 < r5 < r4 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r8 - 2008-01-22 - KennethLavrsen
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback