{"id":123,"date":"2012-02-16T00:19:56","date_gmt":"2012-02-16T00:19:56","guid":{"rendered":"http:\/\/blog.mozilla.org\/l10n\/?p=123"},"modified":"2012-02-23T03:21:19","modified_gmt":"2012-02-23T03:21:19","slug":"add-on-l10n-with-jetpack","status":"publish","type":"post","link":"https:\/\/blog.mozilla.org\/l10n\/2012\/02\/16\/add-on-l10n-with-jetpack\/","title":{"rendered":"Add-on L10n with Jetpack"},"content":{"rendered":"<div id=\"magicdomid84\">The Jetpack team has been working tirelessly to make it easier to create add-ons for mozilla products. They know that 70% of Firefox users are non-English-speaking, and thus understand that\u00a0 localization is a high priority for any add-ons developer. To help add-on developers create localizable add-ons, the Jetpack team has added new L10n features to their add-on SDK to make the add-on L10n process\u00a0 easy and scalable. Here&#8217;s a peek at some of these L10n features.<\/div>\n<div id=\"magicdomid20\"><\/div>\n<div id=\"magicdomid262\">Jetpack uses the <em>l10n<\/em> module to help developers write localizable code, making L10n easier\u00a0 for localizers. Using the <em>l10n<\/em> module, add-on developers only need to assign the <em>l10n<\/em> module&#8217;s <em>get<\/em> function and use that function to reference localizable strings in locale-specific properties files. Within the properties files, each source string functions as a key with its target translation as the key&#8217;s value and is recalled according to the browser&#8217;s locale setting. It&#8217;s really that easy!<\/div>\n<div id=\"magicdomid22\"><\/div>\n<div id=\"magicdomid575\">In addition to making the work easier for add-on developers, localizers also have an easier time of localizing this content, mostly because it is not different from what you&#8217;re all used to. The <em>l10n<\/em> module allows developers to recall strings from resource properties files. This way localizers translate content within their locale&#8217;s properties files, just as they would within other mozilla extensions. Add-on L10n is thus not too different from extension L10n.<\/div>\n<div id=\"magicdomid24\"><\/div>\n<div id=\"magicdomid576\">While add-on L10n fits well within the mozilla L10n process, there are some limitations that localizers should be aware of. For example, the Jetpack SDK currently supports basic localization of strings appearing in the main add-on&#8217;s JavaScript code, but not HTML, CSS, or content scripts. Don&#8217;t worry though, it&#8217;s coming soon.<\/div>\n<p>&nbsp;<\/p>\n<div id=\"magicdomid3552\">For more detailed information on Jetpack L10n, it&#8217;s advantages and current limitations, visit the <a href=\"https:\/\/github.com\/mozilla\/addon-sdk\/blob\/master\/doc\/dev-guide-source\/addon-development\/l10n.md\">L10n topic in the Jetpack documentation<\/a>.<\/div>\n<div id=\"magicdomid2631\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>The Jetpack team has been working tirelessly to make it easier to create add-ons for mozilla products. They know that 70% of Firefox users are non-English-speaking, and thus understand that\u00a0 &hellip; <a class=\"go\" href=\"https:\/\/blog.mozilla.org\/l10n\/2012\/02\/16\/add-on-l10n-with-jetpack\/\">Read more<\/a><\/p>\n","protected":false},"author":385,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12687,610],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.mozilla.org\/l10n\/wp-json\/wp\/v2\/posts\/123"}],"collection":[{"href":"https:\/\/blog.mozilla.org\/l10n\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.mozilla.org\/l10n\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.mozilla.org\/l10n\/wp-json\/wp\/v2\/users\/385"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.mozilla.org\/l10n\/wp-json\/wp\/v2\/comments?post=123"}],"version-history":[{"count":0,"href":"https:\/\/blog.mozilla.org\/l10n\/wp-json\/wp\/v2\/posts\/123\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.mozilla.org\/l10n\/wp-json\/wp\/v2\/media?parent=123"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mozilla.org\/l10n\/wp-json\/wp\/v2\/categories?post=123"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mozilla.org\/l10n\/wp-json\/wp\/v2\/tags?post=123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}