{"action":"created","issue":{"url":"https://api.github.com/repos/OpenPTT/OpenPTT/issues/33","labels_url":"https://api.github.com/repos/OpenPTT/OpenPTT/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/OpenPTT/OpenPTT/issues/33/comments","events_url":"https://api.github.com/repos/OpenPTT/OpenPTT/issues/33/events","html_url":"https://github.com/OpenPTT/OpenPTT/pull/33","id":98619034,"number":33,"title":"i18n work #6","user":{"login":"sivid","id":7440719,"avatar_url":"https://avatars.githubusercontent.com/u/7440719?v=3","gravatar_id":"","url":"https://api.github.com/users/sivid","html_url":"https://github.com/sivid","followers_url":"https://api.github.com/users/sivid/followers","following_url":"https://api.github.com/users/sivid/following{/other_user}","gists_url":"https://api.github.com/users/sivid/gists{/gist_id}","starred_url":"https://api.github.com/users/sivid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sivid/subscriptions","organizations_url":"https://api.github.com/users/sivid/orgs","repos_url":"https://api.github.com/users/sivid/repos","events_url":"https://api.github.com/users/sivid/events{/privacy}","received_events_url":"https://api.github.com/users/sivid/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-08-02T16:04:45Z","updated_at":"2015-08-03T13:46:15Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/OpenPTT/OpenPTT/pulls/33","html_url":"https://github.com/OpenPTT/OpenPTT/pull/33","diff_url":"https://github.com/OpenPTT/OpenPTT/pull/33.diff","patch_url":"https://github.com/OpenPTT/OpenPTT/pull/33.patch"},"body":"最後是決定用 https://github.com/rubenv/angular-gettext. \r\n之所以沒有使用 @verybada 推薦的 https://github.com/doshprompt/angular-localization 理由很簡單, 在下能力不足，沒辦法和requireJS溝通 :disappointed:。 問題點很多..就不跟各位抱怨了.. @ensky  :sob: \r\n\r\n現在 #6 是有解了, 之後想幫忙翻譯的人跟著angular-gettext的流程走就好，翻譯完成也應該是指日可待。一切完美，除了一點，在流程的最後, angular-gettext會用grunt做出一個www/js/translations.js檔案。這個檔案需要被project include進去，不然翻譯便一切徒然。現階段解法是手動複製translations.js 檔案內容並貼進appController.js 裡面。希望能有更好的解法 @ensky    XDD\r\n\r\n切換語言的功能還沒做，現在只是雛形而已。\r\n\r\n這個branch同時也(因為angular-gettext的關係)引入了npm, grunt這兩個tool. 使用方法請見 https://angular-gettext.rocketeer.be/dev-guide/getting-started/\r\n\r\n好像寫了一大堆.. 總結\r\n1. 翻譯持續進行中，有熱心人士要幫忙的話更好\r\n2. 有請大德幫忙修改requirejs的部分\r\n3. 切換語言選項要放哪裡?  "},"comment":{"url":"https://api.github.com/repos/OpenPTT/OpenPTT/issues/comments/127239693","html_url":"https://github.com/OpenPTT/OpenPTT/pull/33#issuecomment-127239693","issue_url":"https://api.github.com/repos/OpenPTT/OpenPTT/issues/33","id":127239693,"user":{"login":"ettoolong","id":909570,"avatar_url":"https://avatars.githubusercontent.com/u/909570?v=3","gravatar_id":"","url":"https://api.github.com/users/ettoolong","html_url":"https://github.com/ettoolong","followers_url":"https://api.github.com/users/ettoolong/followers","following_url":"https://api.github.com/users/ettoolong/following{/other_user}","gists_url":"https://api.github.com/users/ettoolong/gists{/gist_id}","starred_url":"https://api.github.com/users/ettoolong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ettoolong/subscriptions","organizations_url":"https://api.github.com/users/ettoolong/orgs","repos_url":"https://api.github.com/users/ettoolong/repos","events_url":"https://api.github.com/users/ettoolong/events{/privacy}","received_events_url":"https://api.github.com/users/ettoolong/received_events","type":"User","site_admin":false},"created_at":"2015-08-03T13:46:15Z","updated_at":"2015-08-03T13:46:15Z","body":"你好了就直接 merge 吧. 對了, 你作 branch 後其實還有個 commit, 如果不想處理衝突問題,\r\n就等 merge 後再去砍那兩個我改過的檔( zh-tw.html & en.html )."}}