{"id":497,"date":"2012-09-27T04:04:39","date_gmt":"2012-09-27T11:04:39","guid":{"rendered":"http:\/\/blog.mozilla.org\/axel\/?p=497"},"modified":"2012-10-09T17:26:43","modified_gmt":"2012-10-10T00:26:43","slug":"language-packs-are-restartless-now","status":"publish","type":"post","link":"https:\/\/blog.mozilla.org\/axel\/2012\/09\/27\/language-packs-are-restartless-now\/","title":{"rendered":"Language packs are restartless now"},"content":{"rendered":"<p><em>Language packs are add-ons that you can install to add additional localizations to our desktop applications.<\/em><\/p>\n<p>Starting with tomorrow&#8217;s nightly, and thus following the Firefox 18 train, language packs will be restartless. That was <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=677092\">bug 677092<\/a>, landed as <a href=\"https:\/\/hg.mozilla.org\/mozilla-central\/rev\/812d0ba83175\">812d0ba83175<\/a>.<\/p>\n<p>To change your UI language, you just need to install a language pack, set your language (*), and open a new window. This also works for updates to an installed language pack. Opening a new window is the workaround for not having a reload button on the chrome window.<\/p>\n<p>The actual patch turned out to be one line to make language packs restartless, and one line so that they don&#8217;t try to call in to <code>bootstrap.js<\/code>. I was optimistic that the chrome registry was already working, and rightfully so. There are no changes to the language packs themselves.<\/p>\n<p>Tests were tricky, but Blair talked me through most of it, thanks for that.<\/p>\n<p>(*) Language switching UI is <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=377881\">bug 377881<\/a>, which has a mock-up for those interested. Do not be scared, it only shows if you have language packs installed.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Language packs are add-ons that you can install to add additional localizations to our desktop applications. Starting with tomorrow&#8217;s nightly, and thus following the Firefox 18 train, language packs will be restartless. That was bug 677092, landed as 812d0ba83175. To change your UI language, you just need to install a language pack, set your language [&hellip;]<\/p>\n","protected":false},"author":17,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,5],"tags":[23779,23778],"_links":{"self":[{"href":"https:\/\/blog.mozilla.org\/axel\/wp-json\/wp\/v2\/posts\/497"}],"collection":[{"href":"https:\/\/blog.mozilla.org\/axel\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.mozilla.org\/axel\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.mozilla.org\/axel\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.mozilla.org\/axel\/wp-json\/wp\/v2\/comments?post=497"}],"version-history":[{"count":0,"href":"https:\/\/blog.mozilla.org\/axel\/wp-json\/wp\/v2\/posts\/497\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.mozilla.org\/axel\/wp-json\/wp\/v2\/media?parent=497"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mozilla.org\/axel\/wp-json\/wp\/v2\/categories?post=497"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mozilla.org\/axel\/wp-json\/wp\/v2\/tags?post=497"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}