{"action":"created","issue":{"url":"https://api.github.com/repos/Tatoeba/tatoeba2/issues/629","labels_url":"https://api.github.com/repos/Tatoeba/tatoeba2/issues/629/labels{/name}","comments_url":"https://api.github.com/repos/Tatoeba/tatoeba2/issues/629/comments","events_url":"https://api.github.com/repos/Tatoeba/tatoeba2/issues/629/events","html_url":"https://github.com/Tatoeba/tatoeba2/pull/629","id":66731847,"number":629,"title":"Simplify language codes","user":{"login":"jiru","id":5107734,"avatar_url":"https://avatars.githubusercontent.com/u/5107734?v=3","gravatar_id":"","url":"https://api.github.com/users/jiru","html_url":"https://github.com/jiru","followers_url":"https://api.github.com/users/jiru/followers","following_url":"https://api.github.com/users/jiru/following{/other_user}","gists_url":"https://api.github.com/users/jiru/gists{/gist_id}","starred_url":"https://api.github.com/users/jiru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jiru/subscriptions","organizations_url":"https://api.github.com/users/jiru/orgs","repos_url":"https://api.github.com/users/jiru/repos","events_url":"https://api.github.com/users/jiru/events{/privacy}","received_events_url":"https://api.github.com/users/jiru/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/Tatoeba/tatoeba2/milestones/52","html_url":"https://github.com/Tatoeba/tatoeba2/milestones/2015-04-18","labels_url":"https://api.github.com/repos/Tatoeba/tatoeba2/milestones/52/labels","id":1050881,"number":52,"title":"2015-04-18","description":"","creator":{"login":"trang","id":221850,"avatar_url":"https://avatars.githubusercontent.com/u/221850?v=3","gravatar_id":"","url":"https://api.github.com/users/trang","html_url":"https://github.com/trang","followers_url":"https://api.github.com/users/trang/followers","following_url":"https://api.github.com/users/trang/following{/other_user}","gists_url":"https://api.github.com/users/trang/gists{/gist_id}","starred_url":"https://api.github.com/users/trang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trang/subscriptions","organizations_url":"https://api.github.com/users/trang/orgs","repos_url":"https://api.github.com/users/trang/repos","events_url":"https://api.github.com/users/trang/events{/privacy}","received_events_url":"https://api.github.com/users/trang/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":0,"state":"open","created_at":"2015-04-02T19:51:40Z","updated_at":"2015-04-11T17:54:06Z","due_on":"2015-04-17T22:00:00Z","closed_at":null},"comments":2,"created_at":"2015-04-06T23:38:59Z","updated_at":"2015-04-12T12:29:17Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Tatoeba/tatoeba2/pulls/629","html_url":"https://github.com/Tatoeba/tatoeba2/pull/629","diff_url":"https://github.com/Tatoeba/tatoeba2/pull/629.diff","patch_url":"https://github.com/Tatoeba/tatoeba2/pull/629.patch"},"body":"This pull request is an attempt to simplify things regarding translation files, UI language codes and corpus language code lists.\r\n\r\n* Use the same language codes for both UI and corpus (this changes a few codes like chi to cmn, pt_BR to por etc. providing redirection for the previous codes).\r\n* Move the 3-letters language lists to a unique place in `vendors` (LanguagesLib), along with a few tools.\r\n* Get rid of the 2-letters-codes map in `core.php`, using the map I introduced recently (204a25e).\r\n* Get rid of the language list in `generate_sphinx_conf.php` using LanguagesLib.\r\n* Get rid of the language list in the `Sentence` model using LanguagesLib.\r\n* Get rid of the language list in `update-translations.py` using the one from `.tx/config`.\r\n* Get rid of useless MO files. This simplifies the process of updating translations from Transifex. We should ultimately not need `update-translations.py` at all since the Transifex command line client is enough to pull the translations.\r\n* Misc fixes"},"comment":{"url":"https://api.github.com/repos/Tatoeba/tatoeba2/issues/comments/92048677","html_url":"https://github.com/Tatoeba/tatoeba2/pull/629#issuecomment-92048677","issue_url":"https://api.github.com/repos/Tatoeba/tatoeba2/issues/629","id":92048677,"user":{"login":"jiru","id":5107734,"avatar_url":"https://avatars.githubusercontent.com/u/5107734?v=3","gravatar_id":"","url":"https://api.github.com/users/jiru","html_url":"https://github.com/jiru","followers_url":"https://api.github.com/users/jiru/followers","following_url":"https://api.github.com/users/jiru/following{/other_user}","gists_url":"https://api.github.com/users/jiru/gists{/gist_id}","starred_url":"https://api.github.com/users/jiru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jiru/subscriptions","organizations_url":"https://api.github.com/users/jiru/orgs","repos_url":"https://api.github.com/users/jiru/repos","events_url":"https://api.github.com/users/jiru/events{/privacy}","received_events_url":"https://api.github.com/users/jiru/received_events","type":"User","site_admin":false},"created_at":"2015-04-12T12:29:17Z","updated_at":"2015-04-12T12:29:17Z","body":"Well spotted, it was working on my side thanks to the cache. I fixed it by modifying `$__l10nCatalog` at run time. It has 143 elements, I think the overhead is minor. It’s not great to have to do this, but it’s the best I can think of regarding future maintenance."}}