function theme_l10n_update_current_release in Localization update 7
Format current translation version.
Parameters
$variables: An associative array containing:
- language: Language name.
- release: Current file data.
- status: Release status.
Return value
string HTML output.
1 theme call to theme_l10n_update_current_release()
- theme_l10n_update_single_project_wrapper in ./
l10n_update.admin.inc - Format project translation state with states per language.
File
- ./
l10n_update.admin.inc, line 477 - Admin settings and update page.
Code
function theme_l10n_update_current_release($variables) {
if (isset($variables['release'])) {
$date = $variables['release']->timestamp;
$version = $variables['release']->version;
$text = t('@language: @version (!date)', array(
'@language' => $variables['language'],
'@version' => $version,
'!date' => format_date($date, 'custom', 'Y-M-d'),
));
}
else {
$text = t('@language: <em>No installed translation</em>', array(
'@language' => $variables['language'],
));
}
$output = '<div class="language">';
$output .= $text;
$output .= theme('l10n_update_version_status', $variables);
$output .= "</div>\n";
return $output;
}