summaryrefslogtreecommitdiffstats
path: root/tdm/kfrontend/tdm_greet.c
diff options
context:
space:
mode:
authorFrançois Andriot <[email protected]>2015-10-15 17:33:01 +0200
committerSlávek Banko <[email protected]>2015-10-15 17:33:01 +0200
commitbd35f1efd6badf57feab8ea618b49fe670475589 (patch)
treeec26c6a068f37332172ed12733ce590122e6051e /tdm/kfrontend/tdm_greet.c
parente790a336458e02902076daeca9bb0aa6d6455f5a (diff)
downloadtdebase-bd35f1efd6badf57feab8ea618b49fe670475589.tar.gz
tdebase-bd35f1efd6badf57feab8ea618b49fe670475589.zip
Use system-defined language as default in TDM
This resolves Bug 1596
Diffstat (limited to 'tdm/kfrontend/tdm_greet.c')
-rw-r--r--tdm/kfrontend/tdm_greet.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/tdm/kfrontend/tdm_greet.c b/tdm/kfrontend/tdm_greet.c
index c90ebc1c9..5c77fadf0 100644
--- a/tdm/kfrontend/tdm_greet.c
+++ b/tdm/kfrontend/tdm_greet.c
@@ -779,7 +779,12 @@ main( int argc ATTR_UNUSED, char **argv )
LogPanic( "Cannot save $HOME\n" );
atexit( cleanup );
- setenv( "LC_ALL", _language, 1 );
+ if ( getenv( "LANG" ) == NULL ) {
+ setenv( "LC_ALL", _language, 1 );
+ }
+ else {
+ setenv( "LC_ALL", getenv( "LANG" ), 1 );
+ }
kg_main( argv[0] );