From 56aefde186c4eba2ddd34017980d35683985417a Mon Sep 17 00:00:00 2001 From: tetragon Date: Mon, 23 Oct 2006 20:14:15 +0000 Subject: Convert locales to Locale::Maketext::Lexicon git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@264 4979c152-3d1c-0410-bac9-87ea11338e46 --- bin/admin.pl | 7 +++++-- bin/am.pl | 1 - bin/login.pl | 7 +++++-- bin/oe.pl | 6 +++++- 4 files changed, 15 insertions(+), 6 deletions(-) (limited to 'bin') diff --git a/bin/admin.pl b/bin/admin.pl index deac8655..ce96cd6e 100755 --- a/bin/admin.pl +++ b/bin/admin.pl @@ -37,13 +37,16 @@ $menufile = "menu.ini"; use LedgerSMB::Form; +use LedgerSMB::Locale; use LedgerSMB::User; $form = new Form; -$locale = new Locale $language, "admin"; -$form->{charset} = $locale->{charset}; +$locale = LedgerSMB::Locale->get_handle($language); +$locale->encoding('UTF-8'); +$form->{charset} = 'UTF-8'; +#$form->{charset} = $locale->encoding; eval { require DBI; }; $form->error($locale->text('DBI not installed!')) if ($@); diff --git a/bin/am.pl b/bin/am.pl index 76506f71..cdc5959e 100755 --- a/bin/am.pl +++ b/bin/am.pl @@ -2050,7 +2050,6 @@ sub config { foreach $key (sort { $countrycodes{$a} cmp $countrycodes{$b} } keys %countrycodes) { $countrycodes .= ($myconfig{countrycode} eq $key) ? "