-
-
Notifications
You must be signed in to change notification settings - Fork 415
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
Bad localization for some countries name in Color My World activity #265
Comments
I'm interested in working on this and would like to explore the codebase. |
Thanks. Please look at https://github.com/llaske/sugarizer/tree/dev/activities/ColorMyWorld.activity |
@b282022, See an example below for Ivory Coast. The left of INI property here: https://github.com/llaske/sugarizer/blob/dev/activities/ColorMyWorld.activity/locale.ini#L138 In this case:
The fix should do the same thing for all countries. |
@quozl (seen your initial answer) FYI, in Sugarizer, localization is in .INI file then generated into PO by a specific tool. |
@llaske So I need to find all the countries from all |
@b282022 Yes, but not only. Some values are just different spelling in these files. Case of Libya: "Libyan Arab Jamahiriya" in some file and just "Libya" in others. |
So it seems as if that this task has to be done manually and I need to save all the names somewhere as obtained by the different geojson files. After storing the names from geojson file, I have to match them with the keys(left hand side) in locale.ini file. Also this has to be done by keeping a common name among different names of same country in different geojson files. Do you have any idea about how this task can be automated? |
Also @llaske can you please tell me how many times a same country with different names can appear in different geojson files? What I am asking is how the geojson files are made. Continent-wise and every country is included in world.geojson or is there a country X whose entries are in more than 2 geojsons |
So after a bit of scripting, I was able to do the frequency analysis of the country names and I created this JSON file for the reference. As can be seen from the JSON file, there are countries appearing 3 times in different geojson files (I don't know how the geojson files are made so I don't know why 3), there are countries appearing 2 times in different geojson files (maybe once in a continent's geojson and once in world.geojson) and countries which are appearing only once across different geojson files (and those are of our interest) and have to be merged under a single name. So, I request you to guide me on how to approach this problem further. |
Clearly we can see that Libya, Syria and Ivory coast have different names across different geojson files. On a very rough glance, the other countries which have different names across different geojson files are Vietnam, East Timor, Moldova, Brunei, ... I'm not an expert on the country names but I'm sure there are many more other countries like the ones mentioned above. |
Nice work @b282022 ! My opinion is that every country should at least appears 2 times: one in the world.geojson and one in the .geojson file. I guess countries that appears 3 times are Islands in middle of some ocean. Of course, you have to check too that the (same) name appears in the left hand side of the .INI file. Regarding country names, I think we could use UN countries name: http://www.un.org/en/member-states/ So we could say that names in geojson/INI should match UN countries name. |
Again after a bit of scripting, I found that these keys(countries) don't appear N times (N = 10) |
@llaske Here is the list of countries with conflicting name and proposed corrections. The highlight conventions are mentioned in the list. The resolution is done according to the names as per UN members list. |
Good analysis @b282022 Here is the code where the names are displayed: https://github.com/llaske/sugarizer/blob/dev/activities/ColorMyWorld.activity/lib/colormyworld.js#L541 Regarding countries with conflict, It's about North Korea and South Korea. I think we need to use this names instead of "Korea" and "Korea republic". |
@llaske Thanks for the help 😄I really appreciate your help to smoothen my work on the very first issue. Also, why there are keys put under * ? Also, do let me know how am I supposed to commit the changes? That is, I make changes in the geojsons and locale.ini directly or do I have to make changes in these files in some different way? |
That's fine if you fix the value only in english. Just ensure that the left hand of the locale.ini is right for all languages. Translators will be able to fix other strings later in http://translate.sugarizer.org/projects/sugarizer/activity-colormyworld/ The * section in the .INI file is for languages used by the UI but not found in the .INI. Basically, it's fine to put here the same values than english values. Once you'll end your fix, create a new branch inherited from dev branch with all files updated (ini, geojson, ...) then send a PR. |
Fixed in #271 |
Closed in dd3c58d |
Some countries are not displayed correctly in Color My World activity. For example {{Syria}}, {{Lybia}}, {{Ivory Coast}}, ...
It's related to a mismatch between country name in .geojson files and the country name in the locale.ini file.
The idea is to fix all countries where this problem apply by matching name in each language of locale.ini file with the name used in the .geojson file. Note that the same country is present in several files (africa.geojson and world.geojson for example for Ivory Coast).
Source code for Color My World activity is here: https://github.com/llaske/sugarizer/tree/dev/activities/ColorMyWorld.activity
The text was updated successfully, but these errors were encountered: