From 50e722547f1f39b2e5719126719a700bbf159e31 Mon Sep 17 00:00:00 2001 From: Schrottie Date: Tue, 24 Sep 2013 12:43:22 +0200 Subject: [PATCH] 135: ask before delete pictures at logentries, added translation; fixes #135 --- htdocs/doc/sql/static-data/data.sql | 5 ++++- htdocs/templates2/ocstyle/res_logentry_logitem.tpl | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/htdocs/doc/sql/static-data/data.sql b/htdocs/doc/sql/static-data/data.sql index f9e9c988..7912850d 100644 --- a/htdocs/doc/sql/static-data/data.sql +++ b/htdocs/doc/sql/static-data/data.sql @@ -2593,6 +2593,7 @@ INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES ('2165', 'The cac INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES ('2166', 'The modifications can be checked via vandalism restore function.', '2010-08-28 11:48:04'); INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES ('2167', 'OC Admins', '2013-08-24 12:56:09'); INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES ('2168', 'Newest log entries for caches of %1', '2013-08-24 12:56:14'); +INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES ('2169', 'Do you really want to delete this picture?', '2013-10-01 18:10:14'); -- Table sys_trans_ref SET NAMES 'utf8'; @@ -4977,6 +4978,7 @@ INSERT INTO `sys_trans_ref` (`trans_id`, `resource_name`, `line`) VALUES ('2165' INSERT INTO `sys_trans_ref` (`trans_id`, `resource_name`, `line`) VALUES ('2166', './editcache.php', '491'); INSERT INTO `sys_trans_ref` (`trans_id`, `resource_name`, `line`) VALUES ('2167', './templates2/ocstyle/admins.tpl', '10'); INSERT INTO `sys_trans_ref` (`trans_id`, `resource_name`, `line`) VALUES ('2168', './templates2/ocstyle/newlogs.tpl', '14'); +INSERT INTO `sys_trans_ref` (`trans_id`, `resource_name`, `line`) VALUES ('2169', './templates2/ocstyle/res_logentry_logitem.tpl', '91'); -- Table sys_trans_text SET NAMES 'utf8'; @@ -6668,6 +6670,7 @@ INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUE INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('2166', 'DE', 'Was geändert wurde, ist über die Vandalismus-Revertierfunktion einsehbar.', '2010-08-28 11:48:06'); INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('2167', 'DE', 'OC-Admins', '2013-08-24 11:48:06'); INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('2168', 'DE', 'Neueste Logeinträge für Caches von %1', '2013-08-24 11:48:06'); +INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('2169', 'DE', 'Willst du dieses Bild wirklich löschen?', '2013-10-01 18:10:24'); INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1', 'EN', 'Reorder IDs', '2010-09-02 00:15:30'); INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('2', 'EN', 'The database could not be reconnected.', '2010-08-28 11:48:07'); INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('3', 'EN', 'Testing – please do not login', '2010-08-28 11:48:07'); @@ -13097,4 +13100,4 @@ TRUNCATE TABLE `watches_waitingtypes`; INSERT INTO `watches_waitingtypes` (`id`, `watchtype`) VALUES ('1', 'ownerlog'); INSERT INTO `watches_waitingtypes` (`id`, `watchtype`) VALUES ('2', 'cache_watches'); -INSERT INTO `sysconfig` (`name`, `value`) VALUES ('datasql_checksum', '02ca517cfd7e850d070818d80581b8ca') ON DUPLICATE KEY UPDATE `value`='02ca517cfd7e850d070818d80581b8ca'; \ No newline at end of file +INSERT INTO `sysconfig` (`name`, `value`) VALUES ('datasql_checksum', '02ca517cfd7e850d070818d80581b8ca') ON DUPLICATE KEY UPDATE `value`='02ca517cfd7e850d070818d80581b8ca'; diff --git a/htdocs/templates2/ocstyle/res_logentry_logitem.tpl b/htdocs/templates2/ocstyle/res_logentry_logitem.tpl index 3cc066ab..b73118f5 100644 --- a/htdocs/templates2/ocstyle/res_logentry_logitem.tpl +++ b/htdocs/templates2/ocstyle/res_logentry_logitem.tpl @@ -87,7 +87,7 @@ {if $logItem.userid==$login.userid}   [{t}Edit{/t}] - [{t}Delete{/t}] + [{t}Delete{/t}] {/if}
{/foreach}