Labs/Ubiquity/Ubiquity 0.5 Command Localization Tutorial: Difference between revisions

Line 120: Line 120:
   msgid "${number} result{if number > 1}s{/if} found."
   msgid "${number} result{if number > 1}s{/if} found."
   msgstr "找到${number}個結果"
   msgstr "找到${number}個結果"
== Testing your localizations ==
Manual testing is an important step in preparing your localizations. Testing requires you to place your <code>po</code> files in a specific language directory in your Ubiquity source folder. Where this folder is depends on how you obtained Ubiquity:
* '''for Ubiquity installs via xpi (addons.mozilla.com):'''
**If you installed Ubiquity via a packaged xpi, such as from addons.mozilla.com or from the "Add-ons" menu item in Firefox, your Ubiquity folder is in your Firefox profile. [http://support.mozilla.com/en-US/kb/Profiles This support tutorial] will tell you where to find your Firefox profile. Within your profile drill down to <code>extensions/ubiquity@labs.mozilla.com/</code>. This is your Ubiquity source folder.
* '''for Ubiquity installs from hg:'''
** If you pulled the Ubiquity source from our hg repository and installed it using the <code>manage.py</code> utility, you will find the Ubiquity source folder, <code>ubiquity</code> right in the root level of the repository.
Once you've found your Ubiquity source directory, you want to find your language's directory at <code>localizations/XX/</code> where XX is your language code. If the directory doesn't exist, you can make it. Place your <code>po</code> files there.
Finally, go to the Ubiquity settings page and make sure it's set to use your language (if you haven't already).* Restart to test out your localizations.
<small>* currently there's no way to test localizations for languages which do not yet have parsers for them. Read [[Labs/Ubiquity/Parser_2/Localization_Tutorial|this tutorial]] learn more about how to write parser language settings for your language.</small>


== Contributing your localizations ==
== Contributing your localizations ==
308

edits