This tutorial will help you build a new language for a phpFox site.
English is default language of phpFox. If you want to build a new, we suggest that you should clone from it.
- Create From: Choose language you want to clone from, English (US) is recommended.
- Name: Name of the new language.
- Language Abbreviation Code: abbreviation code of the new language.
- Text Direction: text direction of the new language.
You need waiting some minutes for importing phrases. After import process is done, your new language package will be listed in the Languages Manage Page
There are 2 ways for you to translate the language phrases
In the Languages Manage Page, click on the drop-down button of the new language, choose Manage Phrases.
This page will list all phrases you need to translate to your language.
Note: Do not translate words in brackets {} because they are variables and will be replaced.
Click Save All after you translate all phrases.
First, export your language package.
Next, extract downloaded package and open file /upload/include/xml/language/your-language-abbreviation-code/module-core.xml. In this file, you can translate all phrases.
After translating completely, upload folder your-language-abbreviation-code in /upload/include/xml/language/ to your server directory /PF.Base/include/xml/language.
Next, delete old language package.
Next, go to Manual Import click on Install, waiting some minutes for the import process.
Congratulation, your language is ready to use now. You can also export it and publish to the phpFox store.