diff options
author | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2006-10-24 01:28:20 +0000 |
---|---|---|
committer | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2006-10-24 01:28:20 +0000 |
commit | 4c3056423957501e9d9a2c1ffefa703a1ec87ec1 (patch) | |
tree | 8c05bd2b909e0cc64455dbcc2083faa6cb215632 | |
parent | 0fdca403744d98232bf332d2a72ae69d6a23312b (diff) |
Made .mo path user configurable
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@276 4979c152-3d1c-0410-bac9-87ea11338e46
-rw-r--r-- | LedgerSMB/Locale.pm | 5 | ||||
-rw-r--r-- | LedgerSMB/Sysconfig.pm | 3 |
2 files changed, 5 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, diff --git a/LedgerSMB/Sysconfig.pm b/LedgerSMB/Sysconfig.pm index aaab3319..3023ac79 100644 --- a/LedgerSMB/Sysconfig.pm +++ b/LedgerSMB/Sysconfig.pm @@ -36,6 +36,9 @@ $check_max_invoices = 5; # program to use for file compression $gzip = "gzip -S .gz"; +# Path to the translation files +$localepath = 'locale/mo'; + ################################# # Global database parameters ################################# |