Editing Documentation/Maemo 5 Developer Guide/Application Development/Writing a new maemo application
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 303: | Line 303: | ||
=== File structure === | === File structure === | ||
- | Localization files are stored in the | + | Localization files are stored in the po/ directory. The following files are used for MaemoPad localization: |
- | * | + | * Makefile.am |
- | * | + | * POTFILES.in |
- | * | + | * en_GB.po |
- | + | POTFILES.in contains the list of the source code files to be localized. In MaemoPad, only main.c and interface.c contain strings that need to be localized. | |
- | # List of MaemoPad source files to be localized | + | <tt><span>''<span><font color="#9A1900"><nowiki># List of MaemoPad source files to be localized</nowiki></font></span>''</span> |
- | ../src/main.c | + | <span><font color="#990000">..</font></span>/src/main<span><font color="#990000">.</font></span>c |
- | ../src/ui/interface.c | + | <span><font color="#990000">..</font></span>/src/ui/interface<span><font color="#990000">.</font></span>c</tt> |
- | File | + | File en_GB.po includes translated text for British English. It contains pairs of id/string as follows: |
- | # ... | + | <tt><span>''<span><font color="#9A1900"><nowiki># ...</nowiki></font></span>''</span> |
- | msgid "maemopad_yes" | + | msgid <span><font color="#FF0000">"maemopad_yes"</font></span> |
- | msgstr "Yes" | + | msgstr <span><font color="#FF0000">"Yes"</font></span> |
- | # ... | + | <span>''<span><font color="#9A1900"><nowiki># ...</nowiki></font></span>''</span></tt> |
'''N.B.''' The comments in .po file start with ``#``. | '''N.B.''' The comments in .po file start with ``#``. |
Learn more about Contributing to the wiki.