All of the PageLines products are localization-ready, which means they can easily be translated into other languages. There are a number of methods to create a translation, most of which are outlined in the WordPress codex.
The first thing you need to do is tell Wordpress which language it should use. Open
wp-config.php and modify the line below, or add it if it is missing. In the example below, we have set the language to Danish, a complete list of language and country codes are outlined in the Wordpress Codex.
define ('WPLANG', 'da_DK');
By using either the Base Theme or PageLines Customize Plugin and creating a
language folder, your custom translations will be safe from updates. Create the
language folder in the following location.
PageLines Customize Plugin
wp-content → plugins → pagelines-customize.
Once uploaded, your file structure for the PageLines Customize Plugin will look like this:
pagelines-customize/ language/ functions.php pagelines-customize.php style.css thumb.png
wp-content → themes → pagelines-template-theme.
Once uploaded, your file structure for the Base Theme will look like this:
dms-template-theme/ language/ sections/ functions.php info.txt page.example.php screenshot.png setup.php style.css thumb.png
If you wish to add translations manually, you can do so by using PoEdit.
PageLines DMS includes one
.pot file which can be imported into PoEdit to translate. To get started open PoEdit and go to File → New catalog from POT file.
Once you have done this, choose the pagelines.pot which is located in
/wp-content/themes/dms/language/ and PoEdit will show the catalog properties window.
Fill the out the fields such as project name and so on, this informs other translators who you are and then click OK. After this you will be prompted to save your file, name it based on your language, for example, a Danish translation would be saved as
da_DK.poand use the file type
GNU gettext catologs (*.po). Now the strings will be listed.
After translating all strings, save again and the
.mo file will be generated automatically.
Upon launch PageLines DMS will not provide RTL (right-to-left) support. However, such support has been discussed and will be implemented in a future release via an update.
Once RTL support has been implemented, you will be able to add Arabic, Hebrew, Persian, or any other RTL language and it will automatically enable Right-to-left (RTL) support in PageLines DMS and will change the styles accordingly.