[gnome-maps] translations: Recognize 00:00-24:00 for opening hours
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps] translations: Recognize 00:00-24:00 for opening hours
- Date: Fri, 21 Oct 2016 07:16:44 +0000 (UTC)
commit 1595f81b3b07c0aef1385c6a9af32e94944bb445
Author: Marcus Lundblad <ml update uu se>
Date: Thu Oct 20 22:07:14 2016 +0200
translations: Recognize 00:00-24:00 for opening hours
Using 00:00-24:00 as value of the opening hours OSM tag
can be found, and seems to be valid as per the specification.
Treat this the same as "24/7" and "Mo-Su 00:00-24:00" and
show "around the clock".
https://bugzilla.gnome.org/show_bug.cgi?id=773289
src/translations.js | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/translations.js b/src/translations.js
index 3b78e91..bf142ab 100644
--- a/src/translations.js
+++ b/src/translations.js
@@ -51,9 +51,8 @@ let clockFormat = _desktopSettings.get_string(CLOCK_FORMAT_KEY);
* http://wiki.openstreetmap.org/wiki/Key:opening_hours
*/
function translateOpeningHours(string) {
- if (string === '24/7')
- return _("around the clock");
- else if (string === 'Mo-Su 00:00-24:00')
+ if (string === '24/7' || string === 'Mo-Su 00:00-24:00' ||
+ string === '00:00-24:00')
return _("around the clock");
else if (string === 'sunrise-sunset')
return _("from sunrise to sunset");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]