From c45184cbf19cf41d3d6fbaf200454ae8c56a9760 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Brzozowski?= Date: Sat, 13 May 2023 23:17:13 +0200 Subject: [PATCH] [strings][editor][android] Localize opening hours picker MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Brzozowski --- .../editor/HoursMinutesPickerFragment.java | 5 +- data/strings/strings.txt | 80 +++++++++++++++++++ 2 files changed, 82 insertions(+), 3 deletions(-) diff --git a/android/src/app/organicmaps/editor/HoursMinutesPickerFragment.java b/android/src/app/organicmaps/editor/HoursMinutesPickerFragment.java index 18045e86b9..3708921150 100644 --- a/android/src/app/organicmaps/editor/HoursMinutesPickerFragment.java +++ b/android/src/app/organicmaps/editor/HoursMinutesPickerFragment.java @@ -140,15 +140,14 @@ public class HoursMinutesPickerFragment extends BaseMwmDialogFragment mTabs = root.findViewById(R.id.tabs); TextView tabView = (TextView) inflater.inflate(R.layout.tab_timepicker, mTabs, false); - // TODO @yunik add translations - tabView.setText("From"); + tabView.setText(getResources().getString(R.string.editor_time_from)); final ColorStateList textColor = AppCompatResources.getColorStateList(requireContext(), ThemeUtils.isNightTheme(requireContext()) ? R.color.accent_color_selector_night : R.color.accent_color_selector); tabView.setTextColor(textColor); mTabs.addTab(mTabs.newTab().setCustomView(tabView), true); tabView = (TextView) inflater.inflate(R.layout.tab_timepicker, mTabs, false); - tabView.setText("To"); + tabView.setText(getResources().getString(R.string.editor_time_to)); tabView.setTextColor(textColor); mTabs.addTab(mTabs.newTab().setCustomView(tabView), true); mTabs.setOnTabSelectedListener(new TabLayout.OnTabSelectedListener() diff --git a/data/strings/strings.txt b/data/strings/strings.txt index 7d206b433c..585cde514d 100644 --- a/data/strings/strings.txt +++ b/data/strings/strings.txt @@ -9843,6 +9843,86 @@ zh-Hans = 下一页 zh-Hant = 下一頁 + [editor_time_from] + comment = Tab title in the Edit Opening Hours time picker + tags = android + en = From + ar = من الساعة + be = З + bg = От + ca = De + cs = Od + da = Fra + de = Von + el = Από τις + es = De + et = Kell + eu = etatik + fa = از ساعت + fi = alkaen + fr = De + he = משעה + hu = tól + id = Dari pukul + it = Dalle + ja = から + ko = 부터 + mr = ते + nb = Fra + nl = Van + pl = Od + pt = Das + ro = De la + ru = С + sk = Od + sv = Från + th = เวลา + tr = Den itibaren + uk = З + vi = Từ + zh-Hans = 从 + zh-Hant = 從 + + [editor_time_to] + comment = Tab title in the Edit Opening Hours time picker + tags = android + en = To + ar = إلى + be = Да + bg = До + ca = A + cs = Do + da = Til + de = Bis + el = Έως Τις + es = A + et = Kuni + eu = Etara + fa = الی + fi = Asti + fr = À + he = עד + hu = Ig + id = Hingga + it = Alle + ja = まで + ko = 까지 + mr = पर्यंत + nb = Til + nl = Tot + pl = Do + pt = Às + ro = La + ru = До + sk = Do + sv = Till + th = น + tr = A + uk = До + vi = Đến + zh-Hans = 到 + zh-Hant = 到 + [editor_time_add] tags = android,ios en = Add Schedule