[pmwiki-users] $[language] variables (was: Edit, Preview, and Save Without Scrolling)
Patrick R. Michaud
pmichaud at pobox.com
Tue Jan 25 18:55:57 CST 2005
On Tue, Jan 25, 2005 at 04:18:19PM -0700, H. Fox wrote:
>
> pps: Is there some resource that explains how to use $[language]
> variables in skin.php files?
http://www.pmwiki.org/wiki/PmWiki/Internationalizations is a start.
Basically PmWiki maintains a phrase translation table, where anything
that appears in $[...] is a "phrase". Thus, when PmWiki encounters
something like $[some phrase], it checks the current translation table
to find the translation of "some phrase" in the current language setting.
If no such phrase exists, then "some phrase" is used directly.
The XLPage() function is the normal mechanism for loading
phrase translations from a wiki page, and one can use the XLSDVA()
function to load phrase translations from within a php script.
Pm
More information about the pmwiki-users
mailing list