From b8efd9b5b98cf94989a6e7d9892bf495fd9431dc Mon Sep 17 00:00:00 2001 From: Juan Leyva Date: Wed, 20 Nov 2024 11:45:00 +0100 Subject: [PATCH] MOBILE-4676: Change lang strings to use LMS strings when available --- scripts/langindex.json | 24 +++++++++---------- src/addons/block/myoverview/lang.json | 2 +- src/addons/messages/lang.json | 2 +- src/addons/mod/glossary/lang.json | 2 +- .../glossary/tests/behat/navigation.feature | 8 +++---- 5 files changed, 19 insertions(+), 19 deletions(-) diff --git a/scripts/langindex.json b/scripts/langindex.json index 388c7dd06..9dee9eb3a 100644 --- a/scripts/langindex.json +++ b/scripts/langindex.json @@ -49,7 +49,7 @@ "addon.block_myoverview.hiddencourses": "block_myoverview", "addon.block_myoverview.inprogress": "block_myoverview", "addon.block_myoverview.lastaccessed": "block_myoverview", - "addon.block_myoverview.nocoursesenrolled": "local_moodlemobileapp", + "addon.block_myoverview.nocoursesenrolled": "grades/notenrolled", "addon.block_myoverview.nocoursesenrolleddescription": "local_moodlemobileapp", "addon.block_myoverview.noresult": "local_moodlemobileapp", "addon.block_myoverview.noresultdescription": "local_moodlemobileapp", @@ -312,7 +312,7 @@ "addon.messages.noindividualconversations": "message", "addon.messages.nomessagesfound": "message", "addon.messages.noncontacts": "message", - "addon.messages.nousersfound": "local_moodlemobileapp", + "addon.messages.nousersfound": "moodle", "addon.messages.numparticipants": "message", "addon.messages.pendingcontactrequests": "message", "addon.messages.removecontact": "message", @@ -326,10 +326,10 @@ "addon.messages.selfconversationdefaultmessage": "message", "addon.messages.sendcontactrequest": "message", "addon.messages.showdeletemessages": "local_moodlemobileapp", - "addon.messages.type_blocked": "local_moodlemobileapp", - "addon.messages.type_offline": "local_moodlemobileapp", - "addon.messages.type_online": "local_moodlemobileapp", - "addon.messages.type_search": "local_moodlemobileapp", + "addon.messages.type_blocked": "message/blockedusers", + "addon.messages.type_offline": "message/offline", + "addon.messages.type_online": "message/online", + "addon.messages.type_search": "moodle/searchresults", "addon.messages.type_strangers": "local_moodlemobileapp", "addon.messages.unabletomessage": "message", "addon.messages.unblockuser": "message", @@ -677,7 +677,7 @@ "addon.mod_forum.favourites": "forum", "addon.mod_forum.favouriteupdated": "forum", "addon.mod_forum.forumnodiscussionsyet": "local_moodlemobileapp", - "addon.mod_forum.group": "local_moodlemobileapp", + "addon.mod_forum.group": "moodle", "addon.mod_forum.lastpost": "forum", "addon.mod_forum.lockdiscussion": "forum", "addon.mod_forum.lockupdated": "forum", @@ -744,7 +744,7 @@ "addon.mod_glossary.linking": "glossary", "addon.mod_glossary.modulenameplural": "glossary", "addon.mod_glossary.noentriesfound": "local_moodlemobileapp", - "addon.mod_glossary.searchquery": "local_moodlemobileapp", + "addon.mod_glossary.searchquery": "search/enteryoursearchquery", "addon.mod_glossary.tagarea_glossary_entries": "glossary", "addon.mod_h5pactivity.all_attempts": "h5pactivity", "addon.mod_h5pactivity.answer_checked": "h5pactivity", @@ -1022,7 +1022,7 @@ "addon.mod_survey.ipreferthat": "survey", "addon.mod_survey.modulenameplural": "survey", "addon.mod_survey.responses": "survey", - "addon.mod_survey.results": "local_moodlemobileapp", + "addon.mod_survey.results": "choice", "addon.mod_survey.surveycompletednograph": "survey", "addon.mod_url.accessurl": "local_moodlemobileapp", "addon.mod_url.modulenameplural": "url", @@ -1141,7 +1141,7 @@ "addon.notifications.errorgetnotifications": "local_moodlemobileapp", "addon.notifications.markallread": "moodle", "addon.notifications.notificationpreferences": "message", - "addon.notifications.notifications": "local_moodlemobileapp", + "addon.notifications.notifications": "moodle", "addon.notifications.playsound": "local_moodlemobileapp", "addon.notifications.therearentnotificationsyet": "local_moodlemobileapp", "addon.notifications.typeofnotification": "local_moodlemobileapp", @@ -1668,7 +1668,7 @@ "core.courses.completeenrolmentbrowser": "local_moodlemobileapp", "core.courses.courses": "moodle", "core.courses.downloadcourses": "local_moodlemobileapp", - "core.courses.enrolme": "local_moodlemobileapp", + "core.courses.enrolme": "enrol", "core.courses.errorloadcategories": "local_moodlemobileapp", "core.courses.errorloadcourses": "local_moodlemobileapp", "core.courses.errorloadplugins": "local_moodlemobileapp", @@ -1821,7 +1821,7 @@ "core.filenotfound": "resource", "core.fileuploader.addfiletext": "repository", "core.fileuploader.attachedfiles": "repository", - "core.fileuploader.audio": "local_moodlemobileapp", + "core.fileuploader.audio": "tiny_media", "core.fileuploader.audiotitle": "tiny_recordrtc", "core.fileuploader.camera": "local_moodlemobileapp", "core.fileuploader.confirmuploadfile": "local_moodlemobileapp", diff --git a/src/addons/block/myoverview/lang.json b/src/addons/block/myoverview/lang.json index 3738950f0..b0bb089c3 100644 --- a/src/addons/block/myoverview/lang.json +++ b/src/addons/block/myoverview/lang.json @@ -9,7 +9,7 @@ "hiddencourses": "Removed from view", "inprogress": "In progress", "lastaccessed": "Last accessed", - "nocoursesenrolled": "You're not enrolled in any courses yet.", + "nocoursesenrolled": "You are currently not enrolled in any courses.", "nocoursesenrolleddescription": "Browse all available courses below and start learning.", "noresult": "Your search didn't match any courses.", "noresultdescription": "Try adjusting your filters or browse all courses below.", diff --git a/src/addons/messages/lang.json b/src/addons/messages/lang.json index b63ffa55c..cd8698320 100644 --- a/src/addons/messages/lang.json +++ b/src/addons/messages/lang.json @@ -64,7 +64,7 @@ "selfconversationdefaultmessage": "Save draft messages, links, notes etc. to access later.", "sendcontactrequest": "Send contact request", "showdeletemessages": "Show delete messages", - "type_blocked": "Blocked", + "type_blocked": "Blocked users", "type_offline": "Offline", "type_online": "Online", "type_search": "Search results", diff --git a/src/addons/mod/glossary/lang.json b/src/addons/mod/glossary/lang.json index c380778c6..feba50587 100644 --- a/src/addons/mod/glossary/lang.json +++ b/src/addons/mod/glossary/lang.json @@ -32,6 +32,6 @@ "linking": "Auto-linking", "modulenameplural": "Glossaries", "noentriesfound": "No entries were found.", - "searchquery": "Search query", + "searchquery": "Enter your search query", "tagarea_glossary_entries": "Glossary entries" } diff --git a/src/addons/mod/glossary/tests/behat/navigation.feature b/src/addons/mod/glossary/tests/behat/navigation.feature index bbaaccde6..6a410b31c 100644 --- a/src/addons/mod/glossary/tests/behat/navigation.feature +++ b/src/addons/mod/glossary/tests/behat/navigation.feature @@ -146,11 +146,11 @@ Feature: Test glossary navigation When I go back in the app And I scroll to "Acerola" in the app And I press "Search" in the app - And I set the field "Search query" to "something" in the app + And I set the field "Enter your search query" to "something" in the app And I press enter Then I should find "No entries were found." in the app - When I set the field "Search query" to "melon" in the app + When I set the field "Enter your search query" to "melon" in the app And I press enter Then I should find "Honeydew Melon" in the app And I should find "Watermelon" in the app @@ -265,11 +265,11 @@ Feature: Test glossary navigation # Search When I press "Search" in the app - And I set the field "Search query" to "something" in the app + And I set the field "Enter your search query" to "something" in the app And I press enter Then I should find "No entries were found." in the app - When I set the field "Search query" to "melon" in the app + When I set the field "Enter your search query" to "melon" in the app And I press enter Then I should find "Honeydew Melon" in the app And I should find "Watermelon" in the app