MOBILE-4638 data: Remove deprecated language string

main
Pau Ferrer Ocaña 2024-08-19 10:13:08 +02:00
parent 361fa4ee98
commit 5891c2edae
7 changed files with 23 additions and 23 deletions

View File

@ -546,7 +546,7 @@
"addon.mod_choice.userchoosethisoption": "choice", "addon.mod_choice.userchoosethisoption": "choice",
"addon.mod_choice.yourselection": "choice", "addon.mod_choice.yourselection": "choice",
"addon.mod_data.actionsmenu": "data", "addon.mod_data.actionsmenu": "data",
"addon.mod_data.addentries": "data", "addon.mod_data.add": "data",
"addon.mod_data.advancedsearch": "data", "addon.mod_data.advancedsearch": "data",
"addon.mod_data.alttext": "data", "addon.mod_data.alttext": "data",
"addon.mod_data.approve": "data", "addon.mod_data.approve": "data",

View File

@ -4,8 +4,8 @@
<ion-icon name="fas-magnifying-glass" slot="icon-only" aria-hidden="true" /> <ion-icon name="fas-magnifying-glass" slot="icon-only" aria-hidden="true" />
</ion-button> </ion-button>
<core-context-menu> <core-context-menu>
<core-context-menu-item [priority]="500" *ngIf="canAdd" [content]="'addon.mod_data.addentries' | translate" iconAction="fas-plus" <core-context-menu-item [priority]="500" *ngIf="canAdd" [content]="'addon.mod_data.add' | translate" iconAction="fas-plus"
(action)="gotoAddEntries()" /> (action)="gotoAddEntry()" />
<core-context-menu-item [priority]="400" *ngIf="firstEntry" [content]="'addon.mod_data.single' | translate" iconAction="fas-file" <core-context-menu-item [priority]="400" *ngIf="firstEntry" [content]="'addon.mod_data.single' | translate" iconAction="fas-file"
(action)="gotoEntry(firstEntry)" /> (action)="gotoEntry(firstEntry)" />
</core-context-menu> </core-context-menu>
@ -111,8 +111,8 @@
<ion-fab slot="fixed" core-fab vertical="bottom" horizontal="end" *ngIf="canAdd"> <ion-fab slot="fixed" core-fab vertical="bottom" horizontal="end" *ngIf="canAdd">
<ion-fab-button (click)="gotoAddEntries()" [attr.aria-label]="'addon.mod_data.addentries' | translate"> <ion-fab-button (click)="gotoAddEntry()" [attr.aria-label]="'addon.mod_data.add' | translate">
<ion-icon name="fas-plus" aria-hidden="true" /> <ion-icon name="fas-plus" aria-hidden="true" />
<span class="sr-only">{{ 'addon.mod_data.addentries' | translate }}</span> <span class="sr-only">{{ 'addon.mod_data.add' | translate }}</span>
</ion-fab-button> </ion-fab-button>
</ion-fab> </ion-fab>

View File

@ -487,9 +487,9 @@ export class AddonModDataIndexComponent extends CoreCourseModuleMainActivityComp
} }
/** /**
* Opens add entries form. * Opens add entry form.
*/ */
gotoAddEntries(): void { gotoAddEntry(): void {
const params: Params = { const params: Params = {
title: this.module.name, title: this.module.name,
group: this.selectedGroup, group: this.selectedGroup,

View File

@ -1,6 +1,6 @@
{ {
"actionsmenu": "Actions menu", "actionsmenu": "Actions menu",
"addentries": "Add entries", "add": "Add entry",
"advancedsearch": "Advanced search", "advancedsearch": "Advanced search",
"alttext": "Alternative text", "alttext": "Alternative text",
"approve": "Approve", "approve": "Approve",

View File

@ -30,7 +30,7 @@ Feature: Users can manage entries in database activities
Scenario: Create entry Scenario: Create entry
Given I entered the data activity "Web links" on course "Course 1" as "student1" in the app Given I entered the data activity "Web links" on course "Course 1" as "student1" in the app
Then I should find "No entries yet" in the app Then I should find "No entries yet" in the app
When I press "Add entries" in the app When I press "Add entry" in the app
And I set the following fields to these values in the app: And I set the following fields to these values in the app:
| URL | https://moodle.org/ | | URL | https://moodle.org/ |
| Description | Moodle community site | | Description | Moodle community site |
@ -48,13 +48,13 @@ Feature: Users can manage entries in database activities
And I entered the data activity "Web links" on course "Course 1" as "student1" in the app And I entered the data activity "Web links" on course "Course 1" as "student1" in the app
# TODO Create and use a generator for database entries. # TODO Create and use a generator for database entries.
When I press "Add entries" in the app When I press "Add entry" in the app
And I set the following fields to these values in the app: And I set the following fields to these values in the app:
| URL | https://moodle.org/ | | URL | https://moodle.org/ |
| Description | Moodle community site | | Description | Moodle community site |
And I press "Save" near "Web links" in the app And I press "Save" near "Web links" in the app
And I entered the data activity "Web links" on course "Course 1" as "student2" in the app And I entered the data activity "Web links" on course "Course 1" as "student2" in the app
And I press "Add entries" in the app And I press "Add entry" in the app
And I set the following fields to these values in the app: And I set the following fields to these values in the app:
| URL | https://moodlecloud.com/ | | URL | https://moodlecloud.com/ |
| Description | Moodle Cloud | | Description | Moodle Cloud |
@ -80,7 +80,7 @@ Feature: Users can manage entries in database activities
And I should find "Moodle Cloud" in the app And I should find "Moodle Cloud" in the app
Given I entered the data activity "Data with comments" on course "Course 1" as "student1" in the app Given I entered the data activity "Data with comments" on course "Course 1" as "student1" in the app
When I press "Add entries" in the app When I press "Add entry" in the app
And I set the following fields to these values in the app: And I set the following fields to these values in the app:
| Description | Moodle community site | | Description | Moodle community site |
And I press "Save" near "Data with comments" in the app And I press "Save" near "Data with comments" in the app
@ -102,7 +102,7 @@ Feature: Users can manage entries in database activities
Scenario: Students can not edit or delete other user's entries from list and single view in the app Scenario: Students can not edit or delete other user's entries from list and single view in the app
Given I entered the data activity "Web links" on course "Course 1" as "student1" in the app Given I entered the data activity "Web links" on course "Course 1" as "student1" in the app
And I press "Add entries" in the app And I press "Add entry" in the app
And I set the following fields to these values in the app: And I set the following fields to these values in the app:
| URL | https://moodle.org/ | | URL | https://moodle.org/ |
| Description | Moodle community site | | Description | Moodle community site |
@ -119,7 +119,7 @@ Feature: Users can manage entries in database activities
Scenario: Delete entry (student) & Update entry (student) Scenario: Delete entry (student) & Update entry (student)
Given I entered the data activity "Web links" on course "Course 1" as "student1" in the app Given I entered the data activity "Web links" on course "Course 1" as "student1" in the app
And I press "Add entries" in the app And I press "Add entry" in the app
And I set the following fields to these values in the app: And I set the following fields to these values in the app:
| URL | https://moodle.org/ | | URL | https://moodle.org/ |
| Description | Moodle community site | | Description | Moodle community site |
@ -150,7 +150,7 @@ Feature: Users can manage entries in database activities
And I should not find "Moodle Cloud" in the app And I should not find "Moodle Cloud" in the app
# Repeat again with single view. # Repeat again with single view.
Given I press "Add entries" in the app Given I press "Add entry" in the app
And I set the following fields to these values in the app: And I set the following fields to these values in the app:
| URL | https://moodle.org/ | | URL | https://moodle.org/ |
| Description | Moodle community site | | Description | Moodle community site |
@ -185,12 +185,12 @@ Feature: Users can manage entries in database activities
Scenario: Delete entry (teacher) & Update entry (teacher) Scenario: Delete entry (teacher) & Update entry (teacher)
Given I entered the data activity "Web links" on course "Course 1" as "student1" in the app Given I entered the data activity "Web links" on course "Course 1" as "student1" in the app
And I press "Add entries" in the app And I press "Add entry" in the app
And I set the following fields to these values in the app: And I set the following fields to these values in the app:
| URL | https://moodle.org/ | | URL | https://moodle.org/ |
| Description | Moodle community site | | Description | Moodle community site |
And I press "Save" near "Web links" in the app And I press "Save" near "Web links" in the app
And I press "Add entries" in the app And I press "Add entry" in the app
And I set the following fields to these values in the app: And I set the following fields to these values in the app:
| URL | https://telegram.org/ | | URL | https://telegram.org/ |
| Description | Telegram | | Description | Telegram |
@ -261,7 +261,7 @@ Feature: Users can manage entries in database activities
| database | type | name | description | | database | type | name | description |
| data2 | number | Number | Number value | | data2 | number | Number | Number value |
And I entered the data activity "Number DB" on course "Course 1" as "student1" in the app And I entered the data activity "Number DB" on course "Course 1" as "student1" in the app
When I press "Add entries" in the app When I press "Add entry" in the app
And I press "Save" near "Number DB" in the app And I press "Save" near "Number DB" in the app
Then I should find "You did not fill out any fields!" in the app Then I should find "You did not fill out any fields!" in the app

View File

@ -31,7 +31,7 @@ Feature: Users can store entries in database activities when offline and sync wh
Given I entered the data activity "Web links" on course "Course 1" as "student1" in the app Given I entered the data activity "Web links" on course "Course 1" as "student1" in the app
And I switch network connection to offline And I switch network connection to offline
And I should find "No entries yet" in the app And I should find "No entries yet" in the app
When I press "Add entries" in the app When I press "Add entry" in the app
And I set the following fields to these values in the app: And I set the following fields to these values in the app:
| URL | https://moodle.org/ | | URL | https://moodle.org/ |
| Description | Moodle community site | | Description | Moodle community site |
@ -49,7 +49,7 @@ Feature: Users can store entries in database activities when offline and sync wh
Scenario: Update entry (offline) & Delete entry (offline) Scenario: Update entry (offline) & Delete entry (offline)
Given I entered the data activity "Web links" on course "Course 1" as "student1" in the app Given I entered the data activity "Web links" on course "Course 1" as "student1" in the app
And I should find "No entries yet" in the app And I should find "No entries yet" in the app
And I press "Add entries" in the app And I press "Add entry" in the app
And I set the following fields to these values in the app: And I set the following fields to these values in the app:
| URL | https://moodle.org/ | | URL | https://moodle.org/ |
| Description | Moodle community site | | Description | Moodle community site |
@ -101,7 +101,7 @@ Feature: Users can store entries in database activities when offline and sync wh
Scenario: Students can undo deleting entries to a database in the app while offline Scenario: Students can undo deleting entries to a database in the app while offline
Given I entered the data activity "Web links" on course "Course 1" as "student1" in the app Given I entered the data activity "Web links" on course "Course 1" as "student1" in the app
And I should find "No entries yet" in the app And I should find "No entries yet" in the app
And I press "Add entries" in the app And I press "Add entry" in the app
And I set the following fields to these values in the app: And I set the following fields to these values in the app:
| URL | https://moodle.org/ | | URL | https://moodle.org/ |
| Description | Moodle community site | | Description | Moodle community site |

View File

@ -30,7 +30,7 @@ Feature: Test basic usage of comments in app
Scenario: Add comments & Delete comments (database) Scenario: Add comments & Delete comments (database)
# Create database entry and comment as a teacher # Create database entry and comment as a teacher
Given I entered the data activity "Data" on course "Course 1" as "teacher1" in the app Given I entered the data activity "Data" on course "Course 1" as "teacher1" in the app
And I press "Add entries" in the app And I press "Add entry" in the app
And I set the field "Test field name" to "Test" in the app And I set the field "Test field name" to "Test" in the app
And I press "Save" in the app And I press "Save" in the app
And I press "Actions menu" in the app And I press "Actions menu" in the app
@ -69,7 +69,7 @@ Feature: Test basic usage of comments in app
Scenario: Add comments offline & Delete comments offline & Sync comments (database) Scenario: Add comments offline & Delete comments offline & Sync comments (database)
Given I entered the data activity "Data" on course "Course 1" as "teacher1" in the app Given I entered the data activity "Data" on course "Course 1" as "teacher1" in the app
And I press "Add entries" in the app And I press "Add entry" in the app
And I set the field "Test field name" to "Test" in the app And I set the field "Test field name" to "Test" in the app
And I press "Save" in the app And I press "Save" in the app
And I press "Actions menu" in the app And I press "Actions menu" in the app