@@ -16,7 +16,37 @@ Feature: Test language changes
1616 And I press "Canvia a Català" in the app
1717 And I wait the app to restart
1818
19+ # core.courses.mycourses text
1920 Then I should find "Els meus cursos" in the app
2021
21- When I change language to "es" in the app
22- Then I should find "Mis cursos" in the app
22+ # Test parent language
23+ When I change language to "de-du" in the app
24+ # Find an specific text for German (du) translation.
25+ And I press the more menu button in the app
26+ # addon.blog.siteblogheading text from original German translation.
27+ And I press "Website-Blog" in the app
28+ # addon.blog.showonlyyourentries text from original German (du) translation.
29+ Then I should find "Nur deine Beiträge anzeigen" in the app
30+ But I should not find "Nur Ihre Beiträge anzeigen" in the app
31+
32+ Scenario : Custom lang strings
33+ Given I log in as "admin"
34+ And I navigate to "General > Mobile app > Mobile features" in site administration
35+ And I set the field "Custom language strings" to multiline:
36+ """
37+ core.courses.mycourses|Foo|en
38+ core.courses.mycourses| Foo amb espais |ca
39+ addon.block_timeline.pluginname| No content here |en_us
40+ """
41+ And I press "Save changes"
42+
43+ When I entered the app as "student1"
44+ Then I should be able to press "Foo" in the app
45+ Then I should not find "No content here" in the app
46+
47+ When I change language to "ca" in the app
48+ Then I should be able to press "Foo amb espais" in the app
49+
50+ When I change language to "en_us" in the app
51+ Then I should be able to press "Foo" in the app
52+ Then I should find "No content here" in the app
0 commit comments