|
@@ 725-734 (lines=10) @@
|
| 722 |
|
$file_data = file_get_contents($path); |
| 723 |
|
} |
| 724 |
|
|
| 725 |
|
if (JFile::exists($path) && !empty($file_data)) |
| 726 |
|
{ |
| 727 |
|
$site = array_diff($site, array("joomla")); |
| 728 |
|
$site_txt .= "\t\t" . '<filename>' . $data['language'] . '.ini</filename>' . "\n"; |
| 729 |
|
$site_package_files[] = array('name' => $data['language'] . '.ini','data' => $file_data); |
| 730 |
|
} |
| 731 |
|
else |
| 732 |
|
{ |
| 733 |
|
$msg .= JText::sprintf('COM_LOCALISE_MAINFILE_NOT_TRANSLATED', $data['language'] . '.ini', JText::_('JSITE')); |
| 734 |
|
} |
| 735 |
|
|
| 736 |
|
foreach ($site as $translation) |
| 737 |
|
{ |
|
@@ 932-941 (lines=10) @@
|
| 929 |
|
$file_data = file_get_contents($path); |
| 930 |
|
} |
| 931 |
|
|
| 932 |
|
if (JFile::exists($path) && !empty($file_data)) |
| 933 |
|
{ |
| 934 |
|
$administrator = array_diff($administrator, array("joomla")); |
| 935 |
|
$admin_txt .= "\t\t" . '<filename>' . $data['language'] . '.ini</filename>' . "\n"; |
| 936 |
|
$admin_package_files[] = array('name' => $data['language'] . '.ini','data' => $file_data); |
| 937 |
|
} |
| 938 |
|
else |
| 939 |
|
{ |
| 940 |
|
$msg .= JText::sprintf('COM_LOCALISE_MAINFILE_NOT_TRANSLATED', $data['language'] . '.ini', JText::_('JADMINISTRATOR')); |
| 941 |
|
} |
| 942 |
|
|
| 943 |
|
foreach ($administrator as $translation) |
| 944 |
|
{ |