Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #3384 : Arranged string resources based on screens #4823

Closed
wants to merge 181 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
181 commits
Select commit Hold shift + click to select a range
f8ee55f
fixed text cut off
MohitGupta121 May 25, 2022
d4bcf1d
Merge branch 'oppia:develop' into develop
MohitGupta121 May 25, 2022
bb3d3d4
fix text cutoff in all layouts
MohitGupta121 May 28, 2022
7153aef
Merge branch 'oppia:develop' into develop
MohitGupta121 May 28, 2022
4113302
add proper naming
MohitGupta121 May 28, 2022
c033a39
Merge branch 'develop' of https://github.com/MohitGupta121/oppia-andr…
MohitGupta121 May 28, 2022
9ea9d7c
Merge branch 'oppia:develop' into develop
MohitGupta121 Jun 6, 2022
8ba669b
Merge branch 'oppia:develop' into develop
MohitGupta121 Jun 8, 2022
7dc1b4a
Merge branch 'oppia:develop' into develop
MohitGupta121 Jun 14, 2022
0708dd6
Merge branch 'oppia:develop' into develop
MohitGupta121 Jun 23, 2022
2f3b9ec
Merge branch 'oppia:develop' into develop
MohitGupta121 Jul 1, 2022
ce3872a
develop updated
MohitGupta121 Jul 6, 2022
12bb87f
minor changes
MohitGupta121 Jul 6, 2022
690ba7e
Merge branch 'oppia:develop' into develop
MohitGupta121 Jul 12, 2022
bce7b61
Merge branch 'oppia:develop' into develop
MohitGupta121 Jul 12, 2022
9912ffc
Merge branch 'oppia:develop' into develop
MohitGupta121 Jul 22, 2022
f48f663
Merge branch 'oppia:develop' into develop
MohitGupta121 Aug 11, 2022
dacc6ee
Merge branch 'oppia:develop' into develop
MohitGupta121 Aug 16, 2022
656c283
Merge branch 'oppia:develop' into develop
MohitGupta121 Aug 17, 2022
f40026f
Merge branch 'oppia:develop' into develop
MohitGupta121 Aug 24, 2022
5461595
Merge branch 'oppia:develop' into develop
MohitGupta121 Aug 24, 2022
57268f3
Merge branch 'oppia:develop' into develop
MohitGupta121 Aug 25, 2022
b6b2363
Merge branch 'oppia:develop' into develop
MohitGupta121 Aug 30, 2022
0c77b97
Merge branch 'oppia:develop' into develop
MohitGupta121 Sep 3, 2022
53ea822
Merge branch 'oppia:develop' into develop
MohitGupta121 Sep 7, 2022
cc61a49
Merge branch 'oppia:develop' into develop
MohitGupta121 Sep 7, 2022
da20047
Merge branch 'oppia:develop' into develop
MohitGupta121 Sep 8, 2022
119cc0f
Merge branch 'oppia:develop' into develop
MohitGupta121 Sep 9, 2022
c39d761
Merge branch 'oppia:develop' into develop
MohitGupta121 Sep 13, 2022
bcbbe75
Merge branch 'oppia:develop' into develop
MohitGupta121 Sep 15, 2022
0cd7c77
Merge branch 'oppia:develop' into develop
MohitGupta121 Sep 16, 2022
af82314
Merge branch 'oppia:develop' into develop
MohitGupta121 Sep 20, 2022
9c9325e
Merge branch 'oppia:develop' into develop
MohitGupta121 Sep 22, 2022
4afb67f
Merge branch 'oppia:develop' into develop
MohitGupta121 Sep 23, 2022
9470168
Merge branch 'oppia:develop' into develop
MohitGupta121 Sep 25, 2022
9f8dc02
Merge branch 'oppia:develop' into develop
MohitGupta121 Oct 3, 2022
77108da
Merge branch 'oppia:develop' into develop
MohitGupta121 Oct 11, 2022
8147a38
Merge branch 'oppia:develop' into develop
MohitGupta121 Oct 18, 2022
e3bc8d8
Refac: Strings File Arragned
MohitGupta121 Oct 18, 2022
c960247
Merge branch 'oppia:develop' into develop
MohitGupta121 Oct 19, 2022
b9a8ebb
Merge remote-tracking branch 'origin/develop' into string_arrange
MohitGupta121 Oct 19, 2022
4b15b26
Merge branch 'oppia:develop' into string_arrange
MohitGupta121 Oct 19, 2022
ba32c86
Refc: Alphabets wise strings arranged
MohitGupta121 Oct 19, 2022
d7efb88
Merge remote-tracking branch 'origin/string_arrange' into string_arrange
MohitGupta121 Oct 19, 2022
36cf793
Refec: Strings Arranged according to activity
MohitGupta121 Oct 24, 2022
c935f08
Refec: build failed fixed
MohitGupta121 Oct 24, 2022
77e6007
Merge branch 'oppia:develop' into develop
MohitGupta121 Oct 31, 2022
79c8778
Refac: resolve conflict, replace test strings
MohitGupta121 Oct 31, 2022
2b8bf6c
Refac: fixed robolectric test strings not founds
MohitGupta121 Oct 31, 2022
e6329de
Refac: duplicate string remove, string not found fixed
MohitGupta121 Oct 31, 2022
2465b11
Refac: string not found fixed
MohitGupta121 Oct 31, 2022
dd8f042
Refac: unresolved string resolved
MohitGupta121 Oct 31, 2022
96dbf50
Merge branch 'oppia:develop' into develop
MohitGupta121 Nov 1, 2022
5ebb605
minor changes
MohitGupta121 Nov 1, 2022
6090de1
Refec: Resolved Conflicts
MohitGupta121 Nov 1, 2022
f95c272
Refac: minor fixes
MohitGupta121 Nov 1, 2022
444b3e7
Refac: lint failed fixed
MohitGupta121 Nov 1, 2022
7e76429
Refac: minor fix
MohitGupta121 Nov 1, 2022
42be212
Refac: fixed lint issue
MohitGupta121 Nov 1, 2022
ea2df4a
Refac: fixed some lint issue
MohitGupta121 Nov 1, 2022
660a94e
Lint fixed (
MohitGupta121 Nov 2, 2022
13347c5
Refac: Strings Lint updated 100 char
MohitGupta121 Nov 2, 2022
8ce252d
Refac: arrange strings as per lint
MohitGupta121 Nov 2, 2022
f701455
Fixed strings as per lint
MohitGupta121 Nov 2, 2022
07eac88
minor fixes
MohitGupta121 Nov 2, 2022
9e3787d
lint fix
MohitGupta121 Nov 2, 2022
863f4ca
Merge branch 'oppia:develop' into develop
MohitGupta121 Nov 12, 2022
c67079f
Refec: Resolved Conflict
MohitGupta121 Nov 12, 2022
2ca2f0f
Refec: Linit Fixed
MohitGupta121 Nov 12, 2022
272bcdb
Refec: reference failed
MohitGupta121 Nov 12, 2022
bac4eb5
Merge branch 'oppia:develop' into develop
MohitGupta121 Nov 18, 2022
bfb5c2a
Merge branch 'oppia:develop' into develop
MohitGupta121 Nov 22, 2022
fd177db
Merge branch 'oppia:develop' into develop
MohitGupta121 Nov 25, 2022
9c2b62b
Refec: Resolve conflicts
MohitGupta121 Nov 25, 2022
d2c8b3a
Refec: unknown reference fixed
MohitGupta121 Nov 25, 2022
1c64914
Merge branch 'oppia:develop' into develop
MohitGupta121 Nov 29, 2022
4f5076f
Rebase Upstream-Resolve conflict
MohitGupta121 Dec 2, 2022
a76d906
Refac: arrange strings and untranslated strings
MohitGupta121 Dec 2, 2022
368679b
Merge branch 'oppia:develop' into develop
MohitGupta121 Dec 6, 2022
2ccb654
Merge branch 'oppia:develop' into develop
MohitGupta121 Dec 9, 2022
d48b4fa
Merge branch 'oppia:develop' into develop
MohitGupta121 Dec 11, 2022
aa56028
Refec: Resolve Conflicts
MohitGupta121 Dec 14, 2022
1456119
Fix ExplorationActivityTest Failing
MohitGupta121 Dec 14, 2022
2834337
Refec: Fixed PolicyTest Failed
MohitGupta121 Dec 14, 2022
be02709
Fixed untranslated strings errors
MohitGupta121 Dec 14, 2022
b5a6e67
rename not reference strings
MohitGupta121 Dec 17, 2022
7ee48ac
Lint fix
MohitGupta121 Dec 17, 2022
778e37b
Lint fix
MohitGupta121 Dec 17, 2022
a16d6e6
Lint fix
MohitGupta121 Dec 17, 2022
0b47109
Merge branch 'oppia:develop' into develop
MohitGupta121 Dec 18, 2022
4e4e8b6
Lint Fixed Imports
MohitGupta121 Dec 20, 2022
7ffb0d5
Refec: Conflict Resolved
MohitGupta121 Dec 20, 2022
7a5dcd0
Lint Fixed Imports
MohitGupta121 Dec 21, 2022
f4e7af8
Merge branch 'oppia:develop' into develop
MohitGupta121 Dec 21, 2022
2deecd6
Merge branch 'oppia:develop' into develop
MohitGupta121 Dec 22, 2022
b01118b
Refec: Resolve Conflict
MohitGupta121 Dec 22, 2022
d228c6e
Refec: Lint Fixed Imports
MohitGupta121 Dec 22, 2022
59d3d18
Refec: Lint Fixed Imports
MohitGupta121 Dec 22, 2022
181efd8
test
MohitGupta121 Dec 22, 2022
738eea6
Refec: Lint Fixed Imports
MohitGupta121 Dec 22, 2022
c45014b
Refec: Lint Fixed Imports
MohitGupta121 Dec 22, 2022
57e9ee5
Fixed Import Lint
MohitGupta121 Dec 26, 2022
0c97c2c
Fixed Import Lint
MohitGupta121 Dec 26, 2022
5afa8b6
Fixed Import Lint
MohitGupta121 Dec 26, 2022
6211828
Fixed Lint
MohitGupta121 Dec 27, 2022
713b834
Merge branch 'oppia:develop' into develop
MohitGupta121 Dec 28, 2022
b034d82
Merge branch 'oppia:develop' into develop
MohitGupta121 Dec 29, 2022
edff0b5
Merge branch 'oppia:develop' into develop
MohitGupta121 Dec 29, 2022
06b4ad9
Refec: Resolved Conflicts
MohitGupta121 Dec 29, 2022
b86931b
Merge branch 'oppia:develop' into develop
MohitGupta121 Dec 30, 2022
2ec19d6
Merge branch 'oppia:develop' into develop
MohitGupta121 Jan 1, 2023
c265c85
Refac: Resolve Conflicts
MohitGupta121 Jan 1, 2023
fdc28f7
Rebase upstream
MohitGupta121 Jan 3, 2023
c180328
Refac: Resolve Conflicts
MohitGupta121 Jan 1, 2023
03b4bad
Merge remote-tracking branch 'origin/develop' into develop
MohitGupta121 Jan 3, 2023
504c2c0
Merge remote-tracking branch 'origin/develop' into string_arrange
MohitGupta121 Jan 3, 2023
8a668ee
Merge remote-tracking branch 'origin/string_arrange' into string_arrange
MohitGupta121 Jan 3, 2023
864cb40
fixed text cut off
MohitGupta121 May 25, 2022
bb5d6f2
fix text cutoff in all layouts
MohitGupta121 May 28, 2022
536eaa3
add proper naming
MohitGupta121 May 28, 2022
911cd5d
develop updated
MohitGupta121 Jul 6, 2022
136a052
Merge remote-tracking branch 'origin/develop' into develop
MohitGupta121 Jan 6, 2023
5988765
Merge branch 'oppia:develop' into develop
MohitGupta121 Jan 7, 2023
bbab289
fixed text cut off
MohitGupta121 May 25, 2022
a272075
fix text cutoff in all layouts
MohitGupta121 May 28, 2022
d270552
add proper naming
MohitGupta121 May 28, 2022
07e345f
develop updated
MohitGupta121 Jul 6, 2022
f254260
fixed text cut off
MohitGupta121 May 25, 2022
0feeb33
fix text cutoff in all layouts
MohitGupta121 May 28, 2022
5ed10da
add proper naming
MohitGupta121 May 28, 2022
7577b1b
develop updated
MohitGupta121 Jul 6, 2022
8974dc3
Merge remote-tracking branch 'origin/develop' into develop
MohitGupta121 Jan 7, 2023
9dc5427
Merge remote-tracking branch 'upstream/develop' into develop
MohitGupta121 Jan 9, 2023
d284c8d
Merge branch 'oppia:develop' into develop
MohitGupta121 Jan 10, 2023
1dd3633
Merge remote-tracking branch 'upstream/develop' into string_arrange
MohitGupta121 Jan 10, 2023
a35b927
Fix newly added naming and conflicts
MohitGupta121 Jan 10, 2023
7a98f9e
Merge branch 'develop' into string_arrange
MohitGupta121 Jan 11, 2023
19e3bfe
Merge branch 'oppia:develop' into develop
MohitGupta121 Jan 12, 2023
69eb1ce
Merge branch 'oppia:develop' into develop
MohitGupta121 Jan 14, 2023
be5daf6
Refac: Update branch - Resolve conflicts
MohitGupta121 Jan 15, 2023
14253fc
Merge branch 'oppia:develop' into develop
MohitGupta121 Jan 18, 2023
21ef75d
Refac: Resolve conflicts - update branch
MohitGupta121 Jan 18, 2023
db33d19
Merge branch 'develop' into string_arrange
MohitGupta121 Jan 26, 2023
d291c68
Merge branch 'oppia:develop' into develop
MohitGupta121 Jan 26, 2023
aef8992
Merge branch 'oppia:develop' into develop
MohitGupta121 Jan 29, 2023
b0bfa56
Update branch - Resolve conflicts
MohitGupta121 Jan 29, 2023
63316ae
Merge branch 'oppia:develop' into develop
MohitGupta121 Jan 31, 2023
5b1994d
Update Branch - Resolve Conflicts
MohitGupta121 Jan 31, 2023
0953aab
Fixed unresolved strings
MohitGupta121 Jan 31, 2023
f88114f
Merge branch 'oppia:develop' into develop
MohitGupta121 Feb 17, 2023
56bcd83
Update branch- Resolve conflicts
MohitGupta121 Feb 22, 2023
9e65504
Fixed Resource linking failed
MohitGupta121 Feb 22, 2023
3c76aae
Merge branch 'develop' into string_arrange
MohitGupta121 Feb 27, 2023
a8a9129
Resolve conflit update branch
MohitGupta121 Mar 6, 2023
79a0ac7
Merge branch 'oppia:develop' into develop
MohitGupta121 Mar 17, 2023
23c7482
Remove unused strings
MohitGupta121 May 1, 2023
6a26be8
Merge branch 'oppia:develop' into develop
MohitGupta121 May 1, 2023
772d218
Update branch with develop
MohitGupta121 May 1, 2023
eeead8c
Fixed some review changes
MohitGupta121 May 1, 2023
a7c465a
Fix robolectric error
MohitGupta121 May 1, 2023
22f6984
update branch and resolve conflicts
MohitGupta121 May 9, 2023
583b748
Merge remote-tracking branch 'origin/develop' into string_arrange
MohitGupta121 May 13, 2023
f6ccd3e
Merge branch 'develop' into string_arrange
MohitGupta121 May 13, 2023
a564556
Merge remote-tracking branch 'origin/string_arrange' into string_arrange
MohitGupta121 May 13, 2023
0dea12b
Resolve conflict and update branch
MohitGupta121 May 23, 2023
2a38722
Update branch and Resolve conflict
MohitGupta121 May 29, 2023
2e01f0e
update un_translated strings files with upstream
MohitGupta121 Jun 6, 2023
f1f32f9
Merge branch 'develop' into string_arrange
MohitGupta121 Jun 9, 2023
ffbb650
Resolve PR conflicts
MohitGupta121 Jun 16, 2023
4739454
Merge remote-tracking branch 'origin/string_arrange' into string_arrange
MohitGupta121 Jun 16, 2023
bf7750c
Update the branch with upstream develop
MohitGupta121 Jul 1, 2023
d6278e9
upadted latest strings
MohitGupta121 Jul 11, 2023
d2918cd
Fix unresolved strings
MohitGupta121 Jul 11, 2023
362f701
Fix unresolved strings
MohitGupta121 Jul 11, 2023
6493cba
update branch and conflicts reolved
MohitGupta121 Jul 25, 2023
93ef558
fix all Ben review changes and update branch
MohitGupta121 Aug 2, 2023
297df5c
fix lint check 100 lines
MohitGupta121 Aug 2, 2023
e153619
Merge branch 'develop' into string_arrange
MohitGupta121 Aug 2, 2023
3855988
Merge branch 'develop' into string_arrange
MohitGupta121 Aug 4, 2023
7ae745e
update branch with develop
MohitGupta121 Aug 22, 2023
d1b196f
Merge remote-tracking branch 'origin/string_arrange' into string_arrange
MohitGupta121 Aug 22, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
android:value="2020-09-01" />
<activity
android:name=".app.administratorcontrols.AdministratorControlsActivity"
android:label="@string/administrator_controls_title"
android:label="@string/administrator_controls_activity_label_title"
android:theme="@style/OppiaThemeWithoutActionBar" />
<activity
android:name=".app.testing.AdministratorControlsFragmentTestActivity"
Expand All @@ -38,27 +38,27 @@
android:theme="@style/OppiaThemeWithoutActionBar" />
<activity
android:name=".app.administratorcontrols.appversion.AppVersionActivity"
android:label="@string/app_version_activity_title"
android:label="@string/administrator_controls_app_version_activity_app_version_activity_label_title"
android:theme="@style/OppiaThemeWithoutActionBar" />
<activity
android:name=".app.administratorcontrols.learneranalytics.ProfileAndDeviceIdActivity"
android:label="@string/profile_and_device_id_activity_title"
android:theme="@style/OppiaThemeWithoutActionBar"/>
<activity
android:name=".app.completedstorylist.CompletedStoryListActivity"
android:label="@string/completed_story_list_activity_title"
android:label="@string/completed_story_list_activity_toolbar_title"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The label should be for the activity and not title.

android:theme="@style/OppiaThemeWithoutActionBar" />
<activity
android:name=".app.help.faq.FAQListActivity"
android:label="@string/faq_activity_title"
android:label="@string/faq_single_activity_title"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
android:label="@string/faq_single_activity_title"
android:label="@string/faq_list_activity_title"

android:theme="@style/OppiaThemeWithoutActionBar" />
<activity
android:name=".app.help.faq.faqsingle.FAQSingleActivity"
android:label="@string/faq_activity_title"
android:label="@string/faq_single_activity_title"
android:theme="@style/OppiaThemeWithoutActionBar" />
<activity
android:name=".app.help.HelpActivity"
android:label="@string/help_activity_title"
android:label="@string/help_activity_label_title"
android:theme="@style/OppiaThemeWithoutActionBar" />
<activity
android:name=".app.help.thirdparty.LicenseListActivity"
Expand All @@ -74,7 +74,7 @@
android:theme="@style/OppiaThemeWithoutActionBar" />
<activity
android:name=".app.home.HomeActivity"
android:label="@string/home_activity_title"
android:label="@string/home_activity_label_title"
android:theme="@style/OppiaThemeWithoutActionBar" />
<activity
android:name=".app.home.recentlyplayed.RecentlyPlayedActivity"
Expand Down Expand Up @@ -114,7 +114,7 @@
android:theme="@style/OppiaThemeWithoutActionBar" />
<activity
android:name=".app.options.ReadingTextSizeActivity"
android:label="@string/reading_text_size_activity_title"
android:label="@string/reading_text_size"
Copy link
Collaborator

@adhiamboperes adhiamboperes Oct 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make sure that the activity/toolbar title strings are not confused with the label strings that are used in the options fragment. I think you will notice that you need 2 seperate strings for this.

android:theme="@style/OppiaThemeWithoutActionBar" />
<activity
android:name=".app.player.exploration.ExplorationActivity"
Expand All @@ -128,7 +128,7 @@
<activity android:name=".app.player.state.testing.StateFragmentTestActivity" />
<activity
android:name=".app.profile.AddProfileActivity"
android:label="@string/add_profile_activity_label"
android:label="@string/add_profile_activity_label_text"
android:theme="@style/OppiaThemeWithoutActionBarColorAccentColorPrimary" />
<activity
android:name=".app.profile.AdminAuthActivity"
Expand All @@ -137,16 +137,16 @@
android:windowSoftInputMode="adjustResize" />
<activity
android:name=".app.profile.AdminPinActivity"
android:label="@string/admin_pin_activity_title"
android:label="@string/admin_pin_activity_label_text"
android:windowSoftInputMode="adjustResize" />
<activity
android:name=".app.profile.PinPasswordActivity"
android:label="@string/pin_password_activity_title"
android:label="@string/pin_password_activity_pin_password_activity_label_title"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does not conform to the expected pattern.

android:theme="@style/OppiaThemeWithoutActionBar"
android:windowSoftInputMode="adjustResize" />
<activity
android:name=".app.profile.ProfileChooserActivity"
android:label="@string/profile_chooser_activity_label"
android:label="@string/profile_chooser_activity_label_text"
android:theme="@style/OppiaThemeWithoutActionBar" />
<activity
android:name=".app.profileprogress.ProfilePictureActivity"
Expand Down Expand Up @@ -244,11 +244,11 @@
<activity android:name=".app.testing.SplashTestActivity" />
<activity
android:name=".app.topic.TopicActivity"
android:label="@string/topic_page"
android:label="@string/topic_activity_topic_page_label_text"
android:theme="@style/OppiaThemeWithoutActionBar" />
<activity
android:name=".app.walkthrough.WalkthroughActivity"
android:label="@string/walkthrough_activity_title"
android:label="@string/walkthrough_activity_label_text"
android:theme="@style/OppiaThemeWithoutActionBar" />
<activity android:name=".app.testing.LessonThumbnailImageViewTestActivity" />
<activity
Expand Down Expand Up @@ -294,7 +294,7 @@
android:name=".app.devoptions.forcenetworktype.testing.ForceNetworkTypeTestActivity"
android:theme="@style/OppiaThemeWithoutActionBar" />
<activity android:name=".app.policies.PoliciesActivity"
android:label="@string/policy_activity_title"
android:label="@string/policy_activity_label_title"
android:theme="@style/OppiaThemeWithoutActionBar" />
<activity
android:name=".app.devoptions.mathexpressionparser.MathExpressionParserActivity"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class AdministratorControlsActivity :
selectedProfileId,
isProfileDeletionDialogVisible
)
title = resourceHandler.getStringInLocale(R.string.administrator_controls)
title = resourceHandler.getStringInLocale(R.string.administrator_controls_activity_label_title)
}

override fun routeToAppVersion() {
Expand Down Expand Up @@ -146,7 +146,9 @@ class AdministratorControlsActivity :
lastLoadedFragment = PROFILE_LIST_FRAGMENT
administratorControlsActivityPresenter
.setExtraControlsTitle(
resourceHandler.getStringInLocale(R.string.administrator_controls_edit_profiles)
resourceHandler.getStringInLocale(
R.string.administrator_controls_activity_profile_view_administrator_edit_profiles
)
)
administratorControlsActivityPresenter.loadProfileList()
}
Expand All @@ -155,7 +157,9 @@ class AdministratorControlsActivity :
lastLoadedFragment = APP_VERSION_FRAGMENT
administratorControlsActivityPresenter
.setExtraControlsTitle(
resourceHandler.getStringInLocale(R.string.administrator_controls_app_version)
resourceHandler.getStringInLocale(
R.string.administrator_controls_activity_app_information_view_app_version
)
)
administratorControlsActivityPresenter.loadAppVersion()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,9 @@ class AdministratorControlsActivityPresenter @Inject constructor(
when (currentFragment) {
is ProfileEditFragment -> {
setExtraControlsTitle(
resourceHandler.getStringInLocale(R.string.administrator_controls_edit_profiles)
resourceHandler.getStringInLocale(
R.string.administrator_controls_activity_profile_view_administrator_edit_profiles
)
)
loadProfileList()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,15 @@ class LogoutDialogFragment : InjectableDialogFragment() {

override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
return AlertDialog.Builder(requireContext(), R.style.OppiaAlertDialogTheme)
.setMessage(R.string.log_out_dialog_message)
.setNegativeButton(R.string.log_out_dialog_cancel_button) { dialog, _ ->
.setMessage(R.string.administrator_controls_activity_log_out_dialog_fragment_message)
.setNegativeButton(
R.string.administrator_controls_activity_log_out_dialog_fragment_cancel_button
) { dialog, _ ->
dialog.dismiss()
}
.setPositiveButton(R.string.log_out_dialog_okay_button) { _, _ ->
.setPositiveButton(
R.string.administrator_controls_activity_log_out_dialog_fragment_okay_button
) { _, _ ->
val intent = ProfileChooserActivity.createProfileChooserActivity(activity!!)
startActivity(intent)
}.create()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,15 @@ class AppVersionViewModel @Inject constructor(

/** Returns a localized, human-readable app version name. */
fun computeVersionNameText(): String =
resourceHandler.getStringInLocaleWithWrapping(R.string.app_version_name, versionName)
resourceHandler.getStringInLocaleWithWrapping(
R.string.administrator_controls_app_version_activity_app_version_name, versionName
)

/** Returns a localized, human-readable lastUpdateDateTime. */
fun computeLastUpdatedDateText(): String =
resourceHandler.getStringInLocaleWithWrapping(
R.string.app_last_update_date, getDateTime(lastUpdateDateTime)
R.string.administrator_controls_app_version_activity_app_last_update_date,
getDateTime(lastUpdateDateTime)
)

private fun getDateTime(lastUpdateTime: Long): String =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ class ChapterNotStartedContainerConstraintLayout @JvmOverloads constructor(
isSpotlit = true
val spotlightTarget = SpotlightTarget(
this,
resourceHandler.getStringInLocale(R.string.first_chapter_spotlight_hint),
resourceHandler.getStringInLocale(
R.string.topic_activity_first_chapter_spotlight_hint
),
feature = Spotlight.FeatureCase.FIRST_CHAPTER
)
if (index == 0) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ class PromotedStoryCardView @JvmOverloads constructor(
isSpotlit = true
val spotlightTarget = SpotlightTarget(
this,
resourceHandler.getStringInLocale(R.string.promoted_story_spotlight_hint),
resourceHandler.getStringInLocale(
R.string.home_activity_promoted_story_spotlight_hint
),
feature = Spotlight.FeatureCase.PROMOTED_STORIES
)
checkNotNull(getSpotlightManager()).requestSpotlightViewWithDelayedLayout(spotlightTarget)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,15 @@ private static String getTimeAgo(View view, long lastVisitedTimestamp) {
AppLanguageResourceHandler resourceHandler = getResourceHandler(view);

if (timeStampMillis > currentTimeMillis || timeStampMillis <= 0) {
return resourceHandler.getStringInLocale(R.string.last_logged_in_recently);
return resourceHandler.getStringInLocale(
R.string.text_view_binding_adapters_activity_last_logged_in_recently);
}

long timeDifferenceMillis = currentTimeMillis - timeStampMillis;

if (timeDifferenceMillis < (int) TimeUnit.MINUTES.toMillis(1)) {
return resourceHandler.getStringInLocale(R.string.just_now);
return resourceHandler.getStringInLocale(
R.string.text_view_binding_adapters_activity_just_now);
} else if (timeDifferenceMillis < TimeUnit.MINUTES.toMillis(50)) {
return getPluralString(
resourceHandler,
Expand All @@ -93,7 +95,8 @@ private static String getTimeAgo(View view, long lastVisitedTimestamp) {
(int) TimeUnit.MILLISECONDS.toHours(timeDifferenceMillis)
);
} else if (timeDifferenceMillis < TimeUnit.DAYS.toMillis(2)) {
return resourceHandler.getStringInLocale(R.string.yesterday);
return resourceHandler.getStringInLocale(
R.string.text_view_binding_adapters_activity_yesterday);
}
return getPluralString(
resourceHandler,
Expand All @@ -109,7 +112,7 @@ private static String getPluralString(
) {
// TODO(#3841): Combine these strings together.
return resourceHandler.getStringInLocaleWithWrapping(
R.string.time_ago,
R.string.text_view_binding_adapters_activity_time_ago,
resourceHandler.getQuantityStringInLocaleWithWrapping(
pluralsResId, count, String.valueOf(count)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,15 @@ class ExitProfileDialogFragment : InjectableDialogFragment() {

val alertDialog = AlertDialog
.Builder(ContextThemeWrapper(activity as Context, R.style.OppiaAlertDialogTheme))
.setMessage(R.string.home_activity_back_dialog_message)
.setNegativeButton(R.string.home_activity_back_dialog_cancel) { dialog, _ ->
.setMessage(R.string.exit_profile_dialog_fragment_home_activity_back_dialog_message)
.setNegativeButton(
R.string.exit_profile_dialog_fragment_home_activity_back_dialog_cancel
) { dialog, _ ->
dialog.dismiss()
}
.setPositiveButton(R.string.home_activity_back_dialog_exit) { _, _ ->
.setPositiveButton(
R.string.exit_profile_dialog_fragment_home_activity_back_dialog_exit
) { _, _ ->
// TODO(#3641): Investigate on using finish instead of intent.
val intent = ProfileChooserActivity.createProfileChooserActivity(activity!!)
if (!restoreLastCheckedItem) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -412,8 +412,8 @@ class NavigationDrawerFragmentPresenter @Inject constructor(
fragment.activity,
drawerLayout,
toolbar,
R.string.drawer_open_content_description,
R.string.drawer_close_content_description
R.string.navigation_drawer_activity_drawer_open_content_description,
R.string.navigation_drawer_activity_drawer_close_content_description
) {
override fun onDrawerOpened(drawerView: View) {
super.onDrawerOpened(drawerView)
Expand Down Expand Up @@ -451,8 +451,8 @@ class NavigationDrawerFragmentPresenter @Inject constructor(
fragment.activity,
drawerLayout,
toolbar,
R.string.drawer_open_content_description,
R.string.drawer_close_content_description
R.string.navigation_drawer_activity_drawer_open_content_description,
R.string.navigation_drawer_activity_drawer_close_content_description
) {
override fun onDrawerOpened(drawerView: View) {
super.onDrawerOpened(drawerView)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ class NavigationDrawerHeaderViewModel @Inject constructor(
resourceHandler.getQuantityStringInLocaleWithWrapping(
R.plurals.ongoing_topic_count, ongoingTopicCount, ongoingTopicCount.toString()
)
val barSeparator = resourceHandler.getStringInLocale(R.string.bar_separator)
val barSeparator = resourceHandler.getStringInLocale(
R.string.navigation_drawer_activity_bar_separator
)
return "$completedStoryCountText$barSeparator$ongoingTopicCountText"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class HelpActivity :
savedInstanceState?.getInt(THIRD_PARTY_DEPENDENCY_INDEX_SAVED_KEY) ?: 0
val selectedLicenseIndex = savedInstanceState?.getInt(LICENSE_INDEX_SAVED_KEY) ?: 0
selectedHelpOptionsTitle = savedInstanceState?.getStringFromBundle(HELP_OPTIONS_TITLE_SAVED_KEY)
?: resourceHandler.getStringInLocale(R.string.faq_activity_title)
?: resourceHandler.getStringInLocale(R.string.faq_single_activity_title)
val policiesActivityParams = savedInstanceState?.getProto(
POLICIES_ARGUMENT_PROTO,
PoliciesActivityParams.getDefaultInstance()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,11 @@ class HelpActivityPresenter @Inject constructor(
}

private fun selectFAQListFragment() {
setMultipaneContainerTitle(resourceHandler.getStringInLocale(R.string.faq_activity_title))
setMultipaneContainerTitle(
resourceHandler.getStringInLocale(
R.string.faq_single_activity_title
)
)
setMultipaneBackButtonVisibility(View.GONE)
selectedFragmentTag = FAQ_LIST_FRAGMENT_TAG
selectedHelpOptionTitle = getMultipaneContainerTitle()
Expand Down Expand Up @@ -337,12 +341,12 @@ class HelpActivityPresenter @Inject constructor(
private fun selectPoliciesFragment(policyPage: PolicyPage) {
when (policyPage) {
PolicyPage.PRIVACY_POLICY -> setMultipaneContainerTitle(
resourceHandler.getStringInLocale(R.string.privacy_policy_title)
resourceHandler.getStringInLocale(R.string.privacy_policy_activity_title)
)
PolicyPage.TERMS_OF_SERVICE -> setMultipaneContainerTitle(
resourceHandler.getStringInLocale(R.string.terms_of_service_title)
resourceHandler.getStringInLocale(R.string.terms_of_service_activity_title)
)
else -> { }
else -> {}
}
setMultipaneBackButtonVisibility(View.GONE)
selectedFragmentTag = POLICIES_FRAGMENT_TAG
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ class HelpItemViewModel(
) : ObservableViewModel() {
fun onClick(title: String) {
when (title) {
resourceHandler.getStringInLocale(R.string.frequently_asked_questions_FAQ) -> {
resourceHandler.getStringInLocale(
R.string.help_activity_frequently_asked_questions_FAQ_text
) -> {
if (isMultipane) {
val loadFaqListFragmentListener = activity as LoadFaqListFragmentListener
loadFaqListFragmentListener.loadFaqListFragment()
Expand All @@ -36,10 +38,10 @@ class HelpItemViewModel(
routeToThirdPartyDependencyListListener.onRouteToThirdPartyDependencyList()
}
}
resourceHandler.getStringInLocale(R.string.privacy_policy_title) -> {
resourceHandler.getStringInLocale(R.string.privacy_policy_activity_title) -> {
loadPolicyPage(PolicyPage.PRIVACY_POLICY)
}
resourceHandler.getStringInLocale(R.string.terms_of_service_title) -> {
resourceHandler.getStringInLocale(R.string.terms_of_service_activity_title) -> {
loadPolicyPage(PolicyPage.TERMS_OF_SERVICE)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,17 @@ class HelpListViewModel @Inject constructor(
private fun getRecyclerViewItemList(): ArrayList<HelpItemViewModel> {
for (item in HelpItems.values()) {
val category = when (item) {
HelpItems.FAQ -> resourceHandler.getStringInLocale(R.string.frequently_asked_questions_FAQ)
HelpItems.FAQ -> resourceHandler.getStringInLocale(
R.string.help_activity_frequently_asked_questions_FAQ_text
)
HelpItems.THIRD_PARTY -> resourceHandler.getStringInLocale(
R.string.third_party_dependency_list_activity_title
)
HelpItems.PRIVACY_POLICY -> resourceHandler.getStringInLocale(
R.string.privacy_policy_title
R.string.privacy_policy_activity_title
)
HelpItems.TERMS_OF_SERVICE -> resourceHandler.getStringInLocale(
R.string.terms_of_service_title
R.string.terms_of_service_activity_title
)
}
arrayList += HelpItemViewModel(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class HintsAndSolutionDialogFragmentPresenter @Inject constructor(
HintsAndSolutionFragmentBinding.inflate(inflater, container, /* attachToRoot= */ false)
binding.hintsAndSolutionToolbar.setNavigationIcon(R.drawable.ic_close_white_24dp)
binding.hintsAndSolutionToolbar.setNavigationContentDescription(
R.string.hints_and_solution_close_icon_description
R.string.reveal_solution_dialog_fragment_close_icon_description
)
binding.hintsAndSolutionToolbar.setNavigationOnClickListener {
(fragment.requireActivity() as? HintsAndSolutionListener)?.dismiss()
Expand Down
Loading
Loading