From 4871353ba73480382f2c1439885f4f356a287340 Mon Sep 17 00:00:00 2001 From: HissPirat Date: Thu, 16 Jul 2020 13:09:56 +0200 Subject: [PATCH] #2179 added tab restored string resource --- .../org/kiwix/kiwixmobile/core/main/CoreReaderFragment.java | 2 +- core/src/main/res/values-qq/strings.xml | 1 + core/src/main/res/values/strings.xml | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/org/kiwix/kiwixmobile/core/main/CoreReaderFragment.java b/core/src/main/java/org/kiwix/kiwixmobile/core/main/CoreReaderFragment.java index 2d8d178fe..5d24166ba 100644 --- a/core/src/main/java/org/kiwix/kiwixmobile/core/main/CoreReaderFragment.java +++ b/core/src/main/java/org/kiwix/kiwixmobile/core/main/CoreReaderFragment.java @@ -910,7 +910,7 @@ public abstract class CoreReaderFragment extends BaseFragment webViewList.add(index, tempWebViewForUndo); tabsAdapter.notifyDataSetChanged(); - Snackbar.make(snackbarRoot, "Tab restored", Snackbar.LENGTH_SHORT).show(); + Snackbar.make(snackbarRoot, R.string.tab_restored, Snackbar.LENGTH_SHORT).show(); setUpWebViewWithTextToSpeech(); updateBottomToolbarVisibility(); contentFrame.addView(tempWebViewForUndo); diff --git a/core/src/main/res/values-qq/strings.xml b/core/src/main/res/values-qq/strings.xml index a70271670..c13cf8036 100644 --- a/core/src/main/res/values-qq/strings.xml +++ b/core/src/main/res/values-qq/strings.xml @@ -45,6 +45,7 @@ {{Identical|Previous}} This is the past participle of the verb “to leave” (meaning “quitted” or “exited”). This is used in a context of “X minutes left” to finish a download. {{Identical|Yesterday}} + Tell the user that a tab has been restored. TODO: Unclear, must be documented. See https://github.com/kiwix/overview/issues/31 {{Identical|Save}} This is used in the start server dialog and leads the user to mobile hotspot settings when pressed diff --git a/core/src/main/res/values/strings.xml b/core/src/main/res/values/strings.xml index e878586c5..172cd5478 100644 --- a/core/src/main/res/values/strings.xml +++ b/core/src/main/res/values/strings.xml @@ -283,6 +283,7 @@ Reader No open book Open library + Tab restored @string/on @string/off