How Plugin Translations Statistics Calculated in Plugin Directory

How Plugin Translations Statistics Calculated in Plugin Directory

Muhamad Ismuaji Prajitno -
回帖数:9

How are the statistics of plugin translation in the plugin directory calculated?

Plugin translations statistics

回复Muhamad Ismuaji Prajitno

Re: How Plugin Translations Statistics Calculated in Plugin Directory

Marcus Green -
Core developers的头像 Particularly helpful Moodlers的头像 Plugin developers的头像 Testers的头像
回复Marcus Green

Re: How Plugin Translations Statistics Calculated in Plugin Directory

Muhamad Ismuaji Prajitno -
Thanks. Can you explain more about it? I really appreciate it I've read it but still not 100% what is for. As far as I understand, the statistics are calculated based on the number of translation resources that have been translated into several languages for the Moodle language pack. So, what is the difference with the translation resources that are already available in the Moodle plugin directory?
回复Marcus Green

Re: How Plugin Translations Statistics Calculated in Plugin Directory

Muhamad Ismuaji Prajitno -
Could you please clarify my understanding below is it correct purpose or not ?

Moodle language pack is the translation version that already improved by translation contributor. This because we not 100% possible to make 100% correct translation in various languages. That’s why we need contributor. So for example if we already has Arabic translation resource in the Moodle Plugin. And in the Moodle language pack there is Arabic translation for the plugin which is this improved translation version by contributor. When Moodle user download language pack and install to their Moodle. It will replace the original translation resource in Moodle plugin with what inside language pack
回复Muhamad Ismuaji Prajitno

Re: How Plugin Translations Statistics Calculated in Plugin Directory

Séverin TERRIER -
Documentation writers的头像 Particularly helpful Moodlers的头像 Testers的头像 Translators的头像
Hi Muhamad,

In fact, once your plugin is officially included in Moodle plugin database, it should NOT contain translations anymore, and translations should be move to AMOS. The percentage of translation is based on what is translated in AMOS (only), not files included in the plugin (because they should not).

See instruction in plugin contribution checks about language and detailed explanation here (more then 10 years, but still applicable).
 
In short : include your translations into the plugin before the plugin is officially validated in the database, then move translation to AMOS and maintain them in AMOS only.
 
And when your plugin creates new strings, publish your new plugin version, wait that AMOS includes them (should be quick), and then translate them in AMOS.

HTH,
Séverin
回复Séverin TERRIER

Re: How Plugin Translations Statistics Calculated in Plugin Directory

Muhamad Ismuaji Prajitno -
Thanks a lot for the answer Severin, that new information for me.

My next question is about translation files that are already included in the plugin. What happens with those files? Those files can still used right when users install the plugin right? Because as usual flow when I install plugin with contains translation files. When I use this plugin, it will show the correct translated caption based on my Moodle language setting.
回复Muhamad Ismuaji Prajitno

Re: How Plugin Translations Statistics Calculated in Plugin Directory

Séverin TERRIER -
Documentation writers的头像 Particularly helpful Moodlers的头像 Testers的头像 Translators的头像
Hi again Muhamad,

I'm not sure i've well understood your question, so pardon me if my answer is not really useful for you.

As explained in the link on my previous post, when plugin is in Moodle plugin database, translations should be removed from inside plugin files, and transfered in AMOS, and then updated only in AMOS after that.

Language packs include files for all plugins existing in Moodle plugin database, so even if you install a new plugin, and don't update your language pack, translation will be available.

HTH,
Séverin
回复Muhamad Ismuaji Prajitno

Re: How Plugin Translations Statistics Calculated in Plugin Directory

David Mudrák -
Core developers的头像 Documentation writers的头像 Moodle HQ的头像 Particularly helpful Moodlers的头像 Peer reviewers的头像 Plugin developers的头像 Plugins guardians的头像 Testers的头像 Translators的头像

Moodle uses both translations - the ones that ship with the plugin as well as those coming from AMOS. If a string is translated in both places, the AMOS version takes precedence.