Development Team/Almanac/Activity Bundles: Difference between revisions

.info File Format: synchronize broken out descriptions with monolithic example
Add localization bits
Line 18: Line 18:
     activity.info
     activity.info
     localized/
     localized/
        de_DE.linfo
        zh_CN.linfo
     web-activity.svg
     web-activity.svg
     images/
     images/
Line 65: Line 67:
  show_launcher = yes
  show_launcher = yes
: This key is optional.  If not present, or if present with a value of "yes", the activity is shown with its icon in the [[Sugar]] panel launcher and a valid 'icon' key/value pair is required.  If specified with a value of "no", the activity is not shown in the [[Sugar]] panel launcher, and the 'icon' key is not required.
: This key is optional.  If not present, or if present with a value of "yes", the activity is shown with its icon in the [[Sugar]] panel launcher and a valid 'icon' key/value pair is required.  If specified with a value of "no", the activity is not shown in the [[Sugar]] panel launcher, and the 'icon' key is not required.
= Activity Name Localization/Translation =
Localized names are provided in the localized/ directory.  Localized keys from the 'activity.info' file are stored in the '.linfo' files in that directory.  Each language stores its localized keys in a _separate_ '.linfo' file named for the language's ISO code.  For example, German-localized German (as opposed to Swiss-localized German) language translations are stored in the 'de_DE.linfo' file.
At this time, only translations for the 'name' key from the 'activity.info' file are supported.  A localized 'de_DE.linfo' file would look like:
name = Web