Skip to content

Commit

Permalink
Moved .po file insertion back into profile hook_install due to hook m…
Browse files Browse the repository at this point in the history
…isfiring.
  • Loading branch information
Brant Wynn committed Sep 4, 2018
1 parent 928e85c commit 0164526
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,13 +190,3 @@ function df_tools_translation_preprocess_page(&$variables) {
}
}

/**
* Implements hook_site_install_finished().
*/
function df_tools_translation_site_install_finished($install_state) {
// After a scenario profile install, import UI translations from the .po files.
if (isset($install_state['profile']) && $info = scenarios_info($install_state['profile'])) {
df_tools_translation_import_translations('profile', $install_state['profile']);
}
}

3 changes: 3 additions & 0 deletions profiles/dfs_tec/dfs_tec.install
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,7 @@ function dfs_tec_install() {
'node' => ['employee', 'service']
];
df_tools_translation_enable_translation($entities);

// Import our custom .po files
df_tools_translation_import_translations('profile', 'dfs_tec');
}

0 comments on commit 0164526

Please sign in to comment.