Documentation
Language Translation
Introduction
The user-facing pages in Tournamatch have been internationalized (i18n) and may be easily translated to any language (i10n). Tournamatch ships with the necessary POT file and supports English by default.
How to Translate
A translation editor is recommended before you begin translation. Translation editors are more convenient to use than simple text editors and will drastically speed up the process with suggestions for text. We recommend Poedit.
-
Open Poedit and create a new translation file.
-
Select the file
wp-content/plugins/tournamatch/language/tournamatch.pot
. -
Select the language you wish to translate to.
-
Begin translating the source text to the desired output in Translation.
-
Save the translation with the prefix tournamatch-. For example, if ou are translation to French, Poedit will suggest a filename fr_FR; the filename should be tournamatch-fr_FR. Poedit will automatically create a .PO and .MO file using this filename.
-
Upload the tournamatch-fr_FR.mo file to
wp-content/languages/plugins/
.
{warning} Do not upload the tournamatch-fr_FR.mo file to the
wp-content/plugins/tournamatch/
directory. You will lose any file in thewp-content/plugins/tournamatch
directory after the next Tournamatch update.