diff --git a/css/l10n_update.admin.css b/css/l10n_update.admin.css index c42dca3..5847376 100644 --- a/css/l10n_update.admin.css +++ b/css/l10n_update.admin.css @@ -1,12 +1,42 @@ -html.js .l10n-update-wrapper.collapsed .fieldset-wrapper { - display: none; +/* General translation update styling */ +.l10n-update td { + font-size: 105%; +} + +.l10n-update td span { + vertical-align: top; +} + +/* Project details */ +.l10n-update .project { + font-size: 100%; +} + +.l10n-update .project-server { + margin: 0 10px; + font-weight: normal } .l10n-update-wrapper .project .version-status { display: none; } -/* Expand/collapse image for project title */ +.l10n-update .version-status { + float: right; + font-size: 95%; + font-weight: normal; +} + +.l10n-update .version-links { + float: right; + padding-right: 1em; +} + +/* Project details: expand/collapse section styling */ +html.js .l10n-update-wrapper.collapsed .fieldset-wrapper { + display: none; +} + html.js .l10n-update-wrapper .project-title { background: url("../images/menu-expanded.png") left 65% no-repeat; padding-left: 10px; @@ -16,31 +46,31 @@ html.js .l10n-update-wrapper.collapsed .project-title { background: url("../images/menu-collapsed.png") left 50% no-repeat; } -html.js .l10n-update-wrapper .project-title a { +html.js .l10n-update .project-title a { margin-left: -10px; padding-left: 10px; } -/* Translation update status data */ html.js .l10n-update-wrapper.collapsed .project .version-status { display: inline; float: right; } -.l10n-update .project-server { - margin: 0 10px; - font-size: 90%; - font-weight: normal +/* Language details */ +table.l10n-update-languages { + border: none; + margin: 0; } -.l10n-update .version-status { - float: right; - font-size: 90%; - font-weight: normal; +.update table.l10n-update-languages tr td { + border: none; + padding: 0 0 0 1em; } - -.l10n-update .version-links { - float: right; - padding-right: 1em; - +.update table.l10n-update-languages tr:first-child td { + padding-top: 2px; } +.update table.l10n-update-languages tr:last-child td { + padding-bottom: 2px; +} + +/* @todo reconsider use of .update */ diff --git a/l10n_update.admin.inc b/l10n_update.admin.inc index 78958c0..2e297a3 100644 --- a/l10n_update.admin.inc +++ b/l10n_update.admin.inc @@ -157,7 +157,7 @@ function l10n_update_admin_import_form_submit($form, $form_state) { drupal_set_message(t('Fetched information about available updates from the server')); } else { - drupal_set_message(t('Failed to fetch information about available updates from the server.'), 'error'); + drupal_set_message(format_plural(count($projects), 'Failed to get available update data for one project.', 'Failed to get available update data for @count projects.'), 'error'); } } } @@ -404,7 +404,7 @@ function theme_l10n_update_single_project_wrapper($variables) { // Output tables with translation status per language. $output .= '