xf_phantom
Well-known member
in method importLanguageXml you have following code:
I've changed some of the language data on my installation, but on each addon language import, they're getting overwriten again (with the original data from the language from the translator installation).
Is it really necessary to run the bulkSet if you overwrite the language?
Couldn't you drop this?
PHP:
if ($overwriteLanguageId)
{
$writer->setExistingData($overwriteLanguageId);
}
else
{
$writer->set('title', (string)$document['title']);
$writer->set('parent_id', $parentLanguageId);
}
$textDirection = (string)$document['text_direction'];
$writer->bulkSet(array(
'date_format' => (string)$document['date_format'],
'time_format' => (string)$document['time_format'],
'decimal_point' => (string)$document['decimal_point'],
'thousands_separator' => (string)$document['thousands_separator'],
'language_code' => (string)$document['language_code'],
'text_direction' => ($textDirection ? $textDirection : 'LTR')
))
I've changed some of the language data on my installation, but on each addon language import, they're getting overwriten again (with the original data from the language from the translator installation).
Is it really necessary to run the bulkSet if you overwrite the language?
Couldn't you drop this?
Last edited: