Branch: refs/heads/master Author: Frank Lanitz frank@frank.uvena.de Committer: Frank Lanitz frank@frank.uvena.de Date: Sun, 26 Aug 2012 19:05:37 Commit: b12c8aabef729ef4a94e604a9ad8c7fdefd9face https://github.com/geany/geany-plugins/commit/b12c8aabef729ef4a94e604a9ad8c7...
Log Message: ----------- Adding a short note about l10n/I18n into HACKING
Modified Paths: -------------- HACKING
Modified: HACKING 17 files changed, 17 insertions(+), 0 deletions(-) =================================================================== @@ -101,6 +101,7 @@ General
Commit messages ^^^^^^^^^^^^^^^ + Follow the standard Git formatting:
* No line should use more than about 80 characters (around 72 is best). @@ -138,3 +139,19 @@ Example:: This avoid spawning an unexpected browser when the configured one is wrong, and gives the user a chance to correctly fix the preference.
+Coding and Plugin structure +=========================== + +I18n/l10n +--------- + +Geany-Plugins is supporting localisation of your plugin. To make +usage of it, there needs to be done: + + * Mark each string which should be translatable with the gettext macro + ``_()`` or ``N_()`` for static strings. As an example the string + ``"Hello World"`` might become ``_("Hello World")``. + * Add files with translateable strings into ``po/POTFILES.in``. You + should group them for your plugin as done for the other. Each files + needs to be put into one line with complete relative path from + plugin root directory. E.g. ``myplugin/src/myplugin.c``
@@ Diff output truncated at 100000 characters. @@
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: TBD).
plugins-commits@lists.geany.org