[pmwiki-users] XLPage translation help

Patrick R. Michaud pmichaud at pobox.com
Tue Sep 6 10:31:04 CDT 2005


I've just added an extension to pmwiki.org that I hope will help
with keeping the i18n XLPages up-to-date.

As many of you know, we maintain a template page of current 
translation phrases at http://www.pmwiki.org/wiki/PmWiki/XLPageTemplate.
This page is loaded by default when someone starts an XLPage for
a new language.

Unfortunately, if the XLPageTemplate changed, then it was often difficult
to merge the new entries into existing XLPage .

To try to help with this, on pmwiki.org I've added a "?xltmpl=" option.
Editing an XLPage with '?xltmpl=PmWiki.XLPageTemplate' will cause
any new phrase on the XLPageTemplate to be merged into the edit form
for the existing XLPage.  In addition, any phrases that appear on
the XLPage that are no longer in the XLPage template are automatically
marked with '## extra' so they can be obsoleted or moved as appropriate.
(I'm planning to go through each of the XLPages and move any '## extra'
entries to the bottom of the XLPage.)

As an example, take a look at

http://www.pmwiki.org/wiki/PmWikiEs/XLPage?action=edit&xltmpl=PmWiki.XLPageTemplate

You'll see that new entries for translations of 'View', 
'{$SiteGroup}/EditQuickReference', '$SiteGroup/Search', etc. are all
automatically added based on XLPageTemplate.  There's still a fair
bit of manual editing that would have to be done after the merge
takes place, but this at least helps an XLPage author to know what
new things need translation.

I *think* I have the XLPageTemplate pretty well up-to-date at the
moment, although I'm sure there are things throughout the 2.0 code
that need to be more properly internationalized.  We'll just
keep fixing things as we find them over the next few releases.

Several of the xlpage-*.php files of course need to be fixed, and
I plan to be working on those as well.

Pm




More information about the pmwiki-users mailing list