You are here: Foswiki>Tasks Web>Item12089 (29 May 2014, GeorgeClark)Edit Attach

Item12089: Need a way to show the name of the current language

pencil
Priority: Enhancement
Current State: Confirmed
Released In: n/a
Target Release: minor
Applies To: Engine
Component: FoswikiTemplates
Branches:
Reported By: ArthurClemens
Waiting For:
Last Change By: GeorgeClark
To show the current language not in a dropdown but as a link to a fold-out, I need to show the current language.

See a version with current limitations (it shows the language code instead of the name):

impaired language selector.png

%LANGUAGE% shows the language code, so I think it is logical to make it accept a format parameter:

%LANGUAGE{
format="$langname"
}%

The default shows the language tag which is synonym with

%LANGUAGE{
format="$langtag"
}%

-- ArthurClemens - 25 Sep 2012

I can't use LANGUAGE as macro because it is a preference value. Any alternatives?

-- ArthurClemens - 25 Sep 2012

can you %QUERY on a cfg value?

-- SvenDowideit - 07 Nov 2012

The language is not set in configure. Even if you could use QUERY, there are no language names in configure, these only exist in .po files but that is inaccessible because it starts with an underscore.

-- ArthurClemens - 07 Nov 2012
 

ItemTemplate edit

Summary Need a way to show the name of the current language
ReportedBy ArthurClemens
Codebase trunk
SVN Range
AppliesTo Engine
Component FoswikiTemplates
Priority Enhancement
CurrentState Confirmed
WaitingFor
Checkins
TargetRelease minor
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
Release01x01Checkins
I Attachment Action Size Date Who Comment
impaired_language_selector.pngpng impaired_language_selector.png manage 11 K 25 Sep 2012 - 07:39 ArthurClemens  
Topic revision: r6 - 29 May 2014, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy