Skip to content

Commit f24c7ac

Browse files
committed
added OCDE 'listing is outdated' information to geocache descriptions;
updates #373
1 parent 76e519b commit f24c7ac

File tree

3 files changed

+60
-30
lines changed

3 files changed

+60
-30
lines changed
462 Bytes
Binary file not shown.

okapi/locale/de_DE/LC_MESSAGES/okapi_messages.po

Lines changed: 47 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ msgid ""
22
msgstr ""
33
"Project-Id-Version: OKAPI\n"
44
"Report-Msgid-Bugs-To: \n"
5-
"POT-Creation-Date: 2015-08-25 19:14+0100\n"
6-
"PO-Revision-Date: 2015-08-25 19:23+0100\n"
5+
"POT-Creation-Date: 2016-03-04 20:20+0100\n"
6+
"PO-Revision-Date: 2016-03-04 20:25+0100\n"
77
"Last-Translator: following <following@online.de>\n"
88
"Language-Team: following <following@online.de>\n"
99
"Language: de\n"
@@ -17,32 +17,40 @@ msgstr ""
1717
"X-Generator: Poedit 1.5.5\n"
1818
"X-Poedit-SearchPath-0: c:\\source\\oc\\okapi\\okapi\n"
1919

20-
#: c:\source\oc\okapi\okapi/services/caches/geocaches.php:996
20+
#: c:\source\oc\okapi\okapi/services/caches/geocaches.php:536
21+
msgid "Parts of this geocache listing may be outdated."
22+
msgstr "Teile dieser Cachebeschreibung sind wahrscheinlich veraltet."
23+
24+
#: c:\source\oc\okapi\okapi/services/caches/geocaches.php:537
25+
msgid "See the log entries for more information."
26+
msgstr "Weitere Informationen dazu finden sich in den Logeinträgen."
27+
28+
#: c:\source\oc\okapi\okapi/services/caches/geocaches.php:1016
2129
msgid "Stage"
2230
msgstr "Station"
2331

24-
#: c:\source\oc\okapi\okapi/services/caches/geocaches.php:1040
32+
#: c:\source\oc\okapi\okapi/services/caches/geocaches.php:1060
2533
msgid "User location"
2634
msgstr "Benutzerkoordinaten"
2735

28-
#: c:\source\oc\okapi\okapi/services/caches/geocaches.php:1043
36+
#: c:\source\oc\okapi\okapi/services/caches/geocaches.php:1063
2937
#, php-format
3038
msgid "Your own custom coordinates for the %s geocache"
3139
msgstr "Die Koordinaten für den Geocache %s aus deiner persönlichen Notiz"
3240

33-
#: c:\source\oc\okapi\okapi/services/caches/geocaches.php:1201
41+
#: c:\source\oc\okapi\okapi/services/caches/geocaches.php:1223
3442
msgid "National Park / Landscape"
3543
msgstr "Nationalpark / Landschaft"
3644

37-
#: c:\source\oc\okapi\okapi/services/caches/geocaches.php:1375
45+
#: c:\source\oc\okapi\okapi/services/caches/geocaches.php:1397
3846
#, php-format
3947
msgid ""
4048
"This <a href='%s'>geocache</a> description comes from the <a href='%s'>%s</"
4149
"a> site."
4250
msgstr ""
4351
"Diese <a href='%s'>Cache</a>-Beschreibung stammt von <a href='%s'>%s</a>."
4452

45-
#: c:\source\oc\okapi\okapi/services/caches/geocaches.php:1387
53+
#: c:\source\oc\okapi\okapi/services/caches/geocaches.php:1409
4654
#, php-format
4755
msgid ""
4856
"&copy; <a href='%s'>%s</a>, <a href='%s'>%s</a>, <a href='http://"
@@ -53,7 +61,7 @@ msgstr ""
5361
"creativecommons.org/licenses/by-nc-nd/3.0/de/'>CC-BY-NC-ND</a>, Stand: %s; "
5462
"alle Logeinträge &copy; jeweiliger Autor"
5563

56-
#: c:\source\oc\okapi\okapi/services/caches/geocaches.php:1398
64+
#: c:\source\oc\okapi\okapi/services/caches/geocaches.php:1420
5765
#, php-format
5866
msgid ""
5967
"&copy; <a href='%s'>%s</a>, <a href='%s'>%s</a>, <a href='http://"
@@ -64,27 +72,27 @@ msgstr ""
6472
"creativecommons.org/licenses/by-nc-nd/3.0/de/'>CC-BY-NC-ND</a>; alle "
6573
"Logeinträge &copy; jeweiliger Autor"
6674

67-
#: c:\source\oc\okapi\okapi/services/caches/formatters/gpx.php:388
75+
#: c:\source\oc\okapi\okapi/services/caches/formatters/gpx.php:408
6876
msgid ""
6977
"<b>Geocache coordinates have been changed.</b> They have been replaced with "
7078
"your own custom coordinates which you have provided for this geocache."
7179
msgstr ""
7280
"<b>Die Koordinaten des Geocaches wurden geändert.</b> Sie wurden durch deine "
7381
"eigenen Koordinaten aus der persönlichen Notiz für diesen Cache ersetzt."
7482

75-
#: c:\source\oc\okapi\okapi/services/caches/formatters/gpx.php:394
83+
#: c:\source\oc\okapi\okapi/services/caches/formatters/gpx.php:414
7684
msgid ""
7785
"<b>Geocache coordinates have been changed.</b> Currently they point to one "
7886
"of the alternate waypoints originally described as:"
7987
msgstr ""
8088
"<b>Die Koordinaten des Geocaches wurden geändert.</b> Sie zeigen zurzeit auf "
8189
"einen der zusätzlichen Wegpunkte mit der ursprünglichen Beschreibung:"
8290

83-
#: c:\source\oc\okapi\okapi/services/caches/formatters/gpx.php:407
91+
#: c:\source\oc\okapi\okapi/services/caches/formatters/gpx.php:427
8492
msgid "Original geocache location"
8593
msgstr "Originalposition des Caches"
8694

87-
#: c:\source\oc\okapi\okapi/services/caches/formatters/gpx.php:409
95+
#: c:\source\oc\okapi\okapi/services/caches/formatters/gpx.php:429
8896
#, php-format
8997
msgid "Original (owner-supplied) location of the %s geocache"
9098
msgstr "Originale, vom Besitzer angegebene Position des Geocaches %s"
@@ -145,23 +153,23 @@ msgid "The cache probably is located in the following protection areas:"
145153
msgstr ""
146154
"Der Geocache befindet sich wahrscheinlich in den folgenden Schutzgebieten:"
147155

148-
#: c:\source\oc\okapi\okapi/services/logs/submit.php:70
156+
#: c:\source\oc\okapi\okapi/services/logs/submit.php:75
149157
msgid ""
150158
"You are trying to publish a log entry with a date in future. Cache log "
151159
"entries are allowed to be published in the past, but NOT in the future."
152160
msgstr ""
153161
"Das Datum deines Logeintrags liegt in der Zukunft. Cache-Logs können nur für "
154162
"die Vergangenheit oder für heute eingetragen werden."
155163

156-
#: c:\source\oc\okapi\okapi/services/logs/submit.php:92
164+
#: c:\source\oc\okapi\okapi/services/logs/submit.php:111
157165
#, php-format
158166
msgid ""
159167
"However, your cache rating was ignored, because %s does not have a rating "
160168
"system."
161169
msgstr ""
162170
"Deine Cachewertung wurde jedoch ignoriert, weil %s kein Bewertungssystem hat."
163171

164-
#: c:\source\oc\okapi\okapi/services/logs/submit.php:111
172+
#: c:\source\oc\okapi\okapi/services/logs/submit.php:136
165173
#, php-format
166174
msgid ""
167175
"However, your cache recommendation was ignored, because %s does not allow "
@@ -170,7 +178,7 @@ msgstr ""
170178
"Deine Empfehlung wurde jedoch ignoriert, weil auf %s keine Event-Caches "
171179
"empfohlen werden können."
172180

173-
#: c:\source\oc\okapi\okapi/services/logs/submit.php:125
181+
#: c:\source\oc\okapi\okapi/services/logs/submit.php:158
174182
#, php-format
175183
msgid ""
176184
"However, your \"needs maintenance\" flag was ignored, because %s does not "
@@ -179,74 +187,83 @@ msgstr ""
179187
"Deine Angabe \"benötigt Wartung\" wurde jedoch ignoriert, weil es diese "
180188
"Funktion bei %s nicht gibt."
181189

182-
#: c:\source\oc\okapi\okapi/services/logs/submit.php:145
190+
#: c:\source\oc\okapi\okapi/services/logs/submit.php:171
191+
#, php-format
192+
msgid ""
193+
"However, your \"does not need maintenance\" flag was ignored, because %s "
194+
"does not support this feature."
195+
msgstr ""
196+
"Deine Angabe \"benötigt Wartung\" wurde jedoch ignoriert, weil es diese "
197+
"Funktion bei %s nicht gibt. "
198+
199+
#: c:\source\oc\okapi\okapi/services/logs/submit.php:201
183200
msgid ""
184201
"This cache is an Event cache. You cannot \"Find\" it (but you can attend it, "
185202
"or comment on it)!"
186203
msgstr ""
187204
"Dies ist ein Event-Cache. Du kannst ihn nicht \"finden\" (aber du kannst am "
188205
"Event teilnehmen oder einen Hinweis loggen)."
189206

190-
#: c:\source\oc\okapi\okapi/services/logs/submit.php:150
207+
#: c:\source\oc\okapi\okapi/services/logs/submit.php:210
191208
msgid ""
192209
"This cache is NOT an Event cache. You cannot \"Attend\" it (but you can find "
193210
"it, or comment on it)!"
194211
msgstr ""
195212
"Dies ist KEIN Event-Cache. Du kannst an ihm nicht \"teilnehmen\" (aber du "
196213
"kannst ihn finden oder kommentieren)."
197214

198-
#: c:\source\oc\okapi\okapi/services/logs/submit.php:155
215+
#: c:\source\oc\okapi\okapi/services/logs/submit.php:220
199216
msgid "Your have to supply some text for your comment."
200217
msgstr "Du musst einen Text für dein Hinweislog eingeben!"
201218

202-
#: c:\source\oc\okapi\okapi/services/logs/submit.php:168
219+
#: c:\source\oc\okapi\okapi/services/logs/submit.php:236
203220
msgid "This cache requires a password. You didn't provide one!"
204221
msgstr ""
205222
"Dieser Cache kann nur mit Kennwort geloggt werden, aber du hast keines "
206223
"angegeben."
207224

208-
#: c:\source\oc\okapi\okapi/services/logs/submit.php:170
225+
#: c:\source\oc\okapi\okapi/services/logs/submit.php:240
209226
msgid "Invalid password!"
210227
msgstr "Ungültiges Kennwort!"
211228

212-
#: c:\source\oc\okapi\okapi/services/logs/submit.php:285
229+
#: c:\source\oc\okapi\okapi/services/logs/submit.php:385
213230
msgid "You have already submitted a log entry with exactly the same contents."
214231
msgstr ""
215232
"Du hast bereits einen Logeintrag mit genau dem gleichen Inhalt gemacht."
216233

217-
#: c:\source\oc\okapi\okapi/services/logs/submit.php:308
234+
#: c:\source\oc\okapi\okapi/services/logs/submit.php:412
218235
msgid ""
219236
"You have already submitted a \"Found it\" log entry once. Now you may submit "
220237
"\"Comments\" only!"
221238
msgstr ""
222239
"Du hast diesen Cache bereits als gefunden geloggt. Ein zweites Fundlog ist "
223240
"nicht möglich, aber du kannst stattdessen einen Hinweis loggen."
224241

225-
#: c:\source\oc\okapi\okapi/services/logs/submit.php:310
242+
#: c:\source\oc\okapi\okapi/services/logs/submit.php:418
226243
msgid "You are the owner of this cache. You may submit \"Comments\" only!"
227244
msgstr ""
228245
"Als Besitzer des Caches kannst du nur Hinweise loggen, keine Funde oder "
229246
"Nichtfunde."
230247

231-
#: c:\source\oc\okapi\okapi/services/logs/submit.php:328
248+
#: c:\source\oc\okapi\okapi/services/logs/submit.php:440
232249
msgid "You have already rated this cache once. Your rating cannot be changed."
233250
msgstr ""
234251
"Du hast diesen Cache bereits bewertet. Deine Bewertung ist nicht änderbar."
235252

236-
#: c:\source\oc\okapi\okapi/services/logs/submit.php:345
253+
#: c:\source\oc\okapi\okapi/services/logs/submit.php:461
237254
msgid "You have already recommended this cache once."
238255
msgstr "Du hast diesen Cache bereits empfohlen."
239256

240-
#: c:\source\oc\okapi\okapi/services/logs/submit.php:355
257+
#: c:\source\oc\okapi\okapi/services/logs/submit.php:477
241258
msgid "You don't have any recommendations to give. Find more caches first!"
242259
msgstr ""
243260
"Du musst mehr Caches finden, um eine weitere Bewertung abgeben zu können!"
244261

245-
#: c:\source\oc\okapi\okapi/services/logs/submit.php:398
262+
#: c:\source\oc\okapi\okapi/services/logs/submit.php:528
246263
msgid "Event caches cannot \"need maintenance\"."
247264
msgstr "Event-Caches können keine \"Wartung benötigen\"."
248265

249-
#: c:\source\oc\okapi\okapi/services/logs/submit.php:528
266+
#: c:\source\oc\okapi\okapi/services/logs/submit.php:676
250267
msgid "Your cache log entry was posted successfully."
251268
msgstr "Dein Log wurde veröffentlicht."
252269

okapi/services/caches/geocaches.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ public static function call(OkapiRequest $request)
166166
c.terrain, c.wp_oc, c.wp_gc, c.logpw, c.user_id,
167167
if(c.search_time=0, null, c.search_time) as trip_time,
168168
if(c.way_length=0, null, c.way_length) as trip_distance,
169+
c.listing_outdated,
169170
170171
ifnull(sc.toprating, 0) as topratings,
171172
ifnull(sc.found, 0) as founds,
@@ -198,6 +199,7 @@ public static function call(OkapiRequest $request)
198199
c.terrain, c.wp_oc, c.wp_gc, c.logpw, c.user_id,
199200
if(c.search_time=0, null, c.search_time) as trip_time,
200201
if(c.way_length=0, null, c.way_length) as trip_distance,
202+
0 as listing_outdated,
201203
202204
c.topratings,
203205
c.founds,
@@ -217,6 +219,7 @@ public static function call(OkapiRequest $request)
217219
$results = new ArrayObject();
218220
$cacheid2wptcode = array();
219221
$owner_ids = array();
222+
$outdated_listings = array();
220223
while ($row = Db::fetch_assoc($rs))
221224
{
222225
$entry = array();
@@ -348,6 +351,8 @@ public static function call(OkapiRequest $request)
348351
}
349352
}
350353
$results[$row['wp_oc']] = $entry;
354+
if ($row['listing_outdated'] > 0)
355+
$outdated_listings[] = $row['wp_oc'];
351356
}
352357
Db::free_result($rs);
353358

@@ -524,6 +529,14 @@ public static function call(OkapiRequest $request)
524529

525530
$tmp = Okapi::fix_oc_html($row['desc']);
526531

532+
if (in_array($cache_code, $outdated_listings))
533+
{
534+
$tmp = "<p style='color:#c00000'><strong>" .
535+
_('Parts of this geocache listing may be outdated.') . "</strong> " .
536+
_('See the log entries for more information.') . "</p>\n" .
537+
$tmp;
538+
}
539+
527540
if ($attribution_append != 'none')
528541
{
529542
$tmp .= "\n<p><em>".

0 commit comments

Comments
 (0)