Add code page information to gnucash.bat, #458783.

Instead of trying to retrieve the system code page, simply hard-code the
code pages for the configured languages.  This is one more string for
each new translation of the custom messages.  Suggestions for how to
parse the LangOptions/LanguageCodePage parameter in isl files are
welcome.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16351 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Andreas Köhler 2007-07-22 19:17:19 +00:00
parent 960ef4b98b
commit 5bdf27c9ab

View File

@ -184,7 +184,8 @@ begin
{ Create the gnucash.bat file; #10 is the linefeed character and #13 CR }
FileName := appdir + '\bin\gnucash.bat' ;
FileString := 'set PATH=' + appdir + '\bin;' + libdir + ';' + libdir + '\gnucash;%PATH%'#13#10 ;
FileString := 'chcp ' + ExpandConstant('{cm:LanguageCodePage}') + ''#13#10 ;
FileString := FileString + 'set PATH=' + appdir + '\bin;' + libdir + ';' + libdir + '\gnucash;%PATH%'#13#10 ;
FileString := FileString + 'set GUILE_WARN_DEPRECATED=no'#13#10 ;
FileString := FileString + 'set GNC_MODULE_PATH=' + pkglibdir + ''#13#10 ;
@ -249,6 +250,12 @@ IconComment_InstallFQ=Install the necessary perl module Finance-Quote for online
IconName_Uninstall=Uninstall GnuCash
IconComment_Uninstall=Uninstall the Finance Manager GnuCash
;; List of Code pages, used in gnucash.bat
LanguageCodePage=1252
de.LanguageCodePage=1252
el.LanguageCodePage=1253
fr.LanguageCodePage=1252
;; ;;;;;;;;;;;;;;;;;;;;
;; German translation