Explorar o código

Restore GRASS_TRANSLATION_DOMAIN to the default once we're done with it

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@40728 15284696-431f-4ddb-bdfa-cd5b030d7da7
Glynn Clements %!s(int64=15) %!d(string=hai) anos
pai
achega
1d408e0306
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      general/g.parser/main.c

+ 3 - 1
general/g.parser/main.c

@@ -61,7 +61,9 @@ char *translate(const char *arg)
 #if defined(HAVE_LIBINTL_H) && defined(USE_NLS)
     if (!domain) {
 	domain = getenv("GRASS_TRANSLATION_DOMAIN");
-	if (!domain)
+	if (domain)
+	    G_putenv("GRASS_TRANSLATION_DOMAIN", "grassmods");
+	else
 	    domain = PACKAGE;
     }