Recent Changes - Search:

PmWiki

pmwiki.org

Localization

This group is intended as a resource for translators to help them prepare a local version of PmWiki's documentation pages and for configuring a localized group on pmwiki.org using PmWikiXx/XLPage.

First time translation

There is no translation for your language and you want to create one.

Before all, subscribe to the english mailing list pm (Patrick Michaud, the owner of PmWiki) will acknowledge your wish and give you basic informations. You can also ask for a localized mailing list if your are several volunteers.

Basically there are two steps involved in creating a local translation on pmwiki.org:

  1. create an XLPage in the appropriate PmWikiXx group (where "Xx" is the appropriate two-letter language code),
  2. create the "home page" for the group as PmWikiXx/PmWikiXx .

pmwiki.org tries to help out a bit by providing page templates for each of the above pages(PmWiki.XLPageTemplate and PmWiki.PmWiki). For example, if someone wanted to create a Maori translation (language code "mi"), they would fill in the pages at

  • PmWikiMi/XLPage?action=edit
  • PmWikiMi/PmWikiMi?action=edit

That's all that really *needs* to be done to provide a localization.

Completing a translation

However, if you want to go further, and provide translations of documentation or other files, then it's simply a matter of creating pages within the new group. As far as what pages should be translated, and how they should be translated -- I tend to leave those decisions up to whoever is doing the work of translating. :-) Pm

XLPage

Once i18n-Xx.zip file is installed, the PmWikiXx.XLPage is available from the wiki itself and can be used to translate or change the translated words without further server change. Any fix in this page is immediately visible on the wiki. Of course, Xx stands for your Langage code.

Resources

And the page which is distributed with the download, to explain PmWiki installers how to install the local version :

Should the page titles be translated ?

Depending choice of translators, documentation page name have been or not tranlated, e.g.:

  • German translation mainly use the english page names
  • French translation have originally translated page names in french, which need a careful follow-up of already translated page and page interlinks. Page titles have been later set back to english.

In any case, the title appearing to the user can be set by the directive (:title title of the page:), hiding the real page name (which is still visible in the address name).

A tool proposed since version 2.1 shall help with page interlinks, this is the possibility to display the title of the page instead of the link name:

  • [[PageName|+]] shall display the real page title and not 'PageName'. This mean than anywhere you use the link to the english name, the title of the page is displayed instead of the page name. With that, if page names are not translated, the links no longer needs to be translated, it is only needed to give local titles to local pages. When writing or translating a page, simply add the |+ and the tranlation is done.

Also page lists in a given language can use the format 'title' which display a list with page titles (in local language) instead of page names. You can list all page of a given translation with the following call:

  • [[PmWikiXx?action=search&q=PmWikiXx/&fmt=title]]

So, considering that help a lot page translators and translation update, it can be recommended to stuck to english page name, and use above tools to hide this to users.

If adopted, you can then set in the page GroupFooter the following (which is not quite ok in this group but should work in your local language group):

%define=trad block color='#060' bgcolor=#cf9 border='1px solid #060'
padding='3px' font-size='smaller'%

----
%trad% (:if exists PmWiki.{$Name}:)
Traduction of [[(http://www.pmwiki.org/wiki/)PmWiki.{$Name}]] -(:elseif
exists Site.{$Name}:)
Traduction of [[(http://www.pmwiki.org/wiki/)Site.{$Name}]] - (:ifend:)
Original page on [[(http://www.pmwiki.org/wiki/){$FullName}]] -
[[$[Backlinks]->A?action=search&q=link={$FullName}&fmt=title]]\\
(:if (equal "{$ScriptUrl}" "http://pmwiki.org/wiki") or (equal
"{$ScriptUrl}" "http://www.pmwiki.org/wiki"):)
Last modifications:\\
[[{$FullName}]]: {$LastModified}\\
(:if exists PmWiki.{$Name}:)
[[PmWiki.{$Name}]]: {PmWiki.{$Name}$LastModified}
(:ifend:)

Traduction of PmWiki.Localization - Original page on Localization.Localization - Backlinks
Last modifications:
Localization.Localization: December 22, 2007, at 11:03 AM
PmWiki.Localization: June 02, 2008, at 05:52 AM

If english names are maintained for the translated pages, you can then make a comparative list by creating a page 'ListLocal' and writing in it the following (replace PmWikiXx by your local group). Note that the pagelist directive shall be one a unique line, it have been cut here for presentation reasons only:

 
(:pagelist fmt=PmWikiXx.ListLocal#translation group=PmWiki
 order=-time -RecentChanges -DocumentationGuidelines-Comments:)

[[#translation]]
(:if equal {<$Group}:)
(:table border='1' cellspacing='0' cellpadding='0':)
(:cellnr align=center colspan=2:)'''Original page `PmWiki'''
(:cell align=center colspan=2:)'''Translation `PmWikiXx'''
(:cellnr align=center:)Page name
(:cell align=center:)Last modified
(:cell align=center:)Last modified
(:cell align=center:)Page name
(:if:)
(:cellnr:)[[{=$FullName}|+]]
(:cell:){=$LastModified}
(:cell:){PmWikiXx.{=$Name}$LastModified}
(:cell:)[[PmWikiXx/{=$Name}|+]]
(:if equal {>$Group}:)
(:tableend:)
(:if:)
[[#translationend]]

As an exemple of the result PmWikiFr.ListLocal
- from Antony Templier suggestion -

Existing translations

Note: the page listing does not work for those language groups which use UTF-8 character encoding and use those characters in the pagenames.

 LanguagePmWiki2Pages
 EnglishPmWikiList
 ArabicPmWikiArList
 BulgarianPmWikiBg/PmWikiBgList
 CatalanPmWikiCaList
 CzechPmWikiCs/PmWikiCsList
 DanishPmWikiDaList
 GermanPmWikiDeList
 SpanishPmWikiEs/PmWikiEsList
 EstonianPmWikiEt/PmWikiEtList
 FrenchPmWikiFrList
 ItalianPmWikiIt/PmWikiItList
 DutchPmWikiNlList
 LithuanianPmWikiLtList
 NorwegianPmWikiNo/PmWikiNoList
 PolishPmWikiPl/PmWikiPlList
 PortuguesePmWikiPt/PmWikiPtList
 Brazilian
Portuguese
PmWikiPtBrList
 RomanianPmWikiRo/PmWikiRoList
 RussianPmWikiRu/PmWikiRuList
 SwedishPmWikiSv/PmWikiSvList
 SlovakPmWikiSk/PmWikiSkList
 SlovenianPmWikiSi/PmWikiSiList
 TurkishPmWikiTrList
 TaiwanPmWikiTw/PmWikiTwList
 VietnamesePmWikiVi/PmWikiViList
 ChinesePmWikiZhCn/PmWikiZhCnList
 ChinesePmWikiZhCnGB2312/PmWikiZhCnGB2312List
 ChinesePmWikiZhTw/PmWikiZhTwList
Edit - History - Print - Recent Changes - Search
Page last modified on December 22, 2007, at 11:03 AM