From 168c98dc4765eff3865f38b1a9ef364d7504824d Mon Sep 17 00:00:00 2001 From: jainv4156 <123441149+jainv4156@users.noreply.github.com> Date: Mon, 4 Nov 2024 17:15:42 +0530 Subject: [PATCH] =?UTF-8?q?Fixes=20#5484:=20Multiple=20substitutions=20spe?= =?UTF-8?q?cified=20in=20non-positional=20format=20of=20st=E2=80=A6=20(#55?= =?UTF-8?q?60)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Explanation Fixes : #5484 Some string resources have multiple %s . To fix the error, we must identify each string position with a number : %1$s ## Essential Checklist - [x] The PR title and explanation each start with "Fix #bugnum: " (If this PR fixes part of an issue, prefix the title with "Fix part of #bugnum: ...".) - [x] Any changes to [scripts/assets](https://github.com/oppia/oppia-android/tree/develop/scripts/assets) files have their rationale included in the PR explanation. - [x] The PR follows the [style guide](https://github.com/oppia/oppia-android/wiki/Coding-style-guide). - [x] The PR does not contain any unnecessary code changes from Android Studio ([reference](https://github.com/oppia/oppia-android/wiki/Guidance-on-submitting-a-PR#undo-unnecessary-changes)). - [x] The PR is made from a branch that's **not** called "develop" and is up-to-date with "develop". - [x] The PR is **assigned** to the appropriate reviewers ([reference](https://github.com/oppia/oppia-android/wiki/Guidance-on-submitting-a-PR#clarification-regarding-assignees-and-reviewers-section)). --------- Co-authored-by: Adhiambo Peres <59600948+adhiamboperes@users.noreply.github.com> --- app/src/main/res/values/strings.xml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index a1b7ad23201..0c43c5e2c26 100755 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -92,11 +92,11 @@ Topics in Progress %s\%% %s - Chapter %s: %s - Chapter %s with title %s is completed - Chapter %s with title %s is in progress - Complete Chapter %s: %s to unlock this chapter. - Chapter %s: %s is currently locked. Please complete chapter %s: %s to unlock this chapter. + Chapter %1$s: %2$s + Chapter %1$s with title %2$s is completed + Chapter %1$s with title %2$s is in progress + Complete Chapter %1$s: %2$s to unlock this chapter. + Chapter %1$s: %2$s is currently locked. Please complete chapter %3$s: %4$s to unlock this chapter. Complete the previous chapter to unlock this chapter. Enter text. Enter a fraction in the form x/x, or a mixed number in the form x x/x. @@ -154,7 +154,7 @@ Topic Downloaded Downloaded Practice Mode - Question %s of %s + Question %1$s of %2$s Complete Finished You have finished all of the questions! You can choose to play another set of questions, or return to the topic. @@ -190,7 +190,7 @@ %s GB Correct! Topic: %s - %s %s! + %1$s %2$s! 1 Chapter %s Chapters @@ -200,8 +200,8 @@ %s Stories - %s of %s Chapter Completed - %s of %s Chapters Completed + %1$s of %2$s Chapter Completed + %1$s of %2$s Chapters Completed 1 Lesson @@ -280,7 +280,7 @@ Skip Next Get Started - Slide %s of %s + Slide %1$s of %2$s Hi, %s! Please enter your Administrator PIN. @@ -465,7 +465,7 @@ Move item up to %s Up Down - %s %s + %1$s %2$s a minute ago %s minutes ago