Extract strings

This commit is contained in:
laurenspriem
2025-06-26 18:04:11 +05:30
parent 54722ac5c3
commit 4ccb782740
4 changed files with 44 additions and 4 deletions

View File

@@ -825,6 +825,7 @@ class MessageLookup extends MessageLookupByLibrary {
"deviceNotFound":
MessageLookupByLibrary.simpleMessage("Device not found"),
"didYouKnow": MessageLookupByLibrary.simpleMessage("Did you know?"),
"different": MessageLookupByLibrary.simpleMessage("Different"),
"disableAutoLock":
MessageLookupByLibrary.simpleMessage("Disable auto lock"),
"disableDownloadWarningBody": MessageLookupByLibrary.simpleMessage(
@@ -1697,6 +1698,8 @@ class MessageLookup extends MessageLookupByLibrary {
"rotateLeft": MessageLookupByLibrary.simpleMessage("Rotate left"),
"rotateRight": MessageLookupByLibrary.simpleMessage("Rotate right"),
"safelyStored": MessageLookupByLibrary.simpleMessage("Safely stored"),
"same": MessageLookupByLibrary.simpleMessage("Same"),
"sameperson": MessageLookupByLibrary.simpleMessage("Same person?"),
"save": MessageLookupByLibrary.simpleMessage("Save"),
"saveAsAnotherPerson":
MessageLookupByLibrary.simpleMessage("Save as another person"),

View File

@@ -12145,6 +12145,36 @@ class S {
args: [],
);
}
/// `Same`
String get same {
return Intl.message(
'Same',
name: 'same',
desc: '',
args: [],
);
}
/// `Different`
String get different {
return Intl.message(
'Different',
name: 'different',
desc: '',
args: [],
);
}
/// `Same person?`
String get sameperson {
return Intl.message(
'Same person?',
name: 'sameperson',
desc: '',
args: [],
);
}
}
class AppLocalizationDelegate extends LocalizationsDelegate<S> {

View File

@@ -1773,5 +1773,8 @@
"thePersonWillNotBeDisplayed": "The person will not be displayed in the people section anymore. Photos will remain untouched.",
"areYouSureYouWantToMergeThem": "Are you sure you want to merge them?",
"allUnnamedGroupsWillBeMergedIntoTheSelectedPerson": "All unnamed groups will be merged into the selected person. This can still be undone from the suggestions history overview of the person.",
"yesIgnore": "Yes, ignore"
"yesIgnore": "Yes, ignore",
"same": "Same",
"different": "Different",
"sameperson": "Same person?"
}

View File

@@ -433,7 +433,7 @@ class _PersonGallerySuggestionState extends State<PersonGallerySuggestion>
),
)
: Text(
"Same person?",
S.of(context).sameperson,
style: textTheme.body,
textAlign: TextAlign.center,
),
@@ -475,7 +475,9 @@ class _PersonGallerySuggestionState extends State<PersonGallerySuggestion>
),
const SizedBox(width: 8),
Text(
personPage ? S.of(context).no : "Different",
personPage
? S.of(context).no
: S.of(context).different,
style: (personPage
? textTheme.bodyBold
: textTheme.body)
@@ -512,7 +514,9 @@ class _PersonGallerySuggestionState extends State<PersonGallerySuggestion>
),
const SizedBox(width: 8),
Text(
personPage ? S.of(context).yes : "Same",
personPage
? S.of(context).yes
: S.of(context).same,
style: (personPage
? textTheme.bodyBold
: textTheme.body)