Import a locale XML file.
public static importXML ( SimpleXMLElement $xml, boolean $overwriteConflicts = false, array $frontendLanguages = null, array $backendLanguages = null, integer $userId = null, integer $date = null ) : array | ||
$xml | SimpleXMLElement | The locale XML. |
$overwriteConflicts | boolean | Should we overwrite when there is a conflict? |
$frontendLanguages | array | The frontend languages to install locale for. |
$backendLanguages | array | The backend languages to install locale for. |
$userId | integer | Id of the user these translations should be inserted for. |
$date | integer | The date the translation has been inserted. |
return | array | The import statistics |