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