From 3c23d3b4805ca5d8fb2ae73e6ab6cc1b6ff2dd33 Mon Sep 17 00:00:00 2001 From: AmanRajSinghMourya Date: Thu, 28 Aug 2025 15:16:45 +0530 Subject: [PATCH] Extract strings --- mobile/apps/locker/lib/l10n/app_en.arb | 43 ++++++- .../locker/lib/l10n/app_localizations.dart | 108 +++++++++++++++++- .../locker/lib/l10n/app_localizations_en.dart | 67 ++++++++++- 3 files changed, 210 insertions(+), 8 deletions(-) diff --git a/mobile/apps/locker/lib/l10n/app_en.arb b/mobile/apps/locker/lib/l10n/app_en.arb index 69f4c19308..c317b02ec4 100644 --- a/mobile/apps/locker/lib/l10n/app_en.arb +++ b/mobile/apps/locker/lib/l10n/app_en.arb @@ -368,7 +368,7 @@ "allowAddingFiles": "Allow adding files", "disableDownloadWarningTitle": "Please note", "disableDownloadWarningBody": "Viewers can still take screenshots or save a copy of your files using external tools.", - "allowAddFilesDescription": "Allow people with the link to also add files to the shared album.", + "allowAddFilesDescription": "Allow people with the link to also add files to the shared collection.", "after1Hour": "After 1 hour", "after1Day": "After 1 day", "after1Week": "After 1 week", @@ -415,7 +415,7 @@ "example": "2" } }, - "description": "Number of viewers that were successfully added to an album." + "description": "Number of viewers that were successfully added to a collection." }, "collaboratorsSuccessfullyAdded": "{count, plural, =0 {Added 0 collaborator} =1 {Added 1 collaborator} other {Added {count} collaborators}}", "@collaboratorsSuccessfullyAdded": { @@ -425,7 +425,7 @@ "example": "2" } }, - "description": "Number of collaborators that were successfully added to an album." + "description": "Number of collaborators that were successfully added to a collection." }, "addViewers": "{count, plural, =0 {Add viewer} =1 {Add viewer} other {Add viewers}}", "addCollaborators": "{count, plural, =0 {Add collaborator} =1 {Add collaborator} other {Add collaborators}}", @@ -455,5 +455,40 @@ "emailNoEnteAccount": "{email} does not have an Ente account.\n\nSend them an invite to share files.", "shareMyVerificationID": "Here's my verification ID: {verificationID} for ente.io.", "shareTextConfirmOthersVerificationID": "Hey, can you confirm that this is your ente.io verification ID: {verificationID}", - "passwordLock": "Password lock" + "passwordLock": "Password lock", + "manage": "Manage", + "addedAs": "Added as", + "removeParticipant": "Remove participant", + "yesConvertToViewer": "Yes, convert to viewer", + "changePermissions": "Change permissions", + "cannotAddMoreFilesAfterBecomingViewer": "{name} will no longer be able to add files to the collection after becoming a viewer.", + "@cannotAddMoreFilesAfterBecomingViewer": { + "description": "Warning message when changing a collaborator to viewer", + "placeholders": { + "name": { + "type": "String", + "example": "John" + } + } + }, + "removeWithQuestionMark": "Remove?", + "removeParticipantBody": "{userEmail} will be removed from this shared collection\n\nAny files added by them will also be removed from the collection", + "yesRemove": "Yes, remove", + "remove": "Remove", + "viewer": "Viewer", + "collaborator": "Collaborator", + "collaboratorsCanAddFilesToTheSharedAlbum": "Collaborators can add files to the shared collection.", + "albumParticipantsCount": "{count, plural, =0 {No Participants} =1 {1 Participant} other {{count} Participants}}", + "@albumParticipantsCount": { + "description": "The count of participants in an album", + "placeholders": { + "count": { + "type": "int", + "example": "5" + } + } + }, + "addMore": "Add more", + "you": "You", + "albumOwner": "Owner" } diff --git a/mobile/apps/locker/lib/l10n/app_localizations.dart b/mobile/apps/locker/lib/l10n/app_localizations.dart index 5a18fd6479..a8b444f10a 100644 --- a/mobile/apps/locker/lib/l10n/app_localizations.dart +++ b/mobile/apps/locker/lib/l10n/app_localizations.dart @@ -1129,7 +1129,7 @@ abstract class AppLocalizations { /// No description provided for @allowAddFilesDescription. /// /// In en, this message translates to: - /// **'Allow people with the link to also add files to the shared album.'** + /// **'Allow people with the link to also add files to the shared collection.'** String get allowAddFilesDescription; /// No description provided for @after1Hour. @@ -1312,13 +1312,13 @@ abstract class AppLocalizations { /// **'Enter email'** String get enterEmail; - /// Number of viewers that were successfully added to an album. + /// Number of viewers that were successfully added to a collection. /// /// In en, this message translates to: /// **'{count, plural, =0 {Added 0 viewers} =1 {Added 1 viewer} other {Added {count} viewers}}'** String viewersSuccessfullyAdded(int count); - /// Number of collaborators that were successfully added to an album. + /// Number of collaborators that were successfully added to a collection. /// /// In en, this message translates to: /// **'{count, plural, =0 {Added 0 collaborator} =1 {Added 1 collaborator} other {Added {count} collaborators}}'** @@ -1449,6 +1449,108 @@ abstract class AppLocalizations { /// In en, this message translates to: /// **'Password lock'** String get passwordLock; + + /// No description provided for @manage. + /// + /// In en, this message translates to: + /// **'Manage'** + String get manage; + + /// No description provided for @addedAs. + /// + /// In en, this message translates to: + /// **'Added as'** + String get addedAs; + + /// No description provided for @removeParticipant. + /// + /// In en, this message translates to: + /// **'Remove participant'** + String get removeParticipant; + + /// No description provided for @yesConvertToViewer. + /// + /// In en, this message translates to: + /// **'Yes, convert to viewer'** + String get yesConvertToViewer; + + /// No description provided for @changePermissions. + /// + /// In en, this message translates to: + /// **'Change permissions'** + String get changePermissions; + + /// Warning message when changing a collaborator to viewer + /// + /// In en, this message translates to: + /// **'{name} will no longer be able to add files to the collection after becoming a viewer.'** + String cannotAddMoreFilesAfterBecomingViewer(String name); + + /// No description provided for @removeWithQuestionMark. + /// + /// In en, this message translates to: + /// **'Remove?'** + String get removeWithQuestionMark; + + /// No description provided for @removeParticipantBody. + /// + /// In en, this message translates to: + /// **'{userEmail} will be removed from this shared collection\n\nAny files added by them will also be removed from the collection'** + String removeParticipantBody(Object userEmail); + + /// No description provided for @yesRemove. + /// + /// In en, this message translates to: + /// **'Yes, remove'** + String get yesRemove; + + /// No description provided for @remove. + /// + /// In en, this message translates to: + /// **'Remove'** + String get remove; + + /// No description provided for @viewer. + /// + /// In en, this message translates to: + /// **'Viewer'** + String get viewer; + + /// No description provided for @collaborator. + /// + /// In en, this message translates to: + /// **'Collaborator'** + String get collaborator; + + /// No description provided for @collaboratorsCanAddFilesToTheSharedAlbum. + /// + /// In en, this message translates to: + /// **'Collaborators can add files to the shared collection.'** + String get collaboratorsCanAddFilesToTheSharedAlbum; + + /// The count of participants in an album + /// + /// In en, this message translates to: + /// **'{count, plural, =0 {No Participants} =1 {1 Participant} other {{count} Participants}}'** + String albumParticipantsCount(int count); + + /// No description provided for @addMore. + /// + /// In en, this message translates to: + /// **'Add more'** + String get addMore; + + /// No description provided for @you. + /// + /// In en, this message translates to: + /// **'You'** + String get you; + + /// No description provided for @albumOwner. + /// + /// In en, this message translates to: + /// **'Owner'** + String get albumOwner; } class _AppLocalizationsDelegate diff --git a/mobile/apps/locker/lib/l10n/app_localizations_en.dart b/mobile/apps/locker/lib/l10n/app_localizations_en.dart index f16aba8c2f..1b97cbd359 100644 --- a/mobile/apps/locker/lib/l10n/app_localizations_en.dart +++ b/mobile/apps/locker/lib/l10n/app_localizations_en.dart @@ -592,7 +592,7 @@ class AppLocalizationsEn extends AppLocalizations { @override String get allowAddFilesDescription => - 'Allow people with the link to also add files to the shared album.'; + 'Allow people with the link to also add files to the shared collection.'; @override String get after1Hour => 'After 1 hour'; @@ -816,4 +816,69 @@ class AppLocalizationsEn extends AppLocalizations { @override String get passwordLock => 'Password lock'; + + @override + String get manage => 'Manage'; + + @override + String get addedAs => 'Added as'; + + @override + String get removeParticipant => 'Remove participant'; + + @override + String get yesConvertToViewer => 'Yes, convert to viewer'; + + @override + String get changePermissions => 'Change permissions'; + + @override + String cannotAddMoreFilesAfterBecomingViewer(String name) { + return '$name will no longer be able to add files to the collection after becoming a viewer.'; + } + + @override + String get removeWithQuestionMark => 'Remove?'; + + @override + String removeParticipantBody(Object userEmail) { + return '$userEmail will be removed from this shared collection\n\nAny files added by them will also be removed from the collection'; + } + + @override + String get yesRemove => 'Yes, remove'; + + @override + String get remove => 'Remove'; + + @override + String get viewer => 'Viewer'; + + @override + String get collaborator => 'Collaborator'; + + @override + String get collaboratorsCanAddFilesToTheSharedAlbum => + 'Collaborators can add files to the shared collection.'; + + @override + String albumParticipantsCount(int count) { + String _temp0 = intl.Intl.pluralLogic( + count, + locale: localeName, + other: '$count Participants', + one: '1 Participant', + zero: 'No Participants', + ); + return '$_temp0'; + } + + @override + String get addMore => 'Add more'; + + @override + String get you => 'You'; + + @override + String get albumOwner => 'Owner'; }