%META:TOPICINFO{author="TWikiContributor" date="1160971176" format="1.2" version="2"}% %META:TOPICPARENT{name="TWikiVariables"}% #VarMAKETEXT ---+++ MAKETEXT -- creates text using TWiki's I18N infrastructure * Syntax: =%MAKETEXT{"string" args="..."}= * Supported parameters: | *Parameter* | *Description* | *Default* | | ="text"= or =string="text"= | The text to be displayed. | _none_ | | =args="param1, param2"= | a comma-separated list of arguments to be interpolated in the string, replacing the =[_N]= placeholders in it. | _none_ | * Examples: * =%MAKETEXT{string="Notes:"}%= %BR% expands to %BR% %MAKETEXT{string="Notes:"}% * =%MAKETEXT{"If you have any questions, please contact [_1]." args="%WIKIWEBMASTER%"}%= %BR% expands to %BR% %MAKETEXT{"If you have any questions, please contact [_1]." args="%WIKIWEBMASTER%"}% * =%MAKETEXT{"Did you want to [[[_1]][reset [_2]'s password]]?" args="%TWIKIWEB%.ResetPassword,%WIKIUSERNAME%"}%= %BR% expands to %BR% %MAKETEXT{"Did you want to [[[_1]][reset [_2]'s password]]?" args="TWiki.ResetPassword,%WIKIUSERNAME%"}% * __Notes:__ * TWiki will translate the =string= to the current user's language _only_ if it has such string in its translation table for that language. * Amperstands (&) followed by one letter (one of a...z, A...Z) (say, =X=) in the translatable string will be translated to <span class='twikiAccessKey'>X</span>. This is used to implement access keys. If you want to write an actual amperstand that stays just before a letter, write two consecutive amperstands (&&): they will be transformed in just one. * translatable string starting with underscores (_) are reserved. You *cannot* use translatable phrases starting with an underscore. * Make sure that the translatable string is _constant_. Specially, do *not* include %VARIABLES% inside the translatable strings (since they will get expanded *before* the %MAKETEXT{...}% itself is handled).