Skip to content

Commit

Permalink
backdrop-contrib#47: i18n support
Browse files Browse the repository at this point in the history
  • Loading branch information
laryn committed Apr 27, 2021
1 parent 89a1484 commit eee8d06
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions metatag.i18n.inc
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ function metatag_i18n_object_info() {
* List callback for {metatag_config} strings.
*/
function metatag_i18n_list_metatag_config() {
ctools_include('export');
$configs = ctools_export_crud_load_all('metatag_config');
$names = config_get_names_with_prefix('metatag.instance');
$configs = config_load_multiple($names);

if (!empty($configs)) {
// Unserialize the config array.
Expand Down
4 changes: 2 additions & 2 deletions metatag.module
Original file line number Diff line number Diff line change
Expand Up @@ -2998,7 +2998,7 @@ function metatag_translate_metatags(&$metatags, $context = NULL, $langcode = NUL
function metatag_translations_update($metatags, $context) {
// Store the context as it was originally provided.
$original_context = $context;
$config = config('metatag.settings');
$settings = config('metatag.settings');

// Update the i18n string.
if (module_exists('i18n_string') && !$settings->get('i18n_disabled')) {
Expand Down Expand Up @@ -3040,7 +3040,7 @@ function metatag_translations_update($metatags, $context) {
function metatag_translations_delete($metatags, $context) {
// Store the context as it was originally provided.
$original_context = $context;
$config = config('metatag.settings');
$settings = config('metatag.settings');

// Update the i18n string.
if (module_exists('i18n_string') && !$settings->get('i18n_disabled')) {
Expand Down

0 comments on commit eee8d06

Please sign in to comment.