• 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.

Item5610: cfg{site}{Lang} is not used if set.

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine I18N.pm Normal No Action Required   n/a  

Edit Form Data

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

Detail

if setting the default language for the site it is not interpreted by TWiki. A small patch below to fix this.

* I1.pm 2008-05-08 20:56:23.000000000 +0200
--- I2.pm 2008-05-08 21:00:34.000000000 +0200
***************
*** 137,143 ****
my $this;
if ($initialised) {
$session->enterContext( 'i18n_enabled' );
! my $userLanguage = _normalize_language_tag($session->{prefs}->getPreferencesValue('LANGUAGE'));
if ($userLanguage) {
$this = TWiki::I18N->get_handle($userLanguage);
} else {
--- 137,143 ----
my $this;
if ($initialised) {
$session->enterContext( 'i18n_enabled' );
! my $userLanguage = _normalize_language_tag($session->{prefs}->getPreferencesValue('LANGUAGE')) | $TWiki::cfg{Site}{Lang};
if ($userLanguage) {
$this = TWiki::I18N->get_handle($userLanguage);
} else {
~

-- TWiki:Main/AdamHyde - 08 May 2008

Just * Set LANGUAGE = in Main.TWikiPreferences. Patch is not required, as discussed in IRC.

-- CrawfordCurrie - 08 May 2008

Also LANG was recently removed (by me) from the sources to reduce the localize settings from 4 to 2 (Locale and Charset) and this way simplify the settings both for the users and the developers.

-- TWiki:Main.KennethLavrsen - 11 May 2008

ItemTemplate
Summary cfg{site}{Lang} is not used if set.
ReportedBy TWiki:Main.AdamHyde
Codebase 4.2.0
SVN Range TWiki-5.0.0, Sun, 04 May 2008, build 16770
AppliesTo Engine
Component I18N.pm
Priority Normal
CurrentState No Action Required
WaitingFor

Checkins

TargetRelease n/a
ReleasedIn

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2008-05-11 - 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