|
@@ 332-336 (lines=5) @@
|
| 329 |
|
$translation->setProperties(array('type' => 'joomla', 'filename' => 'joomla', 'name' => JText::_('COM_LOCALISE_TEXT_TRANSLATIONS_JOOMLA'))); |
| 330 |
|
$this->translations["$client|$tag|joomla"] = $translation; |
| 331 |
|
} |
| 332 |
|
elseif ($file == "$tag.finder_cli.ini" && preg_match("/$filter_type/", 'file')) |
| 333 |
|
{ |
| 334 |
|
$translation->setProperties(array('type' => 'file', 'filename' => $filename, 'name' => $filename)); |
| 335 |
|
$this->translations["$client|$tag|$filename"] = $translation; |
| 336 |
|
} |
| 337 |
|
elseif ($file == "$tag.files_joomla.sys.ini" && preg_match("/$filter_type/", 'file')) |
| 338 |
|
{ |
| 339 |
|
$translation->setProperties(array('type' => 'file', 'filename' => $filename, 'name' => $filename)); |
|
@@ 337-341 (lines=5) @@
|
| 334 |
|
$translation->setProperties(array('type' => 'file', 'filename' => $filename, 'name' => $filename)); |
| 335 |
|
$this->translations["$client|$tag|$filename"] = $translation; |
| 336 |
|
} |
| 337 |
|
elseif ($file == "$tag.files_joomla.sys.ini" && preg_match("/$filter_type/", 'file')) |
| 338 |
|
{ |
| 339 |
|
$translation->setProperties(array('type' => 'file', 'filename' => $filename, 'name' => $filename)); |
| 340 |
|
$this->translations["$client|$tag|$filename"] = $translation; |
| 341 |
|
} |
| 342 |
|
elseif ($prefix == "$tag.com" && preg_match("/$filter_type/", 'component')) |
| 343 |
|
{ |
| 344 |
|
// Scan component ini file |
|
@@ 342-347 (lines=6) @@
|
| 339 |
|
$translation->setProperties(array('type' => 'file', 'filename' => $filename, 'name' => $filename)); |
| 340 |
|
$this->translations["$client|$tag|$filename"] = $translation; |
| 341 |
|
} |
| 342 |
|
elseif ($prefix == "$tag.com" && preg_match("/$filter_type/", 'component')) |
| 343 |
|
{ |
| 344 |
|
// Scan component ini file |
| 345 |
|
$translation->setProperties(array('type' => 'component', 'filename' => $filename, 'name' => $filename)); |
| 346 |
|
$this->translations["$client|$tag|$filename"] = $translation; |
| 347 |
|
} |
| 348 |
|
elseif ($prefix == "$tag.mod" && preg_match("/$filter_type/", 'module')) |
| 349 |
|
{ |
| 350 |
|
// Scan module ini file |
|
@@ 348-353 (lines=6) @@
|
| 345 |
|
$translation->setProperties(array('type' => 'component', 'filename' => $filename, 'name' => $filename)); |
| 346 |
|
$this->translations["$client|$tag|$filename"] = $translation; |
| 347 |
|
} |
| 348 |
|
elseif ($prefix == "$tag.mod" && preg_match("/$filter_type/", 'module')) |
| 349 |
|
{ |
| 350 |
|
// Scan module ini file |
| 351 |
|
$translation->setProperties(array('type' => 'module', 'filename' => $filename, 'name' => $filename)); |
| 352 |
|
$this->translations["$client|$tag|$filename"] = $translation; |
| 353 |
|
} |
| 354 |
|
elseif ($prefix == "$tag.tpl" && preg_match("/$filter_type/", 'template')) |
| 355 |
|
{ |
| 356 |
|
// Scan template ini file |
|
@@ 354-359 (lines=6) @@
|
| 351 |
|
$translation->setProperties(array('type' => 'module', 'filename' => $filename, 'name' => $filename)); |
| 352 |
|
$this->translations["$client|$tag|$filename"] = $translation; |
| 353 |
|
} |
| 354 |
|
elseif ($prefix == "$tag.tpl" && preg_match("/$filter_type/", 'template')) |
| 355 |
|
{ |
| 356 |
|
// Scan template ini file |
| 357 |
|
$translation->setProperties(array('type' => 'template', 'filename' => $filename, 'name' => $filename)); |
| 358 |
|
$this->translations["$client|$tag|$filename"] = $translation; |
| 359 |
|
} |
| 360 |
|
elseif ($prefix == "$tag.plg" && preg_match("/$filter_type/", 'plugin')) |
| 361 |
|
{ |
| 362 |
|
// Scan plugin ini file |
|
@@ 360-365 (lines=6) @@
|
| 357 |
|
$translation->setProperties(array('type' => 'template', 'filename' => $filename, 'name' => $filename)); |
| 358 |
|
$this->translations["$client|$tag|$filename"] = $translation; |
| 359 |
|
} |
| 360 |
|
elseif ($prefix == "$tag.plg" && preg_match("/$filter_type/", 'plugin')) |
| 361 |
|
{ |
| 362 |
|
// Scan plugin ini file |
| 363 |
|
$translation->setProperties(array('type' => 'plugin', 'filename' => $filename, 'name' => $filename)); |
| 364 |
|
$this->translations["$client|$tag|$filename"] = $translation; |
| 365 |
|
} |
| 366 |
|
elseif ($prefix == "$tag.pkg" && preg_match("/$filter_type/", 'package')) |
| 367 |
|
{ |
| 368 |
|
// Scan package ini file |
|
@@ 366-371 (lines=6) @@
|
| 363 |
|
$translation->setProperties(array('type' => 'plugin', 'filename' => $filename, 'name' => $filename)); |
| 364 |
|
$this->translations["$client|$tag|$filename"] = $translation; |
| 365 |
|
} |
| 366 |
|
elseif ($prefix == "$tag.pkg" && preg_match("/$filter_type/", 'package')) |
| 367 |
|
{ |
| 368 |
|
// Scan package ini file |
| 369 |
|
$translation->setProperties(array('type' => 'package', 'filename' => $filename, 'name' => $filename)); |
| 370 |
|
$this->translations["$client|$tag|$filename"] = $translation; |
| 371 |
|
} |
| 372 |
|
elseif ($prefix == "$tag.lib" && preg_match("/$filter_type/", 'library')) |
| 373 |
|
{ |
| 374 |
|
// Scan library ini file |
|
@@ 372-377 (lines=6) @@
|
| 369 |
|
$translation->setProperties(array('type' => 'package', 'filename' => $filename, 'name' => $filename)); |
| 370 |
|
$this->translations["$client|$tag|$filename"] = $translation; |
| 371 |
|
} |
| 372 |
|
elseif ($prefix == "$tag.lib" && preg_match("/$filter_type/", 'library')) |
| 373 |
|
{ |
| 374 |
|
// Scan library ini file |
| 375 |
|
$translation->setProperties(array('type' => 'library', 'filename' => $filename, 'name' => $filename)); |
| 376 |
|
$this->translations["$client|$tag|$filename"] = $translation; |
| 377 |
|
} |
| 378 |
|
} |
| 379 |
|
} |
| 380 |
|
} |