From 45f574a7e4b7aa308459e9a9e7e8b6bc8f15b9a2 Mon Sep 17 00:00:00 2001 From: jervfors Date: Mon, 28 Mar 2005 22:00:42 +0000 Subject: [PATCH] Adding comment about gettext versions git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@9150 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- doc/plugin.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/doc/plugin.txt b/doc/plugin.txt index cb2ccffd..8c099291 100644 --- a/doc/plugin.txt +++ b/doc/plugin.txt @@ -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. -- 2.25.1