diff options
author | Oliver Tappe | 2006-10-04 15:40:31 +0200 |
---|---|---|
committer | Oliver Tappe | 2006-10-04 15:40:31 +0200 |
commit | e23224194efb03391a13056476033eff190c4949 (patch) | |
tree | 54f35a64023a9906273dcaee4b71cfdf86bbd2a3 /config-db | |
parent | * corrected typo (diff) | |
download | core-e23224194efb03391a13056476033eff190c4949.tar.gz core-e23224194efb03391a13056476033eff190c4949.tar.xz core-e23224194efb03391a13056476033eff190c4949.zip |
* we now log the loaded translation module
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@440 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'config-db')
-rw-r--r-- | config-db/OpenSLX/Basics.pm | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/config-db/OpenSLX/Basics.pm b/config-db/OpenSLX/Basics.pm index 9bb721d9..128f9cfb 100644 --- a/config-db/OpenSLX/Basics.pm +++ b/config-db/OpenSLX/Basics.pm @@ -169,7 +169,7 @@ sub openslxInit } if ($openslxConfig{'verbose-level'} >= 2) { foreach my $k (sort keys %openslxConfig) { - vlog 2, "dump-config: $k = $openslxConfig{$k}"; + vlog 2, "config-dump: $k = $openslxConfig{$k}"; } } @@ -201,15 +201,17 @@ sub trInit if ($locale ne 'posix') { if (eval "require $trModule") { - # Access OpenSLX::Translations::$locale::%translations + # Access OpenSLX::Translations::<locale>::translations # via a symbolic reference... no strict 'refs'; - my $translationsRef = \%{"${trModule}::translations"}; + my $translationsRef = \%{ "${trModule}::translations" }; # ...and copy the available translations into our hash: foreach my $k (keys %{$translationsRef}) { $translations{$k} = $translationsRef->{$k}; } $loadedTranslationModule = $trModule; + vlog 1, _tr("translations module %s loaded successfully", + $trModule); } else { carp "Unable to load translations module '$locale' ($!)."; } |