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 <code>po/</code> directory. The following files are used for MaemoPad localization:
+
Localization files are stored in the po/ directory. The following files are used for MaemoPad localization:
-
* <code>Makefile.am</code>
+
* Makefile.am
-
* <code>POTFILES.in</code>
+
* POTFILES.in
-
* <code>en_GB.po</code>
+
* en_GB.po
-
<code>POTFILES.in</code> 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.
+
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 <code>en_GB.po</code> includes translated text for British English. It contains pairs of id/string as follows:
+
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.


Please note that all contributions to maemo.org wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see maemo.org wiki:Copyrights for details). Do not submit copyrighted work without permission!


Cancel | Editing help (opens in new window)

Templates used on this page: