You are here

function theme_l10n_update_single_project_status in Localization update 7

Format a single project translation state.

Parameters

$variables: An associative array containing:

  • project: project data object.
  • server: (optional) remote server data object.
  • status: project summary status.

@return string HTML output.

1 theme call to theme_l10n_update_single_project_status()
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 450
Admin settings and update page.

Code

function theme_l10n_update_single_project_status($variables) {
  $project = $variables['project'];
  $server = $variables['server'];
  $title = $project->title ? $project->title : $project->name;
  $output = '<div class="project">';
  $output .= '<span class="project-title">' . check_plain($title) . '</span>' . ' ' . check_plain($project->module_version);
  if ($server = l10n_update_server($project->l10n_server)) {
    $output .= '<span class="project-server">' . t('(translation source: !server)', array(
      '!server' => l($server['name'], $server['link']),
    )) . '</span>';
  }
  $output .= theme('l10n_update_version_status', array(
    'status' => $variables['status'],
  ));
  $output .= "</div>\n";
  return $output;
}