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

Item4175: add translation capability to label of the subscribe button

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension SubscribePlugin Enhancement Closed   n/a  

Edit Form Data

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

Detail

-- TWiki:Main/HoussineTouh - 01 Jun 2007 I added following two lines to the the code in my local installation to enhance the translation capability of the subscribe button:

i replace the line: my $actionName = 'Subscribe';

with the following two lines:

my $actionName = '%MAKETEXT{"Subscribe"}%';
$actionName = TWiki::Func::expandCommonVariables( $actionName, $topic, $web);

and the line:

my $actionName = 'Unsubscribe';

with the following two lines:

my $actionName = '%MAKETEXT{"Unsubscribe"}%';
$actionName = TWiki::Func::expandCommonVariables( $actionName, $topic, $web);

Please feel free to add this coding to the official plugin

thanks


Thanks Houssine; i thought that had been done in the recent updates; I guess not.

I'm not going to do this right now, however, for a couple of reasons:

  1. There is currently no way to get the 'Subscribe' string into the translations files. So no-one will ever know they have to translate that string.
  2. There is an open discussion topic on this exact issue that is ongoing (see TWiki:Codev.SupportTranslationInPlugins) - I don't want to pre-empt that discussion and potentially do the wrong thing.
Leaving this open, however, as it's an obvious requirement.

CC

I added the maketext, though obviously the string won't be there in other languages.

CC

ItemTemplate
Summary add translation capability to label of the subscribe button
ReportedBy TWiki:Main.HoussineTouh
Codebase

SVN Range TWiki-4.1.2, Fri, 18 May 2007, build 13796
AppliesTo Extension
Component SubscribePlugin
Priority Enhancement
CurrentState Closed
WaitingFor

Checkins TWikirev:14800
TargetRelease n/a
ReleasedIn

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2007-09-09 - CrawfordCurrie
 
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