Editing Documentation/Maemo 5 Developer Guide/Application Development/Maemo Localization

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 1: Line 1:
-
This section describes how to localize Maemo applications. Localization is needed to provide native translations of the software. The section contains information on how to localize an application, how to ease extraction of message strings, how to make the translations, and how to test the localization.
+
This section describes how to localize maemo applications. Localization is needed to provide native translations of the software. The section contains information on how to localize an application, how to ease extraction of message strings, how to make the translations, and how to test the localization.
-
Changes are presented with code examples to help the localization process. [[Documentation/Maemo 5 Developer Guide/Porting Software/Porting MaemoPad|MaemoPad]] is used as an example here.
+
Changes are presented with code examples to help the localization process. MaemoPad is used as an example here.
== Localization ==
== Localization ==
Line 19: Line 19:
To localize an application, l10n needs to be set up before <code>gtk_init()</code> by including the following headers:
To localize an application, l10n needs to be set up before <code>gtk_init()</code> by including the following headers:
-
[https://vcs.maemo.org/svn/maemoexamples/tags/maemo_5.0/maemopad/src/main.c maemopad/src/main.c]
+
maemopad/src/main.c  
<source lang="c">
<source lang="c">
Line 28: Line 28:
To initialize the locale functions, the following lines need to be added:
To initialize the locale functions, the following lines need to be added:
-
[https://vcs.maemo.org/svn/maemoexamples/tags/maemo_5.0/maemopad/src/main.c maemopad/src/main.c]
+
maemopad/src/main.c  
<source lang="c">
<source lang="c">
Line 39: Line 39:
The most important of these are <code>GETTEXT_PACKAGE</code> and <code>localedir</code>, which come from <code>configure.ac</code>:
The most important of these are <code>GETTEXT_PACKAGE</code> and <code>localedir</code>, which come from <code>configure.ac</code>:
-
[https://vcs.maemo.org/svn/maemoexamples/tags/maemo_5.0/maemopad/src/configure.ac maemopad/configure.ac]
+
maemopad/configure.ac
<source lang="autoconf">
<source lang="autoconf">
Line 71: Line 71:
Thus, the i18n version of the example would be:
Thus, the i18n version of the example would be:
-
[https://vcs.maemo.org/svn/maemoexamples/tags/maemo_5.0/maemopad/src/main.c maemopad/src/main.c]
+
maemopad/src/main.c
<source lang="c">
<source lang="c">

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)