Adding comment about gettext versions
[squirrelmail.git] / doc / plugin.txt
index cb2ccffd648a8d49c3e85973625f2ec9ba4182fe..8c0992911f77da560e30333b50188554648666de 100644 (file)
@@ -1046,6 +1046,19 @@ files.
 
          echo _("This is what I want to eat before noon: ") . $fruitName;
 
+      Note:
+      Support for single quotes in gettext was added somewhere along gettext
+      0.11.x (release dates 2002-01-31--08-06). This means that strings could
+      be written as:
+
+      echo _('Hello');
+
+      However, gettext 0.10.40 is currently the oldest version available at the
+      GNU site. It's still used in some Linux and BSD distributions/versions.
+      Since it's still in common use and it doesn't support single quoted
+      strings, double quoted strings are the preferred way when writing a
+      plugin.
+
   2.  By default, the SquirrelMail gettext domain is always in use.  That
       means that any text in the format described above will be translated
       using the locale files found in the main SquirrelMail locale directory.