874
edits
m (→Create your Tracker: typo fix) |
(→Final touches: fixed terminology, i18n -> l10n) |
||
| Line 59: | Line 59: | ||
The last thing is to add your new data type to the Weave preferences UI. Look in <tt>weave/chrome/content/preferences.xul</tt> for the boolean preferences called <tt>extensions.weave.bookmarks</tt>, <tt>extensions.weave.history</tt>, and so on. They're boolean preferences because they're checkboxes which turn synchronization of a given datatype on or off. Add one for your datatype using the existing XUL tags as a model. | The last thing is to add your new data type to the Weave preferences UI. Look in <tt>weave/chrome/content/preferences.xul</tt> for the boolean preferences called <tt>extensions.weave.bookmarks</tt>, <tt>extensions.weave.history</tt>, and so on. They're boolean preferences because they're checkboxes which turn synchronization of a given datatype on or off. Add one for your datatype using the existing XUL tags as a model. | ||
The text labels for the checkboxes in the preferences GUI are defined in a separate file to make | The text labels for the checkboxes in the preferences GUI are defined in a separate file to make localization easier. The file for US English is <tt>weave/chrome/local/en-US/preferences.dtd</tt>. Create an entity here with a name corresponding to what you used in <tt>preferences.xul</tt>, and with an appropriate value for the label string. | ||
Finally, set the default value of your preference in <tt>defaults/preferences/sync.js</tt>. | Finally, set the default value of your preference in <tt>defaults/preferences/sync.js</tt>. | ||
edits