|
[
Permalink
| « Hide
]
David Mudrak added a comment - 21/Nov/08 11:45 PM
Added some watchers of the issue to comment and approve
An example of one of the outputs - the ratio of translated strings in the individual language pack files.
could we have totals for each lang pack and sort the results by translation %?
Nice page.
It would be nice if it could be calculated against the last stable release, but by lack of an overview of which strings should be in there, that is not possible... Just a thought summary.txt - the overview of all language pack and their translated strings ratio. Ordered by the language code. I can't see any reason why sort by the ratio as proposed by Petr - translating is not a competition
Legend: LANGUAGE: the code of the pack language(+its parent language)
MODULE: the file name containing $string[] defintion OWN: number of string directly translated in this module INH: the number of translated strings inherited from the parent language pack in this module FROM: the total number of English strings in this module RATIO - percentage ratio of available strings (directly translated or inherited from the parent language) TRANSLATED: the star symbol represents 10% of directly translated strings. The dot sign represents 10% of inherited strings The figures are calculated against the current stable release, i.e. against the English pack that comes with Moodle 1.9.x. This is how the script works:
1. get the list of all PHP files in the English language pack. Ignore langconfig.php and styles.php A string is considered translated if it is found either in the language pack itself or in its parent pack. The English (en_utf8) is not considered as a parent pack (if it was, all packages would have 100% ratio). Therefore, en_us_utf8 has only 1% translated ratio, because it does not explicitly defines en_utf8 as its parent language. I will publish the source code of the langstats soon. Cool David!
Just guessing if we could put that script in download.moodle.org (where all the lang packs exist) and generate raw info (something like summary.txt but in csv, tabular or xml format). And then use that summary info where needed (lang page of download.moodle.org, new stats page in moodle.org... and so on). I think we could process that weekly easily, leaving your own server free of those tasks, David. Nice stuff! Thanks! Ciao Thanks for comments Eloy
download server is a great location of the script. But during the development and testing phase, I need to generate statistics at my own server in order to have quick access to the script itself. So if there is a bug/improvement I can fix/implement it quickly. So either I can be given access to the download.moodle.org or I shall run the script at my own server and when we are happy with the results format and layout, the script can be moved to the download.moodle.org I have committed the current version of the script into contrib - see http://cvs.moodle.org/contrib/tools/langtools/ This is a great page. Hopefully it will encourage more people to contribute to the neglected language packs now it is so clear in what state they are.
It is a good plan to keep all langtools on one spot. I suggest to add the language pack checker script that Petr wrote (currently in |
||||||||||||||||||||||||||||||||||||||||||||||||