Commit ed774012bbb1806a941f05f6a09a86feacf4e1d0

Authored by Neil Blakey-Milner
1 parent ff8e75a6

Also set the "LANGUAGE" environment variable to the language given.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3787 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 3 additions and 2 deletions
bin/generate-buttons.php
@@ -84,13 +84,14 @@ $sLocale = $argv[1]; @@ -84,13 +84,14 @@ $sLocale = $argv[1];
84 84
85 error_reporting(E_ALL); 85 error_reporting(E_ALL);
86 putenv('LANG=' . $sLocale); 86 putenv('LANG=' . $sLocale);
  87 +putenv('LANGUAGE=' . $sLocale);
87 setlocale(LC_ALL, $sLocale); 88 setlocale(LC_ALL, $sLocale);
88 // Set the text domain 89 // Set the text domain
89 $sDomain = 'knowledgeTree'; 90 $sDomain = 'knowledgeTree';
90 -$btd = bindtextdomain($sDomain, "/home/nbm/cvs/knowledgeTree/i18n"); 91 +$btd = bindtextdomain($sDomain, "/home/nbm/KnowledgeTree/cvs/i18n");
91 textdomain($sDomain); 92 textdomain($sDomain);
92 93
93 -$font = "/usr/share/fonts/bitstream-vera/Vera.ttf"; 94 +$font = "/usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf";
94 $fontsize = 8; 95 $fontsize = 8;
95 96
96 $buttons = getButtons(); 97 $buttons = getButtons();