Extract strings

This commit is contained in:
Neeraj Gupta 2024-02-02 17:31:36 +05:30
parent c14e571e55
commit e64bfafa8f
4 changed files with 15 additions and 2 deletions

View file

@ -554,6 +554,8 @@ class MessageLookup extends MessageLookupByLibrary {
"details": MessageLookupByLibrary.simpleMessage("Details"), "details": MessageLookupByLibrary.simpleMessage("Details"),
"devAccountChanged": MessageLookupByLibrary.simpleMessage( "devAccountChanged": MessageLookupByLibrary.simpleMessage(
"The developer account we use to publish ente on App Store has changed. Because of this, you will need to login again.\n\nOur apologies for the inconvenience, but this was unavoidable."), "The developer account we use to publish ente on App Store has changed. Because of this, you will need to login again.\n\nOur apologies for the inconvenience, but this was unavoidable."),
"deviceCodeHint":
MessageLookupByLibrary.simpleMessage("Enter the code"),
"deviceFilesAutoUploading": MessageLookupByLibrary.simpleMessage( "deviceFilesAutoUploading": MessageLookupByLibrary.simpleMessage(
"Files added to this device album will automatically get uploaded to ente."), "Files added to this device album will automatically get uploaded to ente."),
"deviceLockExplanation": MessageLookupByLibrary.simpleMessage( "deviceLockExplanation": MessageLookupByLibrary.simpleMessage(

View file

@ -8347,6 +8347,16 @@ class S {
args: [], args: [],
); );
} }
/// `Enter the code`
String get deviceCodeHint {
return Intl.message(
'Enter the code',
name: 'deviceCodeHint',
desc: '',
args: [],
);
}
} }
class AppLocalizationDelegate extends LocalizationsDelegate<S> { class AppLocalizationDelegate extends LocalizationsDelegate<S> {

View file

@ -1191,5 +1191,6 @@
"playOnTv": "Play album on TV", "playOnTv": "Play album on TV",
"pair": "Pair", "pair": "Pair",
"deviceNotFound": "Device not found", "deviceNotFound": "Device not found",
"castInstruction": "Visit cast.ente.io on the device you want to pair.\n\nEnter the code below to play the album on your TV." "castInstruction": "Visit cast.ente.io on the device you want to pair.\n\nEnter the code below to play the album on your TV.",
"deviceCodeHint": "Enter the code"
} }

View file

@ -832,7 +832,7 @@ class _GalleryAppBarWidgetState extends State<GalleryAppBarWidget> {
body: S.of(context).castInstruction, body: S.of(context).castInstruction,
submitButtonLabel: S.of(context).pair, submitButtonLabel: S.of(context).pair,
textInputType: TextInputType.streetAddress, textInputType: TextInputType.streetAddress,
hintText: "Enter the code", hintText: context.l10n.deviceCodeHint,
onSubmit: (String text) async { onSubmit: (String text) async {
try { try {
String code = text.trim(); String code = text.trim();