Created
February 24, 2015 10:33
-
-
Save rodrigoaguilera/51c22c055a09ee37d47e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$translation_groups = array( | |
'default' => array('ca'), | |
'field' => array('ca'), | |
'inline_entity_form' => array('ca'), | |
'panels' => array('ca'), | |
'node' => array('ca'), | |
); | |
foreach ($translation_groups as $group => $languages) { | |
foreach ($languages as $language) { | |
$file = new stdClass(); | |
$file->filename = 'pineda.' . $group . '.' . $language . '.po'; | |
$file->uri = DRUPAL_ROOT . '/profiles/pineda/translations/' . $file->filename; | |
_locale_import_po($file, $language, LOCALE_IMPORT_OVERWRITE, $group); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment