{"action":"created","issue":{"url":"https://api.github.com/repos/caskroom/homebrew-versions/issues/1529","labels_url":"https://api.github.com/repos/caskroom/homebrew-versions/issues/1529/labels{/name}","comments_url":"https://api.github.com/repos/caskroom/homebrew-versions/issues/1529/comments","events_url":"https://api.github.com/repos/caskroom/homebrew-versions/issues/1529/events","html_url":"https://github.com/caskroom/homebrew-versions/issues/1529","id":124219688,"number":1529,"title":"Clarify use of language codes","user":{"login":"Zirro","id":3169418,"avatar_url":"https://avatars.githubusercontent.com/u/3169418?v=3","gravatar_id":"","url":"https://api.github.com/users/Zirro","html_url":"https://github.com/Zirro","followers_url":"https://api.github.com/users/Zirro/followers","following_url":"https://api.github.com/users/Zirro/following{/other_user}","gists_url":"https://api.github.com/users/Zirro/gists{/gist_id}","starred_url":"https://api.github.com/users/Zirro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zirro/subscriptions","organizations_url":"https://api.github.com/users/Zirro/orgs","repos_url":"https://api.github.com/users/Zirro/repos","events_url":"https://api.github.com/users/Zirro/events{/privacy}","received_events_url":"https://api.github.com/users/Zirro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-12-29T14:41:24Z","updated_at":"2016-01-05T08:19:08Z","closed_at":null,"body":"There does not appear to be a consistent method for naming casks in alternative languages. Mozilla and Tor use [IETF language tags](https://en.wikipedia.org/wiki/IETF_language_tag), occasionally including region codes when distributing their software. In casks, these have been inconsistently shortened to two characters. See for example:\r\n* [firefox-cn.rb](https://github.com/caskroom/homebrew-versions/blob/master/Casks/firefox-cn.rb)\r\n* [firefox-tw.rb](https://github.com/caskroom/homebrew-versions/blob/master/Casks/firefox-tw.rb)\r\n* [torbrowser-zh.rb](https://github.com/caskroom/homebrew-versions/blob/master/Casks/torbrowser-zh.rb)\r\n\r\nIn the first two, the region code was selected for the two letters. In most other language casks, letters indicating language were chosen instead.\r\n\r\nWe should define a consistent standard for handling language codes and rename existing casks as required."},"comment":{"url":"https://api.github.com/repos/caskroom/homebrew-versions/issues/comments/168932205","html_url":"https://github.com/caskroom/homebrew-versions/issues/1529#issuecomment-168932205","issue_url":"https://api.github.com/repos/caskroom/homebrew-versions/issues/1529","id":168932205,"user":{"login":"Zirro","id":3169418,"avatar_url":"https://avatars.githubusercontent.com/u/3169418?v=3","gravatar_id":"","url":"https://api.github.com/users/Zirro","html_url":"https://github.com/Zirro","followers_url":"https://api.github.com/users/Zirro/followers","following_url":"https://api.github.com/users/Zirro/following{/other_user}","gists_url":"https://api.github.com/users/Zirro/gists{/gist_id}","starred_url":"https://api.github.com/users/Zirro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zirro/subscriptions","organizations_url":"https://api.github.com/users/Zirro/orgs","repos_url":"https://api.github.com/users/Zirro/repos","events_url":"https://api.github.com/users/Zirro/events{/privacy}","received_events_url":"https://api.github.com/users/Zirro/received_events","type":"User","site_admin":false},"created_at":"2016-01-05T08:19:08Z","updated_at":"2016-01-05T08:19:08Z","body":"I've noted that the documentation added in caskroom/homebrew-cask#16221 mentions that both codes should be added when available, but I believe this is unnecessary. In my pull request I have added both codes only when regional versions within the same language are distributed at the host. Provided that we choose this solution, the documentation ought to be updated to reflect this.\r\n\r\nWhen double-checking the proposed changes, I noticed that adobe-reader-pt seems to be the download made available for both regions, and therefore left it unchanged despite the download url which contains \"pt_BR\"."}}