From 9e47b96bbdc24e6d128a3b2a3b38f1b633ac522b Mon Sep 17 00:00:00 2001 From: Rd Date: Mon, 9 Oct 2023 19:22:59 +0530 Subject: [PATCH] Fixed Issue #5169 All warnings in Internationalization --- app/src/main/res/layout-land/profile_progress_header.xml | 1 + .../administrator_controls_learner_analytics_view.xml | 2 +- .../main/res/layout-sw600dp/profile_progress_header.xml | 1 + .../res/layout/activity_input_interaction_view_test.xml | 6 +++--- app/src/main/res/layout/add_profile_activity.xml | 1 + .../administrator_controls_learner_analytics_view.xml | 2 +- .../res/layout/concept_card_fragment_test_activity.xml | 4 ++-- app/src/main/res/layout/exploration_test_activity.xml | 2 +- app/src/main/res/layout/font_scale_test_activity.xml | 2 +- app/src/main/res/layout/profile_progress_header.xml | 1 + .../main/res/layout/spotlight_fragment_test_activity.xml | 2 +- app/src/main/res/layout/state_fragment_test_activity.xml | 2 +- app/src/main/res/values/strings.xml | 9 +++++++++ 13 files changed, 24 insertions(+), 11 deletions(-) diff --git a/app/src/main/res/layout-land/profile_progress_header.xml b/app/src/main/res/layout-land/profile_progress_header.xml index dda7af7e0ef..994327f7beb 100644 --- a/app/src/main/res/layout-land/profile_progress_header.xml +++ b/app/src/main/res/layout-land/profile_progress_header.xml @@ -42,6 +42,7 @@ android:contentDescription="@string/edit_profile_picture_content_description" android:onClick="@{() -> viewModel.clickOnProfilePicture()}" android:paddingStart="12dp" + android:paddingEnd="0dp" android:paddingTop="12dp" android:elevation="4dp" app:layout_constraintBottom_toBottomOf="@+id/profile_edit_image" diff --git a/app/src/main/res/layout-sw600dp/administrator_controls_learner_analytics_view.xml b/app/src/main/res/layout-sw600dp/administrator_controls_learner_analytics_view.xml index a2f180b75b1..5f8e0038e1d 100644 --- a/app/src/main/res/layout-sw600dp/administrator_controls_learner_analytics_view.xml +++ b/app/src/main/res/layout-sw600dp/administrator_controls_learner_analytics_view.xml @@ -26,7 +26,7 @@ android:paddingTop="28dp" android:paddingEnd="16dp" android:paddingBottom="20dp" - android:text="Learner Study Analytics" + android:text="@string/learner_analytics_title" android:textColor="@color/component_color_shared_active_text_color" app:layout_constraintBottom_toTopOf="@id/profile_and_device_id_text_view" app:layout_constraintEnd_toEndOf="parent" diff --git a/app/src/main/res/layout-sw600dp/profile_progress_header.xml b/app/src/main/res/layout-sw600dp/profile_progress_header.xml index eaf9b8db55c..9ca97de20d1 100644 --- a/app/src/main/res/layout-sw600dp/profile_progress_header.xml +++ b/app/src/main/res/layout-sw600dp/profile_progress_header.xml @@ -42,6 +42,7 @@ android:elevation="4dp" android:onClick="@{() -> viewModel.clickOnProfilePicture()}" android:paddingStart="12dp" + android:paddingEnd="0dp" android:paddingTop="12dp" app:layout_constraintBottom_toBottomOf="@+id/profile_edit_image" app:layout_constraintEnd_toEndOf="@+id/profile_edit_image" diff --git a/app/src/main/res/layout/activity_input_interaction_view_test.xml b/app/src/main/res/layout/activity_input_interaction_view_test.xml index 94fabcd6f7e..29bd469b246 100644 --- a/app/src/main/res/layout/activity_input_interaction_view_test.xml +++ b/app/src/main/res/layout/activity_input_interaction_view_test.xml @@ -122,7 +122,7 @@ android:layout_margin="8dp" android:background="@drawable/edit_text_background" android:focusable="true" - android:hint="Write the digit here." + android:hint="@string/text_number_input_hint" android:textColor="@color/component_color_shared_primary_text_color" android:textColorHint="@color/component_color_shared_edit_text_hint_color" android:longClickable="false" @@ -154,7 +154,7 @@ android:layout_margin="8dp" android:background="@drawable/edit_text_background" android:focusable="true" - android:hint="Write here." + android:hint="@string/text_text_input_hint" android:inputType="text" android:longClickable="false" android:maxLength="200" @@ -181,7 +181,7 @@ android:layout_height="wrap_content" android:layout_margin="8dp" android:onClick="getPendingAnswerErrorOnSubmitClick" - android:text="Submit" + android:text="@string/state_submit_button" android:textColor="@color/component_color_shared_secondary_4_text_color" /> diff --git a/app/src/main/res/layout/add_profile_activity.xml b/app/src/main/res/layout/add_profile_activity.xml index 417092d77a1..a3c2adc51e9 100644 --- a/app/src/main/res/layout/add_profile_activity.xml +++ b/app/src/main/res/layout/add_profile_activity.xml @@ -67,6 +67,7 @@ android:contentDescription="@string/edit_profile_picture_content_description" android:elevation="4dp" android:paddingStart="12dp" + android:paddingEnd="0dp" android:paddingTop="12dp" app:layout_constraintBottom_toBottomOf="@+id/add_profile_activity_user_image_view" app:layout_constraintEnd_toEndOf="@+id/add_profile_activity_user_image_view" diff --git a/app/src/main/res/layout/administrator_controls_learner_analytics_view.xml b/app/src/main/res/layout/administrator_controls_learner_analytics_view.xml index cef8061d1cc..d3332a605f7 100644 --- a/app/src/main/res/layout/administrator_controls_learner_analytics_view.xml +++ b/app/src/main/res/layout/administrator_controls_learner_analytics_view.xml @@ -22,7 +22,7 @@ android:paddingTop="28dp" android:paddingEnd="16dp" android:paddingBottom="20dp" - android:text="Learner Study Analytics" + android:text="@string/learner_analytics_title" android:textColor="@color/component_color_shared_active_text_color" app:layout_constraintBottom_toTopOf="@id/profile_and_device_id_text_view" app:layout_constraintEnd_toEndOf="parent" diff --git a/app/src/main/res/layout/concept_card_fragment_test_activity.xml b/app/src/main/res/layout/concept_card_fragment_test_activity.xml index 4894aac319d..0d206287bd0 100644 --- a/app/src/main/res/layout/concept_card_fragment_test_activity.xml +++ b/app/src/main/res/layout/concept_card_fragment_test_activity.xml @@ -7,13 +7,13 @@ android:id="@+id/open_dialog_0" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:text="Concept Card 1" + android:text="@string/concept_card_one" android:textAllCaps="false"/>