chore: Adding translation when saving image.

pull/1424/head
Luís Arteiro 2 years ago
parent 86e06af0db
commit 8d886311b9
  1. 12
      flutter_quill_extensions/lib/embeds/builders.dart
  2. 97
      lib/src/translations/toolbar.i18n.dart

@ -308,22 +308,20 @@ Widget _menuOptionsForReadonlyImage(
messenger.clearSnackBars(); messenger.clearSnackBars();
if (!imageSavedSuccessfully) { if (!imageSavedSuccessfully) {
// TODO: Please translate this messenger.showSnackBar(SnackBar(
messenger.showSnackBar(const SnackBar(
content: Text( content: Text(
'Error while saveing the image', 'Error while saving image'.i18n,
))); )));
return; return;
} }
var message = 'Saved'.i18n; var message;
switch (saveImageResult.method) { switch (saveImageResult.method) {
// TODO: Please translate this too
case SaveImageResultMethod.network: case SaveImageResultMethod.network:
message += ' using the network.'; message = 'Saved using the network'.i18n;
break; break;
case SaveImageResultMethod.localStorage: case SaveImageResultMethod.localStorage:
message += ' using the local storage.'; message = 'Saved using the local storage'.i18n;
break; break;
} }

@ -67,6 +67,9 @@ extension Localization on String {
'Find text': 'Find text', 'Find text': 'Find text',
'Move to previous occurrence': 'Move to previous occurrence', 'Move to previous occurrence': 'Move to previous occurrence',
'Move to next occurrence': 'Move to next occurrence', 'Move to next occurrence': 'Move to next occurrence',
'Saved using the network': 'Saved using the network',
'Saved using the local storage': 'Saved using the local storage',
'Error while saving image': 'Error while saving image',
}, },
'en_us': { 'en_us': {
'Paste a link': 'Paste a link', 'Paste a link': 'Paste a link',
@ -132,6 +135,9 @@ extension Localization on String {
'Find text': 'Find text', 'Find text': 'Find text',
'Move to previous occurrence': 'Move to previous occurrence', 'Move to previous occurrence': 'Move to previous occurrence',
'Move to next occurrence': 'Move to next occurrence', 'Move to next occurrence': 'Move to next occurrence',
'Saved using the network': 'Saved using the network',
'Saved using the local storage': 'Saved using the local storage',
'Error while saving image': 'Error while saving image',
}, },
'ar': { 'ar': {
'Paste a link': 'نسخ الرابط', 'Paste a link': 'نسخ الرابط',
@ -200,6 +206,9 @@ extension Localization on String {
'Find text': 'بحث عن نص', 'Find text': 'بحث عن نص',
'Move to previous occurrence': 'الانتقال إلى الحدث السابق', 'Move to previous occurrence': 'الانتقال إلى الحدث السابق',
'Move to next occurrence': 'الانتقال إلى الحدث التالي', 'Move to next occurrence': 'الانتقال إلى الحدث التالي',
'Saved using the network': 'Saved using the network',
'Saved using the local storage': 'Saved using the local storage',
'Error while saving image': 'Error while saving image',
}, },
'da': { 'da': {
'Paste a link': 'Indsæt link', 'Paste a link': 'Indsæt link',
@ -262,6 +271,9 @@ extension Localization on String {
'Find text': 'Find text', 'Find text': 'Find text',
'Move to previous occurrence': 'Move to previous occurrence', 'Move to previous occurrence': 'Move to previous occurrence',
'Move to next occurrence': 'Move to next occurrence', 'Move to next occurrence': 'Move to next occurrence',
'Saved using the network': 'Saved using the network',
'Saved using the local storage': 'Saved using the local storage',
'Error while saving image': 'Error while saving image',
}, },
'de': { 'de': {
'Paste a link': 'Link hinzufügen', 'Paste a link': 'Link hinzufügen',
@ -324,6 +336,9 @@ extension Localization on String {
'Find text': 'Text suchen', 'Find text': 'Text suchen',
'Move to previous occurrence': 'Zum vorherigen Auftreten springen', 'Move to previous occurrence': 'Zum vorherigen Auftreten springen',
'Move to next occurrence': 'Zum nächsten Auftreten springen', 'Move to next occurrence': 'Zum nächsten Auftreten springen',
'Saved using the network': 'Saved using the network',
'Saved using the local storage': 'Saved using the local storage',
'Error while saving image': 'Error while saving image',
}, },
'fr': { 'fr': {
'Paste a link': 'Coller un lien', 'Paste a link': 'Coller un lien',
@ -386,6 +401,9 @@ extension Localization on String {
'Find text': 'Find text', 'Find text': 'Find text',
'Move to previous occurrence': 'Move to previous occurrence', 'Move to previous occurrence': 'Move to previous occurrence',
'Move to next occurrence': 'Move to next occurrence', 'Move to next occurrence': 'Move to next occurrence',
'Saved using the network': 'Saved using the network',
'Saved using the local storage': 'Saved using the local storage',
'Error while saving image': 'Error while saving image',
}, },
'zh_cn': { 'zh_cn': {
'Paste a link': '粘贴链接', 'Paste a link': '粘贴链接',
@ -448,6 +466,9 @@ extension Localization on String {
'Find text': '搜索文本', 'Find text': '搜索文本',
'Move to previous occurrence': '上一个匹配项', 'Move to previous occurrence': '上一个匹配项',
'Move to next occurrence': '下一个匹配项', 'Move to next occurrence': '下一个匹配项',
'Saved using the network': 'Saved using the network',
'Saved using the local storage': 'Saved using the local storage',
'Error while saving image': 'Error while saving image',
}, },
'zh_hk': { 'zh_hk': {
'Paste a link': '貼上連結', 'Paste a link': '貼上連結',
@ -510,6 +531,9 @@ extension Localization on String {
'Find text': '搜尋文本', 'Find text': '搜尋文本',
'Move to previous occurrence': '上一個匹配項', 'Move to previous occurrence': '上一個匹配項',
'Move to next occurrence': '下一個匹配項', 'Move to next occurrence': '下一個匹配項',
'Saved using the network': 'Saved using the network',
'Saved using the local storage': 'Saved using the local storage',
'Error while saving image': 'Error while saving image',
}, },
'ja': { 'ja': {
'Paste a link': 'リンクをペースト', 'Paste a link': 'リンクをペースト',
@ -572,6 +596,9 @@ extension Localization on String {
'Find text': '検索テキスト', 'Find text': '検索テキスト',
'Move to previous occurrence': '前のマッチ', 'Move to previous occurrence': '前のマッチ',
'Move to next occurrence': '次のマッチ', 'Move to next occurrence': '次のマッチ',
'Saved using the network': 'Saved using the network',
'Saved using the local storage': 'Saved using the local storage',
'Error while saving image': 'Error while saving image',
}, },
'ko': { 'ko': {
'Paste a link': '링크를 붙여넣어 주세요.', 'Paste a link': '링크를 붙여넣어 주세요.',
@ -634,6 +661,9 @@ extension Localization on String {
'Find text': 'Find text', 'Find text': 'Find text',
'Move to previous occurrence': 'Move to previous occurrence', 'Move to previous occurrence': 'Move to previous occurrence',
'Move to next occurrence': 'Move to next occurrence', 'Move to next occurrence': 'Move to next occurrence',
'Saved using the network': 'Saved using the network',
'Saved using the local storage': 'Saved using the local storage',
'Error while saving image': 'Error while saving image',
}, },
'ru': { 'ru': {
'Paste a link': 'Вставить ссылку', 'Paste a link': 'Вставить ссылку',
@ -696,6 +726,9 @@ extension Localization on String {
'Find text': 'Find text', 'Find text': 'Find text',
'Move to previous occurrence': 'Move to previous occurrence', 'Move to previous occurrence': 'Move to previous occurrence',
'Move to next occurrence': 'Move to next occurrence', 'Move to next occurrence': 'Move to next occurrence',
'Saved using the network': 'Saved using the network',
'Saved using the local storage': 'Saved using the local storage',
'Error while saving image': 'Error while saving image',
}, },
'es': { 'es': {
'Paste a link': 'Pega un enlace', 'Paste a link': 'Pega un enlace',
@ -758,6 +791,9 @@ extension Localization on String {
'Find text': 'Find text', 'Find text': 'Find text',
'Move to previous occurrence': 'Move to previous occurrence', 'Move to previous occurrence': 'Move to previous occurrence',
'Move to next occurrence': 'Move to next occurrence', 'Move to next occurrence': 'Move to next occurrence',
'Saved using the network': 'Saved using the network',
'Saved using the local storage': 'Saved using the local storage',
'Error while saving image': 'Error while saving image',
}, },
'tr': { 'tr': {
'Paste a link': 'Bağlantıyı Yapıştır', 'Paste a link': 'Bağlantıyı Yapıştır',
@ -820,6 +856,9 @@ extension Localization on String {
'Find text': 'Find text', 'Find text': 'Find text',
'Move to previous occurrence': 'Move to previous occurrence', 'Move to previous occurrence': 'Move to previous occurrence',
'Move to next occurrence': 'Move to next occurrence', 'Move to next occurrence': 'Move to next occurrence',
'Saved using the network': 'Saved using the network',
'Saved using the local storage': 'Saved using the local storage',
'Error while saving image': 'Error while saving image',
}, },
'uk': { 'uk': {
'Paste a link': 'Вставити посилання', 'Paste a link': 'Вставити посилання',
@ -882,6 +921,9 @@ extension Localization on String {
'Find text': 'Find text', 'Find text': 'Find text',
'Move to previous occurrence': 'Move to previous occurrence', 'Move to previous occurrence': 'Move to previous occurrence',
'Move to next occurrence': 'Move to next occurrence', 'Move to next occurrence': 'Move to next occurrence',
'Saved using the network': 'Saved using the network',
'Saved using the local storage': 'Saved using the local storage',
'Error while saving image': 'Error while saving image',
}, },
'pt': { 'pt': {
'Paste a link': 'Colar um link', 'Paste a link': 'Colar um link',
@ -944,6 +986,10 @@ extension Localization on String {
'Find text': 'Find text', 'Find text': 'Find text',
'Move to previous occurrence': 'Move to previous occurrence', 'Move to previous occurrence': 'Move to previous occurrence',
'Move to next occurrence': 'Move to next occurrence', 'Move to next occurrence': 'Move to next occurrence',
'Saved using the network': 'Guardado através da network',
'Saved using the local storage':
'Guardado através do armazenamento local',
'Error while saving image': 'Erro a gravar imagem',
}, },
'pt_br': { 'pt_br': {
'Paste a link': 'Colar um link', 'Paste a link': 'Colar um link',
@ -1006,6 +1052,9 @@ extension Localization on String {
'Find text': 'Find text', 'Find text': 'Find text',
'Move to previous occurrence': 'Move to previous occurrence', 'Move to previous occurrence': 'Move to previous occurrence',
'Move to next occurrence': 'Move to next occurrence', 'Move to next occurrence': 'Move to next occurrence',
'Saved using the network': 'Saved using the network',
'Saved using the local storage': 'Saved using the local storage',
'Error while saving image': 'Error while saving image',
}, },
'pl': { 'pl': {
'Paste a link': 'Wklej link', 'Paste a link': 'Wklej link',
@ -1068,6 +1117,9 @@ extension Localization on String {
'Find text': 'Find text', 'Find text': 'Find text',
'Move to previous occurrence': 'Move to previous occurrence', 'Move to previous occurrence': 'Move to previous occurrence',
'Move to next occurrence': 'Move to next occurrence', 'Move to next occurrence': 'Move to next occurrence',
'Saved using the network': 'Saved using the network',
'Saved using the local storage': 'Saved using the local storage',
'Error while saving image': 'Error while saving image',
}, },
'vi': { 'vi': {
'Paste a link': 'Chèn liên kết', 'Paste a link': 'Chèn liên kết',
@ -1130,6 +1182,9 @@ extension Localization on String {
'Find text': 'Find text', 'Find text': 'Find text',
'Move to previous occurrence': 'Move to previous occurrence', 'Move to previous occurrence': 'Move to previous occurrence',
'Move to next occurrence': 'Move to next occurrence', 'Move to next occurrence': 'Move to next occurrence',
'Saved using the network': 'Saved using the network',
'Saved using the local storage': 'Saved using the local storage',
'Error while saving image': 'Error while saving image',
}, },
'ur': { 'ur': {
'Paste a link': 'لنک پیسٹ کریں', 'Paste a link': 'لنک پیسٹ کریں',
@ -1192,6 +1247,9 @@ extension Localization on String {
'Find text': 'Find text', 'Find text': 'Find text',
'Move to previous occurrence': 'Move to previous occurrence', 'Move to previous occurrence': 'Move to previous occurrence',
'Move to next occurrence': 'Move to next occurrence', 'Move to next occurrence': 'Move to next occurrence',
'Saved using the network': 'Saved using the network',
'Saved using the local storage': 'Saved using the local storage',
'Error while saving image': 'Error while saving image',
}, },
'id': { 'id': {
'Paste a link': 'Tempel tautan', 'Paste a link': 'Tempel tautan',
@ -1254,6 +1312,9 @@ extension Localization on String {
'Find text': 'Find text', 'Find text': 'Find text',
'Move to previous occurrence': 'Move to previous occurrence', 'Move to previous occurrence': 'Move to previous occurrence',
'Move to next occurrence': 'Move to next occurrence', 'Move to next occurrence': 'Move to next occurrence',
'Saved using the network': 'Saved using the network',
'Saved using the local storage': 'Saved using the local storage',
'Error while saving image': 'Error while saving image',
}, },
'no': { 'no': {
'Paste a link': 'Lim inn lenke', 'Paste a link': 'Lim inn lenke',
@ -1316,6 +1377,9 @@ extension Localization on String {
'Find text': 'Find text', 'Find text': 'Find text',
'Move to previous occurrence': 'Move to previous occurrence', 'Move to previous occurrence': 'Move to previous occurrence',
'Move to next occurrence': 'Move to next occurrence', 'Move to next occurrence': 'Move to next occurrence',
'Saved using the network': 'Saved using the network',
'Saved using the local storage': 'Saved using the local storage',
'Error while saving image': 'Error while saving image',
}, },
'fa': { 'fa': {
'Paste a link': 'جایگذاری لینک', 'Paste a link': 'جایگذاری لینک',
@ -1378,6 +1442,9 @@ extension Localization on String {
'Find text': 'Find text', 'Find text': 'Find text',
'Move to previous occurrence': 'Move to previous occurrence', 'Move to previous occurrence': 'Move to previous occurrence',
'Move to next occurrence': 'Move to next occurrence', 'Move to next occurrence': 'Move to next occurrence',
'Saved using the network': 'Saved using the network',
'Saved using the local storage': 'Saved using the local storage',
'Error while saving image': 'Error while saving image',
}, },
'hi': { 'hi': {
'Paste a link': 'िक पट कर', 'Paste a link': 'िक पट कर',
@ -1440,6 +1507,9 @@ extension Localization on String {
'Find text': 'Find text', 'Find text': 'Find text',
'Move to previous occurrence': 'Move to previous occurrence', 'Move to previous occurrence': 'Move to previous occurrence',
'Move to next occurrence': 'Move to next occurrence', 'Move to next occurrence': 'Move to next occurrence',
'Saved using the network': 'Saved using the network',
'Saved using the local storage': 'Saved using the local storage',
'Error while saving image': 'Error while saving image',
}, },
'nl': { 'nl': {
'Paste a link': 'Plak een link', 'Paste a link': 'Plak een link',
@ -1502,6 +1572,9 @@ extension Localization on String {
'Find text': 'Find text', 'Find text': 'Find text',
'Move to previous occurrence': 'Move to previous occurrence', 'Move to previous occurrence': 'Move to previous occurrence',
'Move to next occurrence': 'Move to next occurrence', 'Move to next occurrence': 'Move to next occurrence',
'Saved using the network': 'Saved using the network',
'Saved using the local storage': 'Saved using the local storage',
'Error while saving image': 'Error while saving image',
}, },
'sr': { 'sr': {
'Paste a link': 'Nalepi vezu', 'Paste a link': 'Nalepi vezu',
@ -1564,6 +1637,9 @@ extension Localization on String {
'Find text': 'Find text', 'Find text': 'Find text',
'Move to previous occurrence': 'Move to previous occurrence', 'Move to previous occurrence': 'Move to previous occurrence',
'Move to next occurrence': 'Move to next occurrence', 'Move to next occurrence': 'Move to next occurrence',
'Saved using the network': 'Saved using the network',
'Saved using the local storage': 'Saved using the local storage',
'Error while saving image': 'Error while saving image',
}, },
'cs': { 'cs': {
'Paste a link': 'Vložte odkaz', 'Paste a link': 'Vložte odkaz',
@ -1626,6 +1702,9 @@ extension Localization on String {
'Find text': 'Find text', 'Find text': 'Find text',
'Move to previous occurrence': 'Move to previous occurrence', 'Move to previous occurrence': 'Move to previous occurrence',
'Move to next occurrence': 'Move to next occurrence', 'Move to next occurrence': 'Move to next occurrence',
'Saved using the network': 'Saved using the network',
'Saved using the local storage': 'Saved using the local storage',
'Error while saving image': 'Error while saving image',
}, },
'he': { 'he': {
'Paste a link': 'הדבק את הלינק', 'Paste a link': 'הדבק את הלינק',
@ -1688,6 +1767,9 @@ extension Localization on String {
'Find text': 'Find text', 'Find text': 'Find text',
'Move to previous occurrence': 'Move to previous occurrence', 'Move to previous occurrence': 'Move to previous occurrence',
'Move to next occurrence': 'Move to next occurrence', 'Move to next occurrence': 'Move to next occurrence',
'Saved using the network': 'Saved using the network',
'Saved using the local storage': 'Saved using the local storage',
'Error while saving image': 'Error while saving image',
}, },
'ms': { 'ms': {
'Paste a link': 'Tampal Pautan', 'Paste a link': 'Tampal Pautan',
@ -1750,6 +1832,9 @@ extension Localization on String {
'Find text': 'Find text', 'Find text': 'Find text',
'Move to previous occurrence': 'Move to previous occurrence', 'Move to previous occurrence': 'Move to previous occurrence',
'Move to next occurrence': 'Move to next occurrence', 'Move to next occurrence': 'Move to next occurrence',
'Saved using the network': 'Saved using the network',
'Saved using the local storage': 'Saved using the local storage',
'Error while saving image': 'Error while saving image',
}, },
'it': { 'it': {
'Paste a link': 'Incolla un collegamento', 'Paste a link': 'Incolla un collegamento',
@ -1812,6 +1897,9 @@ extension Localization on String {
'Find text': 'Find text', 'Find text': 'Find text',
'Move to previous occurrence': 'Move to previous occurrence', 'Move to previous occurrence': 'Move to previous occurrence',
'Move to next occurrence': 'Move to next occurrence', 'Move to next occurrence': 'Move to next occurrence',
'Saved using the network': 'Saved using the network',
'Saved using the local storage': 'Saved using the local storage',
'Error while saving image': 'Error while saving image',
}, },
'bn': { 'bn': {
'Paste a link': 'িক পট কর', 'Paste a link': 'িক পট কর',
@ -1877,6 +1965,9 @@ extension Localization on String {
'Find text': 'Find text', 'Find text': 'Find text',
'Move to previous occurrence': 'Move to previous occurrence', 'Move to previous occurrence': 'Move to previous occurrence',
'Move to next occurrence': 'Move to next occurrence', 'Move to next occurrence': 'Move to next occurrence',
'Saved using the network': 'Saved using the network',
'Saved using the local storage': 'Saved using the local storage',
'Error while saving image': 'Error while saving image',
}, },
'tk': { 'tk': {
'Paste a link': 'Baglanyşygy goýuň', 'Paste a link': 'Baglanyşygy goýuň',
@ -1942,6 +2033,9 @@ extension Localization on String {
'Find text': 'Tekst tapyň', 'Find text': 'Tekst tapyň',
'Move to previous occurrence': 'Öňki hadysa geçiň', 'Move to previous occurrence': 'Öňki hadysa geçiň',
'Move to next occurrence': 'Indiki hadysa geçiň', 'Move to next occurrence': 'Indiki hadysa geçiň',
'Saved using the network': 'Saved using the network',
'Saved using the local storage': 'Saved using the local storage',
'Error while saving image': 'Error while saving image',
}, },
'bg': { 'bg': {
'Paste a link': 'Поставете връзка', 'Paste a link': 'Поставете връзка',
@ -2007,6 +2101,9 @@ extension Localization on String {
'Find text': 'Намери текст', 'Find text': 'Намери текст',
'Move to previous occurrence': 'Премести към предишното съвпадение', 'Move to previous occurrence': 'Премести към предишното съвпадение',
'Move to next occurrence': 'Премести към следващото съвпадение', 'Move to next occurrence': 'Премести към следващото съвпадение',
'Saved using the network': 'Saved using the network',
'Saved using the local storage': 'Saved using the local storage',
'Error while saving image': 'Error while saving image',
}, },
}; };

Loading…
Cancel
Save