Difference between revisions of "Template:Localize"

From Pathfinder Wiki
(Created page with "<includeonly>{{#lst:Localization:All{{GetLangSuffix}}|{{{1}}}}}</includeonly><noinclude> {{Localize:Overview}} </noinclude>")
 
Line 1: Line 1:
<includeonly>{{#lst:Localization:All{{GetLangSuffix}}|{{{1}}}}}</includeonly><noinclude>
+
<includeonly>{{#lst:Localization:All{{GetLangSuffix}}|{{{1|Phrase cannot be localized}}}}}
{{Localize:Overview}}
+
</includeonly><noinclude>
 +
This template returns a localized version of a "canned" phrase that we use in the interfaces.  THe phrase is in the language of the page that invokes it, so if we call the template from
 +
<nowiki>[[</nowiki>some page<nowiki>[[</nowiki>some page]], we'd get the English version of the page, but if we call it from <nowiki>[[</nowiki>some page/es]], we would get the Spanish version of the phrase. 
 +
 
 +
Here is an example:
 +
<nowiki>{{</nowiki>Localize|Overview}}
 +
 
 +
{{Localize|Overview}}
 +
 
 
</noinclude>
 
</noinclude>

Revision as of 22:23, 29 January 2021

This template returns a localized version of a "canned" phrase that we use in the interfaces. THe phrase is in the language of the page that invokes it, so if we call the template from [[some page[[some page]], we'd get the English version of the page, but if we call it from [[some page/es]], we would get the Spanish version of the phrase.

Here is an example: {{Localize|Overview}}