Calling all Drupal developers!
Help us get this on the first page of Digg. DIGG NOW!
Help us get this on the first page of Digg. DIGG NOW!
i18ncontent_locale_refresh()
contributions/i18n/i18ncontent/i18ncontent.module, line 54
Refresh content type strings
<?php
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:title", $type->body_label, NULL, TRUE);
if ($type->help) {
ts("nodetype:$type->type:help", $type->help, NULL, TRUE);
$type->help = '';
node_type_save($type);
}
}
}
?>