[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb: [276] trunk/LedgerSMB



Revision: 276
          http://svn.sourceforge.net/ledger-smb/?rev=276&view=rev
Author:   einhverfr
Date:     2006-10-23 18:28:20 -0700 (Mon, 23 Oct 2006)

Log Message:
-----------
Made .mo path user configurable

Modified Paths:
--------------
    trunk/LedgerSMB/Locale.pm
    trunk/LedgerSMB/Sysconfig.pm

Modified: trunk/LedgerSMB/Locale.pm
===================================================================
--- trunk/LedgerSMB/Locale.pm	2006-10-24 01:13:19 UTC (rev 275)
+++ trunk/LedgerSMB/Locale.pm	2006-10-24 01:28:20 UTC (rev 276)
@@ -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 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,

Modified: trunk/LedgerSMB/Sysconfig.pm
===================================================================
--- trunk/LedgerSMB/Sysconfig.pm	2006-10-24 01:13:19 UTC (rev 275)
+++ trunk/LedgerSMB/Sysconfig.pm	2006-10-24 01:28:20 UTC (rev 276)
@@ -36,6 +36,9 @@
 # program to use for file compression
 $gzip = "gzip -S .gz";
 
+# Path to the translation files
+$localepath = 'locale/mo';
+
 #################################
 # Global database parameters
 #################################


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.