Labs/Ubiquity/Ubiquity Source Tip Author Tutorial: Difference between revisions

Jump to navigation Jump to search
Line 90: Line 90:
=== Making sure your command is localizable ===
=== Making sure your command is localizable ===


Ubiquity now supports multiple languages.  That means that hopefully someday someone will be translating your commands to the other languages that Ubiquity supports.  Making your command localizable is easy, and a good habit to get into!  You just have to wrap any strings that appear in your <code>preview()</code> and <code>execute()</code> methods with:
Ubiquity now supports multiple languages.  That means that hopefully someday someone will be translating your commands to the other languages that Ubiquity supports.  Making your command localizable is easy, and a good habit to get into!  You just have to locate all strings that appear in your <code>preview()</code> and <code>execute()</code> methods, that are intended for display to humans, and wrap them with:


  _()
  _()
1,007

edits

Navigation menu