freebsd-ports/graphics/gsnapshot/files/patch-src_common_language.c
Philip M. Gollucci 5877e4d7b8 - Update to 1.1
PR:             ports/142839
Submitted by:   Bernhard Froehlich <decke@bluelife.at>
2010-02-01 03:32:22 +00:00

12 lines
444 B
C

--- src/common/language.c.orig 2007-07-28 15:49:17.000000000 +0200
+++ src/common/language.c 2010-01-13 21:07:22.000000000 +0100
@@ -335,6 +335,9 @@
{
if (spoken == NULL) {
char *lang = getenv("LANG");
+ if(!lang)
+ return TranslationEnglish[label].locale;
+
if (strcmp(lang, "de") == 0 || strcmp(lang, "de_DE") == 0)
spoken = TranslationGerman;
else if (strcmp(lang, "es") == 0 || strcmp(lang, "es_ES") == 0)