|
HowToLocalize
Brief instruction on how to localize this project.
IntroductionThis page describes the method of localizing Google Gadgets for Linux into other languages. Localize main programAll UI strings of Google Gadgets for Linux are stored in a XML file, named strings.xml, which has the exactly same format of gadget's strings.xml. Please refer to this document about the file format. The original English strings are stored in resources/en/strings.xml file. The file content looks like: <strings> ... <!-- Decorated View toolbar back button tooltip. --> <VD_BACK_BUTTON_TOOLTIP>Previous</VD_BACK_BUTTON_TOOLTIP> <!-- Decorated View toolbar forward button tooltip. --> <VD_FORWARD_BUTTON_TOOLTIP>Next</VD_FORWARD_BUTTON_TOOLTIP> <!-- Decorated View toolbar toggle expanded view button tooltip. --> <VD_POP_IN_OUT_BUTTON_TOOLTIP>Toggle Expanded View</VD_POP_IN_OUT_BUTTON_TOOLTIP> <!-- Decorated View toolbar menu button tooltip. --> <VD_MENU_BUTTON_TOOLTIP>Menu</VD_MENU_BUTTON_TOOLTIP> <!-- Decorated View toolbar remove gadget button tooltip. --> <VD_CLOSE_BUTTON_TOOLTIP>Remove</VD_CLOSE_BUTTON_TOOLTIP> <!-- Tooltip text shown for the add gadgets button --> <SIDEBAR_ADD_GADGETS_TOOLTIP>Add gadgets</SIDEBAR_ADD_GADGETS_TOOLTIP> <SIDEBAR_MENU_BUTTON_TOOLTIP>Menu</SIDEBAR_MENU_BUTTON_TOOLTIP> <SIDEBAR_MINIMIZE_BUTTON_TOOLTIP>Minimize</SIDEBAR_MINIMIZE_BUTTON_TOOLTIP> ... </strings> In order to localize Google Gadgets for Linux, you need:
You may take resources/zh-CN/strings.xml as an example. Localize built-in gadgetsBesides the main program, there are some builtin gadgets need localizing as well. The localization method is same.
The source code is in gadgets/gadget_browser sub-directory. The source code is in gadgets/photos sub-directory. The source code is in gadgets/igoogle sub-directory. The source code is in gadgets/rss sub-directory. The source code is in gadgets/designer/gadget sub-directory. gadgets/designer/blank_gadget is the blank gadget used by Gadget Designer, it also needs localizing. Contribute your localization work to usWe'd very appreciate if you could contribute your localization work to us, so that other users will be benefited from it. First of all, you may follow this instruction to become a contributor of this project. Then you may just send your localized strings.xml file to our dev maillist, or submit an issue and attach the file. Then we will merge it into our source code repository. |
Sign in to add a comment