How Plugin Translations Statistics Calculated in Plugin Directory

How Plugin Translations Statistics Calculated in Plugin Directory

Muhamad Ismuaji Prajitno發表於
Number of replies: 9

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

Plugin translations statistics

評比平均分數: -
In reply to Muhamad Ismuaji Prajitno

Re: How Plugin Translations Statistics Calculated in Plugin Directory

Mary Cooch發表於
Documentation writers的相片 Moodle HQ的相片 Particularly helpful Moodlers的相片 Testers的相片 Translators的相片
Hello there. Just moving your post to the Plugins traffic forum for more specialised assistance.
In reply to Muhamad Ismuaji Prajitno

Re: How Plugin Translations Statistics Calculated in Plugin Directory

Marcus Green發表於
Core developers的相片 Particularly helpful Moodlers的相片 Plugin developers的相片 Testers的相片
In reply to 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?
In reply to 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
In reply to 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
評比平均分數:Useful (4)
In reply to 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.
In reply to 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
In reply to 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.

評比平均分數:Useful (3)