From 3aab1e4125e60ccc400ee759c9cd9ae7b8398849 Mon Sep 17 00:00:00 2001 From: ddtddt Date: Sat, 4 Jul 2009 19:05:48 +0000 Subject: bug 986 branche 2 git-svn-id: http://piwigo.org/svn/branches/2.0@3516 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/maintenance.php | 9 +++++++++ admin/template/goto/maintenance.tpl | 1 + language/cz_CZ/admin.lang.php | 1 + language/de_DE/admin.lang.php | 2 +- language/en_UK/admin.lang.php | 1 + language/es_ES/admin.lang.php | 2 +- language/fr_FR/admin.lang.php | 2 +- language/hr_HR/admin.lang.php | 1 + language/it_IT/admin.lang.php | 2 +- language/ja_JP/admin.lang.php | 2 +- language/nl_NL/admin.lang.php | 1 + language/pl_PL/admin.lang.php | 2 +- language/ru_RU/admin.lang.php | 1 + language/zh_CN/admin.lang.php | 1 + 14 files changed, 22 insertions(+), 6 deletions(-) diff --git a/admin/maintenance.php b/admin/maintenance.php index ba6b718bb..9d991d924 100644 --- a/admin/maintenance.php +++ b/admin/maintenance.php @@ -100,6 +100,15 @@ DELETE $c13y->maintenance(); break; } + case 'search' : + { + $query = ' +DELETE + FROM '.SEARCH_TABLE.' +;'; + pwg_query($query); + break; + } case 'compiled-templates' : { $template->delete_compiled_templates(); diff --git a/admin/template/goto/maintenance.tpl b/admin/template/goto/maintenance.tpl index b37ec864e..908e62471 100644 --- a/admin/template/goto/maintenance.tpl +++ b/admin/template/goto/maintenance.tpl @@ -14,6 +14,7 @@
  • {'purge history summary'|@translate}
  • {'purge sessions'|@translate}
  • {'purge never used notification feeds'|@translate}
  • +
  • {'Purge search history'|@translate}
  • {'Purge compiled templates'|@translate}
  • diff --git a/language/cz_CZ/admin.lang.php b/language/cz_CZ/admin.lang.php index 92ccfb005..83aa3a860 100644 --- a/language/cz_CZ/admin.lang.php +++ b/language/cz_CZ/admin.lang.php @@ -652,4 +652,5 @@ $lang['Number of downloads'] = 'Počet stažení'; /*TODO*/$lang['Subscribe to Piwigo Announcements Newsletter'] = 'Keep in touch with Piwigo project, subscribe to Piwigo Announcement Newsletter. You will receive emails when a new release is available (sometimes including a security bug fix, it\'s important to know and upgrade) and when major events happen to the project. Only a few emails a year.'; /*TODO*/$lang['Subscribe %s'] = 'Subscribe %s'; /*TODO*/$lang['Subscribe %s to Piwigo Announcements Newsletter'] = 'Subscribe %s to Piwigo English Announcements Newsletter'; +/*TODO*/$lang['Purge search history'] = 'Purge search history'; ?> diff --git a/language/de_DE/admin.lang.php b/language/de_DE/admin.lang.php index 6a04e406b..02a719d28 100644 --- a/language/de_DE/admin.lang.php +++ b/language/de_DE/admin.lang.php @@ -651,5 +651,5 @@ $lang['Bound template'] = 'Verbundenes Template'; /*TODO*/$lang['Subscribe to Piwigo Announcements Newsletter'] = 'Keep in touch with Piwigo project, subscribe to Piwigo Announcement Newsletter. You will receive emails when a new release is available (sometimes including a security bug fix, it\'s important to know and upgrade) and when major events happen to the project. Only a few emails a year.'; /*TODO*/$lang['Subscribe %s'] = 'Subscribe %s'; /*TODO*/$lang['Subscribe %s to Piwigo Announcements Newsletter'] = 'Subscribe %s to Piwigo English Announcements Newsletter'; - +/*TODO*/$lang['Purge search history'] = 'Purge search history'; ?> \ No newline at end of file diff --git a/language/en_UK/admin.lang.php b/language/en_UK/admin.lang.php index ce83cebbf..567391c5e 100644 --- a/language/en_UK/admin.lang.php +++ b/language/en_UK/admin.lang.php @@ -652,4 +652,5 @@ $lang['Piwigo Announcements Newsletter'] = 'Piwigo Announcements Newsletter'; $lang['Subscribe to Piwigo Announcements Newsletter'] = 'Keep in touch with Piwigo project, subscribe to Piwigo Announcement Newsletter. You will receive emails when a new release is available (sometimes including a security bug fix, it\'s important to know and upgrade) and when major events happen to the project. Only a few emails a year.'; $lang['Subscribe %s'] = 'Subscribe %s'; $lang['Subscribe %s to Piwigo Announcements Newsletter'] = 'Subscribe %s to Piwigo Announcements Newsletter'; +$lang['Purge search history'] = 'Purge search history'; ?> diff --git a/language/es_ES/admin.lang.php b/language/es_ES/admin.lang.php index ae42a4f36..aeac10060 100644 --- a/language/es_ES/admin.lang.php +++ b/language/es_ES/admin.lang.php @@ -649,5 +649,5 @@ $lang['Number of downloads'] = 'Número de descargar'; /*TODO*/$lang['Subscribe to Piwigo Announcements Newsletter'] = 'Keep in touch with Piwigo project, subscribe to Piwigo Announcement Newsletter. You will receive emails when a new release is available (sometimes including a security bug fix, it\'s important to know and upgrade) and when major events happen to the project. Only a few emails a year.'; /*TODO*/$lang['Subscribe %s'] = 'Subscribe %s'; /*TODO*/$lang['Subscribe %s to Piwigo Announcements Newsletter'] = 'Subscribe %s to Piwigo English Announcements Newsletter'; - +/*TODO*/$lang['Purge search history'] = 'Purge search history'; ?> diff --git a/language/fr_FR/admin.lang.php b/language/fr_FR/admin.lang.php index 21df31cb4..6940b8bb0 100644 --- a/language/fr_FR/admin.lang.php +++ b/language/fr_FR/admin.lang.php @@ -651,5 +651,5 @@ $lang['Piwigo Announcements Newsletter'] = 'Newsletter Piwigo'; $lang['Subscribe to Piwigo Announcements Newsletter'] = 'Restez en contact avec le projet Piwigo, abonnez-vous à la newsletter. Vous recevrez un email lorsqu\'une nouvelle version sera disponible (parfois un bug de sécurité est corrigé, il est important d\'être au courant et de mettre à jour) ou qu\'un événement majeur surviendra sur le projet. Seulement quelques messages par an.'; $lang['Subscribe %s'] = 'Abonner %s'; $lang['Subscribe %s to Piwigo Announcements Newsletter'] = 'Abonner %s à la newsletter Piwigo'; - +$lang['Purge search history'] = 'Purger l\'historique des recherches'; ?> diff --git a/language/hr_HR/admin.lang.php b/language/hr_HR/admin.lang.php index 91971d456..a18648c3b 100644 --- a/language/hr_HR/admin.lang.php +++ b/language/hr_HR/admin.lang.php @@ -652,4 +652,5 @@ $lang['Number of downloads'] = 'Broj preuzimanja'; /*TODO*/$lang['Subscribe to Piwigo Announcements Newsletter'] = 'Keep in touch with Piwigo project, subscribe to Piwigo Announcement Newsletter. You will receive emails when a new release is available (sometimes including a security bug fix, it\'s important to know and upgrade) and when major events happen to the project. Only a few emails a year.'; /*TODO*/$lang['Subscribe %s'] = 'Subscribe %s'; /*TODO*/$lang['Subscribe %s to Piwigo Announcements Newsletter'] = 'Subscribe %s to Piwigo English Announcements Newsletter'; +/*TODO*/$lang['Purge search history'] = 'Purge search history'; ?> diff --git a/language/it_IT/admin.lang.php b/language/it_IT/admin.lang.php index 0215cb822..d57836619 100644 --- a/language/it_IT/admin.lang.php +++ b/language/it_IT/admin.lang.php @@ -651,5 +651,5 @@ $lang['Piwigo Announcements Newsletter'] = 'Newsletter Piwigo'; $lang['Subscribe to Piwigo Announcements Newsletter'] = 'Rimanete in contatto con il progetto con il progetto Piwigo, abbonatevi alla newsletter. Riceverete un mail ad ogni volta che una nuova versione sarà disponibile (avvolte un bug di sicurezza è corretto, è importante esserne al corrente e d\'aggiornare il prodotto) o che un evento importante sorga sul progetto. Solo qualche mail all\'anno'; $lang['Subscribe %s'] = 'Abbonare %s'; $lang['Subscribe %s to Piwigo Announcements Newsletter'] = 'Abbonare %s alla newsletter Piwigo'; - +/*TODO*/$lang['Purge search history'] = 'Purge search history'; ?> diff --git a/language/ja_JP/admin.lang.php b/language/ja_JP/admin.lang.php index 5d4ca7f6b..84eeba634 100644 --- a/language/ja_JP/admin.lang.php +++ b/language/ja_JP/admin.lang.php @@ -649,5 +649,5 @@ $lang['%d photos were deleted'] = '%d 写真が削除されました。'; /*TODO*/$lang['Subscribe to Piwigo Announcements Newsletter'] = 'Keep in touch with Piwigo project, subscribe to Piwigo Announcement Newsletter. You will receive emails when a new release is available (sometimes including a security bug fix, it\'s important to know and upgrade) and when major events happen to the project. Only a few emails a year.'; /*TODO*/$lang['Subscribe %s'] = 'Subscribe %s'; /*TODO*/$lang['Subscribe %s to Piwigo Announcements Newsletter'] = 'Subscribe %s to Piwigo English Announcements Newsletter'; - +/*TODO*/$lang['Purge search history'] = 'Purge search history'; ?> diff --git a/language/nl_NL/admin.lang.php b/language/nl_NL/admin.lang.php index be834d484..db179c10d 100644 --- a/language/nl_NL/admin.lang.php +++ b/language/nl_NL/admin.lang.php @@ -652,4 +652,5 @@ $lang['Number of downloads'] = 'Aantal downloads'; /*TODO*/$lang['Subscribe to Piwigo Announcements Newsletter'] = 'Keep in touch with Piwigo project, subscribe to Piwigo Announcement Newsletter. You will receive emails when a new release is available (sometimes including a security bug fix, it\'s important to know and upgrade) and when major events happen to the project. Only a few emails a year.'; /*TODO*/$lang['Subscribe %s'] = 'Subscribe %s'; /*TODO*/$lang['Subscribe %s to Piwigo Announcements Newsletter'] = 'Subscribe %s to Piwigo English Announcements Newsletter'; +/*TODO*/$lang['Purge search history'] = 'Purge search history'; ?> diff --git a/language/pl_PL/admin.lang.php b/language/pl_PL/admin.lang.php index 27b549bcf..715e17795 100644 --- a/language/pl_PL/admin.lang.php +++ b/language/pl_PL/admin.lang.php @@ -652,5 +652,5 @@ $lang['Bound template'] = 'Przypisz Szablon'; /*TODO*/$lang['Subscribe to Piwigo Announcements Newsletter'] = 'Keep in touch with Piwigo project, subscribe to Piwigo Announcement Newsletter. You will receive emails when a new release is available (sometimes including a security bug fix, it\'s important to know and upgrade) and when major events happen to the project. Only a few emails a year.'; /*TODO*/$lang['Subscribe %s'] = 'Subscribe %s'; /*TODO*/$lang['Subscribe %s to Piwigo Announcements Newsletter'] = 'Subscribe %s to Piwigo English Announcements Newsletter'; - +/*TODO*/$lang['Purge search history'] = 'Purge search history'; ?> diff --git a/language/ru_RU/admin.lang.php b/language/ru_RU/admin.lang.php index 907c16aa0..0faa9508e 100644 --- a/language/ru_RU/admin.lang.php +++ b/language/ru_RU/admin.lang.php @@ -652,4 +652,5 @@ $lang['%d photos were deleted'] = '%d фото удалено'; /*TODO*/$lang['Subscribe to Piwigo Announcements Newsletter'] = 'Keep in touch with Piwigo project, subscribe to Piwigo Announcement Newsletter. You will receive emails when a new release is available (sometimes including a security bug fix, it\'s important to know and upgrade) and when major events happen to the project. Only a few emails a year.'; /*TODO*/$lang['Subscribe %s'] = 'Subscribe %s'; /*TODO*/$lang['Subscribe %s to Piwigo Announcements Newsletter'] = 'Subscribe %s to Piwigo English Announcements Newsletter'; +/*TODO*/$lang['Purge search history'] = 'Purge search history'; ?> diff --git a/language/zh_CN/admin.lang.php b/language/zh_CN/admin.lang.php index 7b0f7fb24..1cb25850f 100644 --- a/language/zh_CN/admin.lang.php +++ b/language/zh_CN/admin.lang.php @@ -651,5 +651,6 @@ $lang['Number of downloads'] = '下载次数'; /*TODO*/$lang['Subscribe to Piwigo Announcements Newsletter'] = 'Keep in touch with Piwigo project, subscribe to Piwigo Announcement Newsletter. You will receive emails when a new release is available (sometimes including a security bug fix, it\'s important to know and upgrade) and when major events happen to the project. Only a few emails a year.'; /*TODO*/$lang['Subscribe %s'] = 'Subscribe %s'; /*TODO*/$lang['Subscribe %s to Piwigo Announcements Newsletter'] = 'Subscribe %s to Piwigo English Announcements Newsletter'; +/*TODO*/$lang['Purge search history'] = 'Purge search history'; ?> -- cgit v1.2.3