Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Extract & update strings

AmanRajSinghMourya910f5acdd55d
diff --git a/mobile/apps/locker/lib/l10n/app_en.arb b/mobile/apps/locker/lib/l10n/app_en.arb
index 8f0b4c5dcf..4c89d5ce48 100644
--- a/mobile/apps/locker/lib/l10n/app_en.arb
+++ b/mobile/apps/locker/lib/l10n/app_en.arb
@@ -354,23 +354,23 @@
"saveInformation": "Save information",
"informationDescription": "Save important information that can be shared and passed down to loved ones.",
"personalNote": "Personal note",
- "personalNoteDescription": "Save important notes or thoughts",
- "physicalRecords": "Physical records",
- "physicalRecordsDescription": "Save the real-world locations of important items",
+ "personalNoteDescription": "Store essential notes or reflections securely.",
+ "physicalRecords": "Physical Record",
+ "physicalRecordsDescription": "Document real-world locations of key items.",
"accountCredentials": "Account credentials",
- "accountCredentialsDescription": "Securely store login details for important accounts",
+ "accountCredentialsDescription": "Safely save login details for vital accounts.",
"emergencyContact": "Emergency contact",
- "emergencyContactDescription": "Save details of people to contact in emergencies",
+ "emergencyContactDescription": "Keep contact info for key people in crises.",
"noteName": "Title",
- "noteNameHint": "Give your note a meaningful title",
+ "noteNameHint": "Write down important thoughts, instructions, or memories you want to preserve",
"noteContent": "Content",
"noteContentHint": "Write down important thoughts, instructions, or memories you want to preserve",
"recordName": "Record name",
"recordNameHint": "Name of the real-world item",
"recordLocation": "Location",
- "recordLocationHint": "Where can this item be found? (e.g., 'Safety deposit box at First Bank, Box #123')",
+ "recordLocationHint": "Where can this item be found?",
"recordNotes": "Notes",
- "recordNotesHint": "Any additional details about accessing or understanding this record",
+ "recordNotesHint": "Any additional information about the item?",
"credentialName": "Account name",
"credentialNameHint": "Name of the service or account",
"username": "Username",
diff --git a/mobile/apps/locker/lib/l10n/app_localizations.dart b/mobile/apps/locker/lib/l10n/app_localizations.dart
index 009ceb7e1d..113a4356cc 100644
--- a/mobile/apps/locker/lib/l10n/app_localizations.dart
+++ b/mobile/apps/locker/lib/l10n/app_localizations.dart
@@ -1045,19 +1045,19 @@ abstract class AppLocalizations {
/// No description provided for @personalNoteDescription.
///
/// In en, this message translates to:
- /// **'Save important notes or thoughts'**
+ /// **'Store essential notes or reflections securely.'**
String get personalNoteDescription;
/// No description provided for @physicalRecords.
///
/// In en, this message translates to:
- /// **'Physical records'**
+ /// **'Physical Record'**
String get physicalRecords;
/// No description provided for @physicalRecordsDescription.
///
/// In en, this message translates to:
- /// **'Save the real-world locations of important items'**
+ /// **'Document real-world locations of key items.'**
String get physicalRecordsDescription;
/// No description provided for @accountCredentials.
@@ -1069,7 +1069,7 @@ abstract class AppLocalizations {
/// No description provided for @accountCredentialsDescription.
///
/// In en, this message translates to:
- /// **'Securely store login details for important accounts'**
+ /// **'Safely save login details for vital accounts.'**
String get accountCredentialsDescription;
/// No description provided for @emergencyContact.
@@ -1081,7 +1081,7 @@ abstract class AppLocalizations {
/// No description provided for @emergencyContactDescription.
///
/// In en, this message translates to:
- /// **'Save details of people to contact in emergencies'**
+ /// **'Keep contact info for key people in crises.'**
String get emergencyContactDescription;
/// No description provided for @noteName.
@@ -1093,7 +1093,7 @@ abstract class AppLocalizations {
/// No description provided for @noteNameHint.
///
/// In en, this message translates to:
- /// **'Give your note a meaningful title'**
+ /// **'Write down important thoughts, instructions, or memories you want to preserve'**
String get noteNameHint;
/// No description provided for @noteContent.
@@ -1129,7 +1129,7 @@ abstract class AppLocalizations {
/// No description provided for @recordLocationHint.
///
/// In en, this message translates to:
- /// **'Where can this item be found? (e.g., \'Safety deposit box at First Bank, Box #123\')'**
+ /// **'Where can this item be found?'**
String get recordLocationHint;
/// No description provided for @recordNotes.
@@ -1141,7 +1141,7 @@ abstract class AppLocalizations {
/// No description provided for @recordNotesHint.
///
/// In en, this message translates to:
- /// **'Any additional details about accessing or understanding this record'**
+ /// **'Any additional information about the item?'**
String get recordNotesHint;
/// No description provided for @credentialName.
diff --git a/mobile/apps/locker/lib/l10n/app_localizations_en.dart b/mobile/apps/locker/lib/l10n/app_localizations_en.dart
index bf195c4e0f..0c18daa06e 100644
--- a/mobile/apps/locker/lib/l10n/app_localizations_en.dart
+++ b/mobile/apps/locker/lib/l10n/app_localizations_en.dart
@@ -549,34 +549,36 @@ class AppLocalizationsEn extends AppLocalizations {
String get personalNote => 'Personal note';
@override
- String get personalNoteDescription => 'Save important notes or thoughts';
+ String get personalNoteDescription =>
+ 'Store essential notes or reflections securely.';
@override
- String get physicalRecords => 'Physical records';
+ String get physicalRecords => 'Physical Record';
@override
String get physicalRecordsDescription =>
- 'Save the real-world locations of important items';
+ 'Document real-world locations of key items.';
@override
String get accountCredentials => 'Account credentials';
@override
String get accountCredentialsDescription =>
- 'Securely store login details for important accounts';
+ 'Safely save login details for vital accounts.';
@override
String get emergencyContact => 'Emergency contact';
@override
String get emergencyContactDescription =>
- 'Save details of people to contact in emergencies';
+ 'Keep contact info for key people in crises.';
@override
String get noteName => 'Title';
@override
- String get noteNameHint => 'Give your note a meaningful title';
+ String get noteNameHint =>
+ 'Write down important thoughts, instructions, or memories you want to preserve';
@override
String get noteContent => 'Content';
@@ -595,15 +597,13 @@ class AppLocalizationsEn extends AppLocalizations {
String get recordLocation => 'Location';
@override
- String get recordLocationHint =>
- 'Where can this item be found? (e.g., \'Safety deposit box at First Bank, Box #123\')';
+ String get recordLocationHint => 'Where can this item be found?';
@override
String get recordNotes => 'Notes';
@override
- String get recordNotesHint =>
- 'Any additional details about accessing or understanding this record';
+ String get recordNotesHint => 'Any additional information about the item?';
@override
String get credentialName => 'Account name';
diff --git a/mobile/apps/locker/lib/ui/mixins/search_mixin.dart b/mobile/apps/locker/lib/ui/mixins/search_mixin.dart
index e52437cf94..58abb2fd62 100644
--- a/mobile/apps/locker/lib/ui/mixins/search_mixin.dart
+++ b/mobile/apps/locker/lib/ui/mixins/search_mixin.dart
@@ -67,7 +67,7 @@ mixin SearchMixin<T extends StatefulWidget> on State<T> {
.textTheme
.bodyMedium
?.color
- ?.withOpacity(0.6),
+ ?.withValues(alpha: 0.6),
),
border: OutlineInputBorder(
borderRadius: BorderRadius.circular(20.0),
@@ -91,7 +91,7 @@ mixin SearchMixin<T extends StatefulWidget> on State<T> {
.textTheme
.bodyMedium
?.color
- ?.withOpacity(0.6) ??
+ ?.withValues(alpha: 0.6) ??
Colors.grey,
),
),
@@ -103,7 +103,7 @@ mixin SearchMixin<T extends StatefulWidget> on State<T> {
.textTheme
.bodyMedium
?.color
- ?.withOpacity(0.6),
+ ?.withValues(alpha: 0.6),
),
),
style: TextStyle(
diff --git a/mobile/apps/locker/lib/ui/pages/all_collections_page.dart b/mobile/apps/locker/lib/ui/pages/all_collections_page.dart
index 9accd7048f..1cfc5af79a 100644
--- a/mobile/apps/locker/lib/ui/pages/all_collections_page.dart
+++ b/mobile/apps/locker/lib/ui/pages/all_collections_page.dart
@@ -137,10 +137,12 @@ class _AllCollectionsPageState extends State<AllCollectionsPage> {
@override
Widget build(BuildContext context) {
+ final colorScheme = getEnteColorScheme(context);
+
return Scaffold(
- backgroundColor: getEnteColorScheme(context).backgroundBase,
+ backgroundColor: colorScheme.backgroundBase,
appBar: AppBar(
- backgroundColor: getEnteColorScheme(context).backgroundBase,
+ backgroundColor: colorScheme.backgroundBase,
surfaceTintColor: Colors.transparent,
toolbarHeight: 48,
leadingWidth: 48,
@@ -171,6 +173,8 @@ class _AllCollectionsPageState extends State<AllCollectionsPage> {
}
Widget _buildBody() {
+ final textTheme = getEnteTextTheme(context);
+
if (_isLoading) {
return const Center(
child: CircularProgressIndicator(),
@@ -218,9 +222,9 @@ class _AllCollectionsPageState extends State<AllCollectionsPage> {
const SizedBox(height: 16),
Text(
context.l10n.noCollectionsFound,
- style: getEnteTextTheme(context).large.copyWith(
- color: Colors.grey,
- ),
+ style: textTheme.large.copyWith(
+ color: Colors.grey,
+ ),
textAlign: TextAlign.center,
),
],
@@ -239,7 +243,7 @@ class _AllCollectionsPageState extends State<AllCollectionsPage> {
),
Text(
_allCollections.length.toString() + " items",
- style: getEnteTextTheme(context).smallMuted,
+ style: textTheme.smallMuted,
),
const SizedBox(height: 20),
Flexible(
@@ -257,6 +261,8 @@ class _AllCollectionsPageState extends State<AllCollectionsPage> {
}
Widget _buildTrashHook() {
+ final textTheme = getEnteTextTheme(context);
+
return Container(
margin: const EdgeInsets.only(top: 8.0, bottom: 16.0),
child: InkWell(
@@ -284,9 +290,9 @@ class _AllCollectionsPageState extends State<AllCollectionsPage> {
Expanded(
child: Text(
context.l10n.trash,
- style: getEnteTextTheme(context).large.copyWith(
- fontWeight: FontWeight.w500,
- ),
+ style: textTheme.large.copyWith(
+ fontWeight: FontWeight.w500,
+ ),
),
),
Icon(
@@ -317,6 +323,8 @@ class _AllCollectionsPageState extends State<AllCollectionsPage> {
Widget _buildUncategorizedHook() {
if (_uncategorizedCollection == null) return const SizedBox.shrink();
+ final textTheme = getEnteTextTheme(context);
+
return Container(
margin: const EdgeInsets.only(top: 16.0, bottom: 8.0),
child: InkWell(
@@ -346,32 +354,32 @@ class _AllCollectionsPageState extends State<AllCollectionsPage> {
children: [
Text(
context.l10n.uncategorized,
- style: getEnteTextTheme(context).large.copyWith(
- fontWeight: FontWeight.w500,
- ),
+ style: textTheme.large.copyWith(
+ fontWeight: FontWeight.w500,
+ ),
),
if (_uncategorizedFileCount! > 0) ...[
const SizedBox(width: 8),
Text(
'β€’',
- style: getEnteTextTheme(context).small.copyWith(
- color: Theme.of(context)
- .textTheme
- .bodySmall
- ?.color
- ?.withAlpha(50),
- ),
+ style: textTheme.small.copyWith(
+ color: Theme.of(context)
+ .textTheme
+ .bodySmall
+ ?.color
+ ?.withAlpha(50),
+ ),
),
const SizedBox(width: 8),
Text(
'${_uncategorizedFileCount!}',
- style: getEnteTextTheme(context).small.copyWith(
- color: Theme.of(context)
- .textTheme
- .bodySmall
- ?.color
- ?.withAlpha(70),
- ),
+ style: textTheme.small.copyWith(
+ color: Theme.of(context)
+ .textTheme
+ .bodySmall
+ ?.color
+ ?.withAlpha(70),
+ ),
),
],
],