Skip to content

Commit 71ad6a2

Browse files
authored
Change hardcoded preferences strings to translatable messages (#6443)
1 parent e9a1af0 commit 71ad6a2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

app/src/main/res/values/strings.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,8 @@ Upload your first media by tapping on the add button.</string>
464464
<string name="ends_on">Ends on:</string>
465465
<string name="display_campaigns">Display campaigns</string>
466466
<string name="display_campaigns_explanation">See the ongoing campaigns</string>
467+
<string name="show_deletion_button">Show deletion button</string>
468+
<string name="show_deletion_button_explanation">Enable the \"Delete Folder\" button in the custom picker</string>
467469
<string name="in_app_camera_location_access_explanation">Allow the app to fetch location in case the camera does not record it. Some device cameras do not record location. In such cases, letting the app fetch and attach location to it makes your contribution more useful. You may change this any time from the Settings</string>
468470
<string name="option_allow">Allow</string>
469471
<string name="option_dismiss">Dismiss</string>

app/src/main/res/xml/preferences.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@
5555
android:defaultValue="false"
5656
android:key="displayDeletionButton"
5757
app:singleLineTitle="false"
58-
android:summary="Enable the &quot;Delete folder&quot; button in the custom picker"
59-
android:title="Show Deletion Button" />
58+
android:summary="@string/show_deletion_button_explanation"
59+
android:title="@string/show_deletion_button" />
6060

6161
</PreferenceCategory>
6262

0 commit comments

Comments
 (0)