Cheevos for Firefox v1.4 update available
7 August, 2012 § 8 Comments
Last week a new update for Cheevos for Firefox was released on Mozilla’s add-ons website. Thanks to Firefox’s amazing silent update of restartless addons, if you already have the addon installed then you’re most likely running the latest version already.
This new release brings with it a couple new features and localization support for future releases.
New achievements in version 1.4 include the Socially Awesome Penguin, Social Butterfly, and Geek Cred. If you’re into social networking you’ve probably already gotten one of the first two achievements, and the geek cred achievement is aimed at users who visit tech-related websites.
This release also adjusts the thresholds for obtaining the silver and gold medals of the Dog Eared achievement.
Localization support is new in this release, taking advantage of the new l10n API that was introduced in the Add-on SDK version 1.5. Using this API in the addon code was really easy. First, create a folder named “locale”. Inside of the locale folder, add a properties file for your first locale. For Cheevos, I used “en-US.properties”. The filename specifies the language and culture for the embedded text.
Then within the code of the addon, get access to the
getText function by running
var _ = require("l10n").get;. I then added
_("cheevoName.description") calls. This looks inside of the properties file for the string with this key and replaces it with the associated translation.
This process was really easy, and I found the documentation on the Add-on SDK website to be very good.
Thanks to the new localization support, the next release of Cheevos for Firefox will include a Greek translation that was contributed by Tho D. Oris (sirodoht)! Big thanks and a diamond “Cheevo” goes out to sirodoht 🙂