diff options
Diffstat (limited to 'LedgerSMB/Locale.pm')
-rw-r--r-- | LedgerSMB/Locale.pm | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/LedgerSMB/Locale.pm b/LedgerSMB/Locale.pm index 80e2043e..1d711867 100644 --- a/LedgerSMB/Locale.pm +++ b/LedgerSMB/Locale.pm @@ -17,7 +17,7 @@ # #====================================================================== # This package contains locale related functions: -# +#` # get_handle - gets a locale handle # text - outputs HTML escaped translation for input text # date - formats date for the locale @@ -30,10 +30,9 @@ use Locale::Maketext::Lexicon; use HTML::Entities; use Encode; -$localepath = 'locale/mo'; Locale::Maketext::Lexicon->import({ '*' => [ - Gettext => "$localepath/*/LC_MESSAGES/LedgerSMB.mo", + Gettext => "${LedgerSMB::Sysconfig::localepath}/*/LC_MESSAGES/LedgerSMB.mo", ], _auto => 1, _decode => 1, |