Foswiki on GitHub is open for business! Next release meeting: Monday Nov. 17, 1300Z

Item9437: maketext and wikiwebmaster

Priority: CurrentState: AppliesTo: Component: WaitingFor:
Normal Closed Engine    
see attached screenshot for the example.

2010-08-06_132923.jpg

but summary is that
 %wikiwebmaster% 
is fine until it passes through maketext function.

-- TerryRankine - 05 Aug 2010

What does the %MAKETEXT% string look like? If you want a translatable string to work properly, it has to be constant. If it contains a variable, it should be something like
%MAKETEXT{"E-mail address: [_1]" args="[[mailto:%WIKIWEBMASTER%]]"}%

Test: E-mail address: mailto:webmaster@foswiki.org

Test2: E-mail address: webmaster@foswiki.org

-- PaulHarvey - 05 Aug 2010


%IF{
  "context passwords_modifyable"
  then="<strong>%MAKETEXT{"After submitting this form, you will receive an e-mail with your new, *system-generated* password, and a link to a page where you can change it."}%</strong>"
  else="<strong>%MAKETEXT{"Sorry, the password system is currently read only, please contact [_1]" args="%WIKIWEBMASTER%"}%</strong>  %MAKETEXT{"E-mail address: [_1]" args="[[mailto:%WIKIWEBMASTER%][%WIKIWEBMASTER%]]"}% "
}% 

you can see your test in that there now. new screenshot coming

-- TerryRankine - 06 Aug 2010

-- PaulHarvey - 10 Aug 2010

Checked 1.1.2 and trunk

Only issue is trailing dot. Adding one space fixes it

-- KennethLavrsen - 19 Nov 2010

cheers!

-- TerryRankine - 19 Nov 2010
 
I Attachment Action Size Date Who Comment
2010-08-05_092610.jpgjpg 2010-08-05_092610.jpg manage 245.8 K 05 Aug 2010 - 01:27 TerryRankine broken rendering
2010-08-06_132923.jpgjpg 2010-08-06_132923.jpg manage 285.2 K 06 Aug 2010 - 05:30 TerryRankine suggestion works - but default page is still broken
Topic revision: r13 - 16 Apr 2011, KennethLavrsen
 
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons License