Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Production Issues] Localization #244

Open
1 task done
babanesma opened this issue Feb 19, 2017 · 1 comment
Open
1 task done

[Production Issues] Localization #244

babanesma opened this issue Feb 19, 2017 · 1 comment
Assignees

Comments

@babanesma
Copy link

babanesma commented Feb 19, 2017

  • 21. the Arabic forms. I have problems in the localization of the forms.

Tech Note

  • prepare a script that will do the following :
    1. loop over all .phtml files found in themes/certigate
    2. extract all msgid that are found between {{#translate}} and {{/translate}}
    3. Don't add redundant strings ( make them unique )
    4. compare the extracted strings with the strings found in module/Translate/language/ar_AR.po
    5. produce a csv file with the strings and their translations ( if the translation exists put it , if it is not leave it blank and move it to the top of the csv file )
@babanesma babanesma assigned babanesma and badr4php and unassigned babanesma Mar 2, 2017
badr4php added a commit that referenced this issue Mar 5, 2017
@badr4php badr4php assigned babanesma and unassigned badr4php Mar 5, 2017
@babanesma
Copy link
Author

babanesma commented Mar 6, 2017

@badr4php
The script is working good , but there is no need to create po file then translate it to csv file
You can create a csv file directly using fputcsv

Nice To Have

  • rather than parsing the po file by yourself , you can use a po parser library ( Po Parser )
  • Format the code in PSR-2 coding standards , easily achieved with netbeans

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants