summaryrefslogtreecommitdiff
path: root/bin/am.pl
diff options
context:
space:
mode:
authortetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2006-11-13 05:58:32 +0000
committertetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2006-11-13 05:58:32 +0000
commit8b3b89cd7b2761f31cdb9e690b898949ae73e03e (patch)
tree6aee7798e402df406cb158cd96c0f8597a8e5305 /bin/am.pl
parent10a2aa2d8cec3163b6d39208fd9c30a9db7d3bd9 (diff)
Set default language code for selection
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@555 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'bin/am.pl')
-rwxr-xr-xbin/am.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/am.pl b/bin/am.pl
index ea356dbf..1913bc0a 100755
--- a/bin/am.pl
+++ b/bin/am.pl
@@ -2046,9 +2046,10 @@ sub config {
%countrycodes = LedgerSMB::User->country_codes;
$countrycodes = '';
+ my $selectedcode = ($myconfig{countrycode}) ? $myconfig{countrycode} : 'en';
foreach $key (sort { $countrycodes{$a} cmp $countrycodes{$b} } keys %countrycodes) {
- $countrycodes .= ($myconfig{countrycode} eq $key) ? "<option selected value=$key>$countrycodes{$key}\n" : "<option value=$key>$countrycodes{$key}\n";
+ $countrycodes .= ($selectedcode eq $key) ? "<option selected value=$key>$countrycodes{$key}\n" : "<option value=$key>$countrycodes{$key}\n";
}
opendir CSS, "css/.";