/cot_plug_translate

HowTo guide for Cotonti plugin translation

Localization of Cotonti Pligins

Simple guide how to translate (localize) of Cotonti plugin files hosted with GitHub.

HowTo

This guide describes how to localize language files for Cotonti plugins hosted on GitHub. It’s easy as 1-2-3. Just follow these steps:

Let’s assume we want to translate social_share plugin by Macik.

  1. First of all, sign in GitHub (you should be registered) and locate social_share.

  2. Goto repository of source plugin, locate there lang folder (path will be cot-pluginname/plugins/plugin_name/lang/ or similar).

  3. Find English version of language file (with en mark in file name), or other country language file you can translate to your language. Open it with «Raw» button on the panel. (direct link)

  4. You can see «raw» source text of file - just copy it to clipboard (in Windows you can press Ctrl-A to select all text, and Ctrl-C to copy it).

  5. Go back to lang folder (with direct link or by pressing ←prev.page button in your browser panel). Press «+» sign button to fork repository and create new file. (direct link)

  6. Name it as plugin_name.##.lang.php, where plugin_name is name of plugin, and ## is 2-letter code for you language (see this file if you doubt).

  7. Paste english text from clipboard and start translating it. As you done press «Propose New File» button. Name your commit as (for example) Translation in Brazil and press «Send pull request» . Thats all!

  8. Now you can browse commit to download translation file - click Files changedView file @ … button → right-click on Raw button to download source(click Save As…). Place this file in lang folder of plugin on your site for use.

Now, as author of plugin merged you translation commit it will be automatically included in original plugin downloads for all users. Respect.