Forums / General / The parameters are link start and end tags.

The parameters are link start and end tags.

Author Message

Softriva .com

Friday 04 August 2006 1:47:26 am

In the translation.ts file there is this comment

The parameters are link start and end tags.

What in the heaven does this mean?

Claudia Kosny

Saturday 12 August 2006 4:34:01 pm

Hi OOzy Pal

Here is an example:
<message>
<source>For more options try the %1Advanced search%2.</source>
<comment>The parameters are link start and end tags.</comment>
<translation>Blabla</translation>
</message>

The comment just tells the translator that the original string is displayed with 'Advanced search' as as a link and that the translated string should include this link as well. As a link consists of the start tag <a href="...">, the clickable text 'Advanced Search' and the end tag </a> you have two parameters which are necessary for the translation.

Parameters are pieces of text which should not be translated even though they appear in a translatable string. Common examples are e.g html markup (as in the example) or numbers.

In some languages it might be more common e.g. to include the article within the clickable linktext or to put the link around the entire string so the information about what the parameters actually stand for might be useful for the translator.

For more information about using parameters check the documentation for i18n:
http://ez.no/doc/ez_publish/technical_manual/3_8/reference/template_operators/formatting_and_internationalization/i18n

Claudia