Fixes ticket #526

Signed-off-by: Tim Almdal <tnalmdal@shaw.ca>
This commit is contained in:
Shai Ben-Naphtali
2009-07-11 13:56:43 +08:00
committed by Tim Almdal
parent fe6320ef4c
commit 6320babf78
2 changed files with 4 additions and 4 deletions

View File

@@ -163,7 +163,7 @@ class exif_Core {
list ($remaining) = exif::stats();
if ($remaining) {
site_status::warning(
t('Your EXIF index needs to be updated. <a href="%url" class="gDialogLink">Fix this now</a>',
t('Your Exif index needs to be updated. <a href="%url" class="gDialogLink">Fix this now</a>',
array("url" => url::site("admin/maintenance/start/exif_task::update_index?csrf=__CSRF__"))),
"exif_index_out_of_date");
}

View File

@@ -28,12 +28,12 @@ class exif_task_Core {
list ($remaining, $total, $percent) = exif::stats();
return array(Task_Definition::factory()
->callback("exif_task::update_index")
->name(t("Extract EXIF data"))
->name(t("Extract Exif data"))
->description($remaining
? t2("1 photo needs to be scanned",
"%count (%percent%) of your photos need to be scanned",
$remaining, array("percent" => (100 - $percent)))
: t("EXIF data is up-to-date"))
: t("Exif data is up-to-date"))
->severity($remaining ? log::WARNING : log::SUCCESS));
}
@@ -57,7 +57,7 @@ class exif_task_Core {
$completed++;
exif::extract($item);
$message[] = t("Updated EXIF meta data for '%title'",
$message[] = t("Updated Exif meta data for '%title'",
array("title" => p::purify($item->title)));
}