[pmwiki-users] title/links in template file
Patrick R. Michaud
pmichaud at pobox.com
Sun Feb 20 10:28:51 CST 2005
On Sun, Feb 20, 2005 at 06:16:30AM +0530, V.Krishn wrote:
> Could you help:
> Which would be the correct format in a template file:
You probably want the brackets, thus:
<a href='$PageUrl_Discuss' title='$[Discuss this Page]'>$[Discuss Page]</a>
and
<a href='$ScriptUrl/$[$Group/RecentChanges]'>$[Recent Changes]</a>
> What could be the reason for inserting $[..] as it seems without it,
> it still works.
Anything inside of $[...] becomes a candidate for being translated
by the internationalization routines. When PmWiki encounters a string
such as $[Edit Page], it looks in the current translation tables to
see if a translation exists for "Edit Page" and uses that if available.
Otherwise, it just outputs "Edit Page". So, by using the $[...]
in a template you give site administrators the option of customizing
prompts to their local language without having to modify the template
file itself. This also makes upgrading skins/templates much easier.
See http://www.pmwiki.org/wiki/PmWiki/Internationalizations .
Pm
More information about the pmwiki-users
mailing list