This project is targeting drupal.org, its purpose is to generate translations similarity reports. It's supposed to help maintainers ease translators' life by providing them the list of strings that are similar (or sound similar).
This idea came of a brainstorming between pomliane, saisai and DuaelFR.
How to install?
After cloning this repository, first install the dependencies:
php composer.phar install
Next, set up your webserver of choice to serve files in
After that, open the page in browser.
How to use?
This projects is able to do 3 things:
Process a set of projects to determine weither or not a project has similar strings that should be unified.
This feature is parsing a HTML file of the full projects list available in the 7.x branch.
/process/0/5 to test it. 0 is the offset of the project to start with
in the project list. 5 is the number of items to process at a time.
Generate a module translation similarity report. This is the core of the project, it will look for similar strings and strings that sounds alike.
/module/<project_name>/<version> to test it.
<project_name> is the
name of the project you want to generate the report from.
is the release version of the project.
Post issue on Drupal.org
Once the translation similarity report has been generated you can tell the application to post it on drupal.org. (Note: You need to insert your credentials first). It will automatically post the generated report in the issue queue of the given project.
/module/post_report/<project_name>/<version> to test it.
<project_name> is the name of the project you want to generate the report
<version> is the release version of the project.
- Regularly scanning drupal projects list to update the projects.
- Test compatibility with dev branches.
- Implement a coder extension.
- Store repots in a DB and let maintainers decide if a string should be excluded from the report.