Skip to content

Commit 7ed9277

Browse files
PIG208sm-sayedi
authored andcommitted
compose: Support images from keyboard for Android
Fixes: #419 Fixes: #1173 Signed-off-by: Zixuan James Li <[email protected]>
1 parent ff032f0 commit 7ed9277

16 files changed

+242
-0
lines changed

assets/l10n/app_en.arb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -653,6 +653,14 @@
653653
"@topicValidationErrorMandatoryButEmpty": {
654654
"description": "Topic validation error when topic is required but was empty."
655655
},
656+
"errorContentNotInsertedTitle": "Content not inserted",
657+
"@errorContentNotInsertedTitle": {
658+
"description": "Title for error dialog when an attempt to insert rich content failed."
659+
},
660+
"errorContentToInsertIsEmpty": "The file to be inserted is empty or cannot be accessed.",
661+
"@errorContentToInsertIsEmpty": {
662+
"description": "Error message when the rich content to be inserted is empty or cannot be accessed."
663+
},
656664
"errorServerVersionUnsupportedMessage": "{url} is running Zulip Server {zulipVersion}, which is unsupported. The minimum supported version is Zulip Server {minSupportedZulipVersion}.",
657665
"@errorServerVersionUnsupportedMessage": {
658666
"description": "Error message in the dialog for when the Zulip Server version is unsupported.",

lib/generated/l10n/zulip_localizations.dart

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,6 +1025,18 @@ abstract class ZulipLocalizations {
10251025
/// **'Topics are required in this organization.'**
10261026
String get topicValidationErrorMandatoryButEmpty;
10271027

1028+
/// Title for error dialog when an attempt to insert rich content failed.
1029+
///
1030+
/// In en, this message translates to:
1031+
/// **'Content not inserted'**
1032+
String get errorContentNotInsertedTitle;
1033+
1034+
/// Error message when the rich content to be inserted is empty or cannot be accessed.
1035+
///
1036+
/// In en, this message translates to:
1037+
/// **'The file to be inserted is empty or cannot be accessed.'**
1038+
String get errorContentToInsertIsEmpty;
1039+
10281040
/// Error message in the dialog for when the Zulip Server version is unsupported.
10291041
///
10301042
/// In en, this message translates to:

lib/generated/l10n/zulip_localizations_ar.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,13 @@ class ZulipLocalizationsAr extends ZulipLocalizations {
531531
String get topicValidationErrorMandatoryButEmpty =>
532532
'Topics are required in this organization.';
533533

534+
@override
535+
String get errorContentNotInsertedTitle => 'Content not inserted';
536+
537+
@override
538+
String get errorContentToInsertIsEmpty =>
539+
'The file to be inserted is empty or cannot be accessed.';
540+
534541
@override
535542
String errorServerVersionUnsupportedMessage(
536543
String url,

lib/generated/l10n/zulip_localizations_de.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,13 @@ class ZulipLocalizationsDe extends ZulipLocalizations {
546546
String get topicValidationErrorMandatoryButEmpty =>
547547
'Themen sind in dieser Organisation erforderlich.';
548548

549+
@override
550+
String get errorContentNotInsertedTitle => 'Content not inserted';
551+
552+
@override
553+
String get errorContentToInsertIsEmpty =>
554+
'The file to be inserted is empty or cannot be accessed.';
555+
549556
@override
550557
String errorServerVersionUnsupportedMessage(
551558
String url,

lib/generated/l10n/zulip_localizations_en.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,13 @@ class ZulipLocalizationsEn extends ZulipLocalizations {
531531
String get topicValidationErrorMandatoryButEmpty =>
532532
'Topics are required in this organization.';
533533

534+
@override
535+
String get errorContentNotInsertedTitle => 'Content not inserted';
536+
537+
@override
538+
String get errorContentToInsertIsEmpty =>
539+
'The file to be inserted is empty or cannot be accessed.';
540+
534541
@override
535542
String errorServerVersionUnsupportedMessage(
536543
String url,

lib/generated/l10n/zulip_localizations_it.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,13 @@ class ZulipLocalizationsIt extends ZulipLocalizations {
542542
String get topicValidationErrorMandatoryButEmpty =>
543543
'In questa organizzazione sono richiesti degli argomenti.';
544544

545+
@override
546+
String get errorContentNotInsertedTitle => 'Content not inserted';
547+
548+
@override
549+
String get errorContentToInsertIsEmpty =>
550+
'The file to be inserted is empty or cannot be accessed.';
551+
545552
@override
546553
String errorServerVersionUnsupportedMessage(
547554
String url,

lib/generated/l10n/zulip_localizations_ja.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,13 @@ class ZulipLocalizationsJa extends ZulipLocalizations {
531531
String get topicValidationErrorMandatoryButEmpty =>
532532
'Topics are required in this organization.';
533533

534+
@override
535+
String get errorContentNotInsertedTitle => 'Content not inserted';
536+
537+
@override
538+
String get errorContentToInsertIsEmpty =>
539+
'The file to be inserted is empty or cannot be accessed.';
540+
534541
@override
535542
String errorServerVersionUnsupportedMessage(
536543
String url,

lib/generated/l10n/zulip_localizations_nb.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,13 @@ class ZulipLocalizationsNb extends ZulipLocalizations {
531531
String get topicValidationErrorMandatoryButEmpty =>
532532
'Topics are required in this organization.';
533533

534+
@override
535+
String get errorContentNotInsertedTitle => 'Content not inserted';
536+
537+
@override
538+
String get errorContentToInsertIsEmpty =>
539+
'The file to be inserted is empty or cannot be accessed.';
540+
534541
@override
535542
String errorServerVersionUnsupportedMessage(
536543
String url,

lib/generated/l10n/zulip_localizations_pl.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,13 @@ class ZulipLocalizationsPl extends ZulipLocalizations {
540540
String get topicValidationErrorMandatoryButEmpty =>
541541
'Wątki są wymagane przez tę organizację.';
542542

543+
@override
544+
String get errorContentNotInsertedTitle => 'Content not inserted';
545+
546+
@override
547+
String get errorContentToInsertIsEmpty =>
548+
'The file to be inserted is empty or cannot be accessed.';
549+
543550
@override
544551
String errorServerVersionUnsupportedMessage(
545552
String url,

lib/generated/l10n/zulip_localizations_ru.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,13 @@ class ZulipLocalizationsRu extends ZulipLocalizations {
542542
String get topicValidationErrorMandatoryButEmpty =>
543543
'Темы обязательны в этой организации.';
544544

545+
@override
546+
String get errorContentNotInsertedTitle => 'Content not inserted';
547+
548+
@override
549+
String get errorContentToInsertIsEmpty =>
550+
'The file to be inserted is empty or cannot be accessed.';
551+
545552
@override
546553
String errorServerVersionUnsupportedMessage(
547554
String url,

0 commit comments

Comments
 (0)