[Vtigercrm-commits] [Vtiger development] #7843: Issue with PackageImport.php and language files
Vtiger development
vtiger-tickets at trac.vtiger.com
Thu Dec 12 09:02:21 GMT 2013
#7843: Issue with PackageImport.php and language files
-------------------------------------------+-------------------------
Reporter: sardoj | Owner: developer
Type: defect | Status: new
Priority: major | Milestone: Unassigned
Component: vtigercrm | Version: 6.0.0 RC
Severity: Medium | Resolution:
Keywords: PackageImport, Language files |
-------------------------------------------+-------------------------
Comment (by sardoj):
Sorry, a better way is to use this code:
{{{
if(empty($language_modulename) || $language_modulename != $modulename){
// Language file present in en_us folder
$pattern = '/languages\/en_us\/([^\/]+).php/';
preg_match($pattern, $filename, $matches);
if(count($matches)) { $language_modulename = $matches[1]; }
// or Language file may be present in en_us/Settings folder
$settingsPattern = '/languages\/en_us\/Settings\/([^\/]+).php/';
preg_match($settingsPattern, $filename, $matches);
if(count($matches)) { $language_modulename = $matches[1]; }
}
}}}
--
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/7843#comment:1>
Vtiger development <http://trac.vtiger.com/>
Vtiger CRM
More information about the vtigercrm-commits
mailing list