Example #1
0
/**
 * Refresh strings for translation system
 */
function messaging_locale_refresh()
{
    foreach (messaging_method_info() as $name => $info) {
        i18nstrings_update("messaging:method:{$name}:name", $info['name']);
    }
    return TRUE;
}
Example #2
0
/**
 * Refresh notifications strings
 */
function notifications_locale_refresh()
{
    if ($intervals = variable_get('notifications_send_intervals', FALSE)) {
        foreach ($intervals as $key => $name) {
            i18nstrings_update("notifications:send_interval:{$key}:name", $name);
        }
    }
    return TRUE;
}