Skip to content

Commit

Permalink
Fixes #5484: Multiple substitutions specified in non-positional forma…
Browse files Browse the repository at this point in the history
…t of st… (#5560)

## 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
<!-- Please tick the relevant boxes by putting an "x" in them. -->
- [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 <[email protected]>
  • Loading branch information
jainv4156 and adhiamboperes authored Nov 4, 2024
1 parent 2ba2cbc commit 55ab73e
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,11 @@
<string name="ongoing_topic_list_activity_title">Topics in Progress</string>
<string name="topic_story_progress_percentage">%s\%%</string>
<string name="topic_play_chapter_index">%s</string>
<string name="chapter_name">Chapter %s: %s</string>
<string name="chapter_completed">Chapter %s with title %s is completed</string>
<string name="chapter_in_progress">Chapter %s with title %s is in progress</string>
<string name="chapter_prerequisite_title_label">Complete Chapter %s: %s to unlock this chapter.</string>
<string name="chapter_locked_prerequisite_title_label">Chapter %s: %s is currently locked. Please complete chapter %s: %s to unlock this chapter.</string>
<string name="chapter_name">Chapter %1$s: %2$s</string>
<string name="chapter_completed">Chapter %1$s with title %2$s is completed</string>
<string name="chapter_in_progress">Chapter %1$s with title %2$s is in progress</string>
<string name="chapter_prerequisite_title_label">Complete Chapter %1$s: %2$s to unlock this chapter.</string>
<string name="chapter_locked_prerequisite_title_label">Chapter %1$s: %2$s is currently locked. Please complete chapter %3$s: %4$s to unlock this chapter.</string>
<string name="chapter_prerequisite_title_label_without_chapter_title">Complete the previous chapter to unlock this chapter.</string>
<string name="text_input_default_content_description">Enter text.</string>
<string name="fractions_default_hint_text">Enter a fraction in the form x/x, or a mixed number in the form x x/x.</string>
Expand Down Expand Up @@ -154,7 +154,7 @@
<string name="topic_downloaded">Topic Downloaded</string>
<string name="downloaded">Downloaded</string>
<string name="question_player_title">Practice Mode</string>
<string name="question_training_session_progress">Question %s of %s</string>
<string name="question_training_session_progress">Question %1$s of %2$s</string>
<string name="question_training_session_progress_finished">Complete</string>
<string name="question_training_session_finished_header">Finished</string>
<string name="question_training_session_finished_message">You have finished all of the questions! You can choose to play another set of questions, or return to the topic.</string>
Expand Down Expand Up @@ -190,7 +190,7 @@
<string name="size_gb">%s GB</string>
<string name="correct">Correct!</string>
<string name="topic_prefix">Topic: %s</string>
<string name="welcome_profile_name">%s %s!</string>
<string name="welcome_profile_name">%1$s %2$s!</string>
<plurals name="chapter_count">
<item quantity="one">1 Chapter</item>
<item quantity="other">%s Chapters</item>
Expand All @@ -200,8 +200,8 @@
<item quantity="other">%s Stories</item>
</plurals>
<plurals name="story_total_chapters">
<item quantity="one">%s of %s Chapter Completed</item>
<item quantity="other">%s of %s Chapters Completed</item>
<item quantity="one">%1$s of %2$s Chapter Completed</item>
<item quantity="other">%1$s of %2$s Chapters Completed</item>
</plurals>
<plurals name="lesson_count">
<item quantity="one">1 Lesson</item>
Expand Down Expand Up @@ -280,7 +280,7 @@
<string name="skip">Skip</string>
<string name="next_arrow">Next</string>
<string name="get_started">Get Started</string>
<string name="onboarding_slide_dots_content_description">Slide %s of %s</string>
<string name="onboarding_slide_dots_content_description">Slide %1$s of %2$s</string>
<!-- PinPasswordActivity -->
<string name="pin_password_hello">Hi, %s!</string>
<string name="pin_password_admin_enter">Please enter your Administrator PIN.</string>
Expand Down Expand Up @@ -465,7 +465,7 @@
<string name="move_item_up_content_description">Move item up to %s</string>
<string name="up_button_disabled">Up</string>
<string name="down_button_disabled">Down</string>
<string name="profile_last_visited">%s %s</string>
<string name="profile_last_visited">%1$s %2$s</string>
<plurals name="minutes_ago">
<item quantity="one">a minute ago</item>
<item quantity="other">%s minutes ago</item>
Expand Down

0 comments on commit 55ab73e

Please sign in to comment.