[nanny] Specify no-python-format for a string containing the percent sign



commit 55a2e5737a82c0e40bbb7ac22e8bdfbc22a7ec16
Author: Claude Paroz <claude 2xlibre net>
Date:   Fri Feb 5 21:15:08 2010 +0100

    Specify no-python-format for a string containing the percent sign
    
    The no-python-format comment is meant to instruct xgettext to not
    consider percent signs in a string as string formatters. Without this
    the msgfmt program raises an error when checking a translation which
    does not contain the same formatting sequence. See the gettext manual,
    chapter 3 for more information on this.

 client/common/src/Categories.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/client/common/src/Categories.py b/client/common/src/Categories.py
index c781705..4f40dd2 100644
--- a/client/common/src/Categories.py
+++ b/client/common/src/Categories.py
@@ -175,5 +175,7 @@ category_strings = {
     # To translators : This string is a category name or a category description
     "webmail": (_("webmail"), _("Just webmail sites")),
     # To translators : This string is a category name or a category description
-    "whitelist": (_("whitelist"), _("Contains site specifically 100% suitable for kids"))
+    "whitelist": (_("whitelist"),
+                  # xgettext:no-python-format
+                  _("Contains site specifically 100% suitable for kids"))
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]