From ba5fceb21cb47ba9648f1cf50fd4d3eb5030933a Mon Sep 17 00:00:00 2001 From: "Alexey I. Froloff" Date: Fri, 8 Oct 2010 16:14:43 +0400 Subject: [PATCH] wmaker.inst: better locale check Signed-off-by: Alexey I. Froloff --- util/wmaker.inst.in | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/util/wmaker.inst.in b/util/wmaker.inst.in index e29d18e5..6155844a 100644 --- a/util/wmaker.inst.in +++ b/util/wmaker.inst.in @@ -14,10 +14,7 @@ fi # name of menu file we install (menu, plmenu) inst_menu="" -LOCALE=$LANG -if [ -z "$LOCALE" ]; then - LOCALE=$LC_ALL -fi +LOCALE="${LC_ALL-${LC_MESSAGES-$LANG}}" # directory where system wide configuration is stored GLOBALDIR="#pkgdatadir#"