Translations: how-to contribute?
Transparent Background:
Pydio Cells
Cells strings are open to the community contributions via CrowdIn, an online crowd-sourced translation tool: Please visit https://crowdin.com/project/pydio-cells and create an account if you want to contribute.
You are more than welcome to contribute to translations. To make sure languages are correctly supported, we only opened a set of languages, help us reaching 100% coverage! If you wish to add a new language, please contact us so that we can enable this both in the code and on the translation platform.
Pydio 8
For Pydio 8, if you want to contribute on this, please do the following :
- First, "fork" the code by registering to Github and create your own "branch" of Pydio to work with. Set up your own working install by cloning your branch on your server, and create a VirtualHost pointing to the pydio-core/core/src/ folder.
- Each plugin can eventually provide its own i18n files, generally located in res/ or i18n/ . This "i18n libraries" are declared inside the manifest.xml file of the plugin.
- The language files are all structured as follow
- Naming : [lang_code].php , where lang_code is the two-letter language code, lowercase. E.g en.php, fr.php, de.php, etc...
- Content : a PHP array called $mess containing a set of key=>values.
- The reference is always the en.php file. Thus, any other language file must contain at least the same keys.
- Usage : except for the core.ajaxplorer library, a plugin library is declared with a namespace, and inside the application, accessing a message will be done using the namespace and the message key. For example, "share_center.1", "meta_watch.23", etc...
- To add support for new languages inside a plugin, simply duplicate the en.php file using the language code, and replace the values with the correct translations. Make sure to use UTF-8 for the charset.
- There is a cache for this part. Manually delete the content of data/cache/i18n/*.ser to make sure that the cache is regenerated at next application loaded.
- Once you are set up, submit your changes as a Pull Request on GitHub. Make sure to submit one PR, not one per file...
Transparent Background: