Skip to content

Commit 5891c2e

Browse files
committed
MOBILE-4638 data: Remove deprecated language string
1 parent 361fa4e commit 5891c2e

File tree

7 files changed

+23
-23
lines changed

7 files changed

+23
-23
lines changed

scripts/langindex.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@
546546
"addon.mod_choice.userchoosethisoption": "choice",
547547
"addon.mod_choice.yourselection": "choice",
548548
"addon.mod_data.actionsmenu": "data",
549-
"addon.mod_data.addentries": "data",
549+
"addon.mod_data.add": "data",
550550
"addon.mod_data.advancedsearch": "data",
551551
"addon.mod_data.alttext": "data",
552552
"addon.mod_data.approve": "data",

src/addons/mod/data/components/index/addon-mod-data-index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<ion-icon name="fas-magnifying-glass" slot="icon-only" aria-hidden="true" />
55
</ion-button>
66
<core-context-menu>
7-
<core-context-menu-item [priority]="500" *ngIf="canAdd" [content]="'addon.mod_data.addentries' | translate" iconAction="fas-plus"
8-
(action)="gotoAddEntries()" />
7+
<core-context-menu-item [priority]="500" *ngIf="canAdd" [content]="'addon.mod_data.add' | translate" iconAction="fas-plus"
8+
(action)="gotoAddEntry()" />
99
<core-context-menu-item [priority]="400" *ngIf="firstEntry" [content]="'addon.mod_data.single' | translate" iconAction="fas-file"
1010
(action)="gotoEntry(firstEntry)" />
1111
</core-context-menu>
@@ -111,8 +111,8 @@
111111

112112

113113
<ion-fab slot="fixed" core-fab vertical="bottom" horizontal="end" *ngIf="canAdd">
114-
<ion-fab-button (click)="gotoAddEntries()" [attr.aria-label]="'addon.mod_data.addentries' | translate">
114+
<ion-fab-button (click)="gotoAddEntry()" [attr.aria-label]="'addon.mod_data.add' | translate">
115115
<ion-icon name="fas-plus" aria-hidden="true" />
116-
<span class="sr-only">{{ 'addon.mod_data.addentries' | translate }}</span>
116+
<span class="sr-only">{{ 'addon.mod_data.add' | translate }}</span>
117117
</ion-fab-button>
118118
</ion-fab>

src/addons/mod/data/components/index/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,9 +487,9 @@ export class AddonModDataIndexComponent extends CoreCourseModuleMainActivityComp
487487
}
488488

489489
/**
490-
* Opens add entries form.
490+
* Opens add entry form.
491491
*/
492-
gotoAddEntries(): void {
492+
gotoAddEntry(): void {
493493
const params: Params = {
494494
title: this.module.name,
495495
group: this.selectedGroup,

src/addons/mod/data/lang.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"actionsmenu": "Actions menu",
3-
"addentries": "Add entries",
3+
"add": "Add entry",
44
"advancedsearch": "Advanced search",
55
"alttext": "Alternative text",
66
"approve": "Approve",

src/addons/mod/data/tests/behat/entries.feature

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Feature: Users can manage entries in database activities
3030
Scenario: Create entry
3131
Given I entered the data activity "Web links" on course "Course 1" as "student1" in the app
3232
Then I should find "No entries yet" in the app
33-
When I press "Add entries" in the app
33+
When I press "Add entry" in the app
3434
And I set the following fields to these values in the app:
3535
| URL | https://moodle.org/ |
3636
| Description | Moodle community site |
@@ -48,13 +48,13 @@ Feature: Users can manage entries in database activities
4848
And I entered the data activity "Web links" on course "Course 1" as "student1" in the app
4949

5050
# TODO Create and use a generator for database entries.
51-
When I press "Add entries" in the app
51+
When I press "Add entry" in the app
5252
And I set the following fields to these values in the app:
5353
| URL | https://moodle.org/ |
5454
| Description | Moodle community site |
5555
And I press "Save" near "Web links" in the app
5656
And I entered the data activity "Web links" on course "Course 1" as "student2" in the app
57-
And I press "Add entries" in the app
57+
And I press "Add entry" in the app
5858
And I set the following fields to these values in the app:
5959
| URL | https://moodlecloud.com/ |
6060
| Description | Moodle Cloud |
@@ -80,7 +80,7 @@ Feature: Users can manage entries in database activities
8080
And I should find "Moodle Cloud" in the app
8181

8282
Given I entered the data activity "Data with comments" on course "Course 1" as "student1" in the app
83-
When I press "Add entries" in the app
83+
When I press "Add entry" in the app
8484
And I set the following fields to these values in the app:
8585
| Description | Moodle community site |
8686
And I press "Save" near "Data with comments" in the app
@@ -102,7 +102,7 @@ Feature: Users can manage entries in database activities
102102

103103
Scenario: Students can not edit or delete other user's entries from list and single view in the app
104104
Given I entered the data activity "Web links" on course "Course 1" as "student1" in the app
105-
And I press "Add entries" in the app
105+
And I press "Add entry" in the app
106106
And I set the following fields to these values in the app:
107107
| URL | https://moodle.org/ |
108108
| Description | Moodle community site |
@@ -119,7 +119,7 @@ Feature: Users can manage entries in database activities
119119

120120
Scenario: Delete entry (student) & Update entry (student)
121121
Given I entered the data activity "Web links" on course "Course 1" as "student1" in the app
122-
And I press "Add entries" in the app
122+
And I press "Add entry" in the app
123123
And I set the following fields to these values in the app:
124124
| URL | https://moodle.org/ |
125125
| Description | Moodle community site |
@@ -150,7 +150,7 @@ Feature: Users can manage entries in database activities
150150
And I should not find "Moodle Cloud" in the app
151151

152152
# Repeat again with single view.
153-
Given I press "Add entries" in the app
153+
Given I press "Add entry" in the app
154154
And I set the following fields to these values in the app:
155155
| URL | https://moodle.org/ |
156156
| Description | Moodle community site |
@@ -185,12 +185,12 @@ Feature: Users can manage entries in database activities
185185

186186
Scenario: Delete entry (teacher) & Update entry (teacher)
187187
Given I entered the data activity "Web links" on course "Course 1" as "student1" in the app
188-
And I press "Add entries" in the app
188+
And I press "Add entry" in the app
189189
And I set the following fields to these values in the app:
190190
| URL | https://moodle.org/ |
191191
| Description | Moodle community site |
192192
And I press "Save" near "Web links" in the app
193-
And I press "Add entries" in the app
193+
And I press "Add entry" in the app
194194
And I set the following fields to these values in the app:
195195
| URL | https://telegram.org/ |
196196
| Description | Telegram |
@@ -261,7 +261,7 @@ Feature: Users can manage entries in database activities
261261
| database | type | name | description |
262262
| data2 | number | Number | Number value |
263263
And I entered the data activity "Number DB" on course "Course 1" as "student1" in the app
264-
When I press "Add entries" in the app
264+
When I press "Add entry" in the app
265265
And I press "Save" near "Number DB" in the app
266266
Then I should find "You did not fill out any fields!" in the app
267267

src/addons/mod/data/tests/behat/sync.feature

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Feature: Users can store entries in database activities when offline and sync wh
3131
Given I entered the data activity "Web links" on course "Course 1" as "student1" in the app
3232
And I switch network connection to offline
3333
And I should find "No entries yet" in the app
34-
When I press "Add entries" in the app
34+
When I press "Add entry" in the app
3535
And I set the following fields to these values in the app:
3636
| URL | https://moodle.org/ |
3737
| Description | Moodle community site |
@@ -49,7 +49,7 @@ Feature: Users can store entries in database activities when offline and sync wh
4949
Scenario: Update entry (offline) & Delete entry (offline)
5050
Given I entered the data activity "Web links" on course "Course 1" as "student1" in the app
5151
And I should find "No entries yet" in the app
52-
And I press "Add entries" in the app
52+
And I press "Add entry" in the app
5353
And I set the following fields to these values in the app:
5454
| URL | https://moodle.org/ |
5555
| Description | Moodle community site |
@@ -101,7 +101,7 @@ Feature: Users can store entries in database activities when offline and sync wh
101101
Scenario: Students can undo deleting entries to a database in the app while offline
102102
Given I entered the data activity "Web links" on course "Course 1" as "student1" in the app
103103
And I should find "No entries yet" in the app
104-
And I press "Add entries" in the app
104+
And I press "Add entry" in the app
105105
And I set the following fields to these values in the app:
106106
| URL | https://moodle.org/ |
107107
| Description | Moodle community site |

src/core/features/comments/tests/behat/basic_usage.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Feature: Test basic usage of comments in app
3030
Scenario: Add comments & Delete comments (database)
3131
# Create database entry and comment as a teacher
3232
Given I entered the data activity "Data" on course "Course 1" as "teacher1" in the app
33-
And I press "Add entries" in the app
33+
And I press "Add entry" in the app
3434
And I set the field "Test field name" to "Test" in the app
3535
And I press "Save" in the app
3636
And I press "Actions menu" in the app
@@ -69,7 +69,7 @@ Feature: Test basic usage of comments in app
6969

7070
Scenario: Add comments offline & Delete comments offline & Sync comments (database)
7171
Given I entered the data activity "Data" on course "Course 1" as "teacher1" in the app
72-
And I press "Add entries" in the app
72+
And I press "Add entry" in the app
7373
And I set the field "Test field name" to "Test" in the app
7474
And I press "Save" in the app
7575
And I press "Actions menu" in the app

0 commit comments

Comments
 (0)