Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Adding a short note about l10n/I18n into HACKING

  • Loading branch information...
commit b12c8aabef729ef4a94e604a9ad8c7fdefd9face 1 parent 17a918f
Frank Lanitz authored August 26, 2012

Showing 1 changed file with 17 additions and 0 deletions. Show diff stats Hide diff stats

  1. 17  HACKING
17  HACKING
@@ -101,6 +101,7 @@ General
101 101
 
102 102
 Commit messages
103 103
 ^^^^^^^^^^^^^^^
  104
+
104 105
 Follow the standard Git formatting:
105 106
 
106 107
 * No line should use more than about 80 characters (around 72 is best).
@@ -138,3 +139,19 @@ Example::
138 139
     This avoid spawning an unexpected browser when the configured one is
139 140
     wrong, and gives the user a chance to correctly fix the preference.
140 141
 
  142
+Coding and Plugin structure
  143
+===========================
  144
+
  145
+I18n/l10n
  146
+---------
  147
+
  148
+Geany-Plugins is supporting localisation of your plugin. To make 
  149
+usage of it, there needs to be done:
  150
+
  151
+ * Mark each string which should be translatable with the gettext macro 
  152
+   ``_()`` or ``N_()`` for static strings. As an example the string 
  153
+   ``"Hello World"`` might become ``_("Hello World")``.
  154
+ * Add files with translateable strings into ``po/POTFILES.in``. You 
  155
+   should group them for your plugin as done for the other. Each files 
  156
+   needs to be put into one line with complete relative	 path from 
  157
+   plugin root directory. E.g. ``myplugin/src/myplugin.c``

0 notes on commit b12c8aa

Please sign in to comment.
Something went wrong with that request. Please try again.