From 8f53190474f4c04460b1f1e41b62fea1e1a3ad0e Mon Sep 17 00:00:00 2001 From: Alexander Borsuk Date: Tue, 10 Jan 2023 08:34:10 +0100 Subject: [PATCH 1/4] [strings] Fixed wrong cemetery translation Signed-off-by: Alexander Borsuk --- data/strings/types_strings.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/data/strings/types_strings.txt b/data/strings/types_strings.txt index 63aabd71b6..ec705f9ecb 100644 --- a/data/strings/types_strings.txt +++ b/data/strings/types_strings.txt @@ -12263,7 +12263,6 @@ [type.landuse.cemetery.christian] ref = type.amenity.grave_yard.christian - en = Cementerio cristiano nl = Christelijke begraafplaats [type.landuse.churchyard] -- 2.45.3 From e2a5d9bd9fddf7db95448f7d5e00adaab50fdcd8 Mon Sep 17 00:00:00 2001 From: Alexander Borsuk Date: Tue, 10 Jan 2023 08:37:41 +0100 Subject: [PATCH 2/4] [strings] Regenerated Signed-off-by: Alexander Borsuk --- android/res/values/strings.xml | 2 +- data/sound-strings/fi.json/localize.json | 22 +++++++++---------- .../en.lproj/Localizable.strings | 2 +- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/android/res/values/strings.xml b/android/res/values/strings.xml index 459c32f2d9..1da5826b6e 100644 --- a/android/res/values/strings.xml +++ b/android/res/values/strings.xml @@ -1290,7 +1290,7 @@ Cemetery - Cementerio cristiano + Christian Graveyard Churchyard Commercial Area Construction diff --git a/data/sound-strings/fi.json/localize.json b/data/sound-strings/fi.json/localize.json index 3540c0e8bd..0e5fb80c1d 100644 --- a/data/sound-strings/fi.json/localize.json +++ b/data/sound-strings/fi.json/localize.json @@ -30,17 +30,17 @@ "in_2_5_kilometers":"Kahden ja puolen kilometrin päässä", "in_3_kilometers":"Kolmen kilometrin päässä", "then":"Sitten", -"take_the_1_exit":"Poistu seuraavassa liittymässä.", -"take_the_2_exit":"Poistu toisessa liittymässä.", -"take_the_3_exit":"Poistu kolmannessa liittymässä.", -"take_the_4_exit":"Poistu neljännessä liittymässä.", -"take_the_5_exit":"Poistu viidennessä liittymässä.", -"take_the_6_exit":"Poistu kuudennessa liittymässä.", -"take_the_7_exit":"Poistu seitsemännessä liittymässä.", -"take_the_8_exit":"Poistu kahdeksannessa liittymässä.", -"take_the_9_exit":"Poistu yhdeksännessä liittymässä.", -"take_the_10_exit":"Poistu kymmenennessä liittymässä.", -"take_the_11_exit":"Poistu yhdennessätoista liittymässä.", +"take_the_1_exit":"Poistu ensimmäisestä liittymästä.", +"take_the_2_exit":"Poistu toisesta liittymästä.", +"take_the_3_exit":"Poistu kolmannesta liittymästä.", +"take_the_4_exit":"Poistu neljännestä liittymästä.", +"take_the_5_exit":"Poistu viidennestä liittymästä.", +"take_the_6_exit":"Poistu kuudennesta liittymästä.", +"take_the_7_exit":"Poistu seitsemännestä liittymästä.", +"take_the_8_exit":"Poistu kahdeksannesta liittymästä.", +"take_the_9_exit":"Poistu yhdeksännestä liittymästä.", +"take_the_10_exit":"Poistu kymmenennestä liittymästä.", +"take_the_11_exit":"Poistu yhdennestätoista liittymästä.", "in_50_feet":"Viidenkymmenen jalan päässä", "in_100_feet":"Sadan jalan päässä", "in_200_feet":"Kahdensadan jalan päässä", diff --git a/iphone/Maps/LocalizedStrings/en.lproj/Localizable.strings b/iphone/Maps/LocalizedStrings/en.lproj/Localizable.strings index 34d7c99203..5c448ddcf6 100644 --- a/iphone/Maps/LocalizedStrings/en.lproj/Localizable.strings +++ b/iphone/Maps/LocalizedStrings/en.lproj/Localizable.strings @@ -2271,7 +2271,7 @@ "type.landuse.cemetery" = "Cemetery"; /* In most (European) countries, сemeteries are usually independent of places of worship (e.g. military cemeteries), while grave yards are usually the yard of a place of worship. */ -"type.landuse.cemetery.christian" = "Cementerio cristiano"; +"type.landuse.cemetery.christian" = "Christian Graveyard"; "type.landuse.churchyard" = "Churchyard"; -- 2.45.3 From 7d72795dd9d2843f53100bc58af5911b22811ee7 Mon Sep 17 00:00:00 2001 From: Alexander Borsuk Date: Tue, 10 Jan 2023 15:48:06 +0100 Subject: [PATCH 3/4] [linux] Approximate create time for older Linux versions Signed-off-by: Alexander Borsuk --- platform/platform_linux.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/platform/platform_linux.cpp b/platform/platform_linux.cpp index 2e4b9fc862..e86fb86cec 100644 --- a/platform/platform_linux.cpp +++ b/platform/platform_linux.cpp @@ -268,8 +268,15 @@ void Platform::GetSystemFontNames(FilesList & res) const // static time_t Platform::GetFileCreationTime(std::string const & path) { +// In older Linux versions there is no reliable way to get file creation time. +#if __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 28 struct statx st; if (0 == statx(AT_FDCWD, path.c_str(), 0, STATX_BTIME, &st)) return st.stx_btime.tv_sec; +#else + struct stat st; + if (0 == stat(path.c_str(), &st)) + return std::min(st.t_atim.tv_sec, st.t_mtim.tv_sec); +#endif return 0; } -- 2.45.3 From 8e20b6056f4e1cbe2ac763fdbeaf050c3132eee4 Mon Sep 17 00:00:00 2001 From: Alexander Borsuk <170263+biodranik@users.noreply.github.com> Date: Thu, 12 Jan 2023 07:54:38 +0100 Subject: [PATCH 4/4] Update platform/platform_linux.cpp Co-authored-by: Konstantin Pastbin --- platform/platform_linux.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/platform_linux.cpp b/platform/platform_linux.cpp index e86fb86cec..38b2a04b92 100644 --- a/platform/platform_linux.cpp +++ b/platform/platform_linux.cpp @@ -276,7 +276,7 @@ time_t Platform::GetFileCreationTime(std::string const & path) #else struct stat st; if (0 == stat(path.c_str(), &st)) - return std::min(st.t_atim.tv_sec, st.t_mtim.tv_sec); + return std::min(st.st_atim.tv_sec, st.st_mtim.tv_sec); #endif return 0; } -- 2.45.3