You are here

function i18ncontent_locale_refresh in Internationalization 5.3

Same name and namespace in other branches
  1. 6 i18ncontent/i18ncontent.module \i18ncontent_locale_refresh()

Refresh content type strings.

@todo Clean up leftover strings

2 calls to i18ncontent_locale_refresh()
i18ncontent_locale in experimental/i18ncontent.module
Implementation of hook_locale().
i18ncontent_node_type in experimental/i18ncontent.module
Implementation of hook_content_type()

File

experimental/i18ncontent.module, line 71
Internationalization (i18n) package - translatable content type parameters

Code

function i18ncontent_locale_refresh() {
  foreach (node_get_types() as $type) {
    tt("nodetype:{$type->type}:name", $type->name, NULL, TRUE);
    tt("nodetype:{$type->type}:title", $type->title_label, NULL, TRUE);
    tt("nodetype:{$type->type}:body", $type->body_label, NULL, TRUE);

    /*
    if ($type->help) {
      ts("nodetype:$type->type:help", $type->help, NULL, TRUE);
      $type->help = '';
      node_type_save($type);
    }
    */
  }
}