Skip to content

Commit fe345e1

Browse files
committed
feat(l10n): add Arabic and English translations for update URL error message
- Add Arabic translation for "couldNotOpenUpdateUrl" message in app_ar.arb - Add English translation for "couldNotOpenUpdateUrl" message in app_en.arb - Include description and placeholder for the new translation entries
1 parent d84e562 commit fe345e1

File tree

5 files changed

+34
-0
lines changed

5 files changed

+34
-0
lines changed

lib/l10n/app_localizations.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1705,6 +1705,12 @@ abstract class AppLocalizations {
17051705
/// In en, this message translates to:
17061706
/// **'Suggested Sources'**
17071707
String get suggestedSourcesTitle;
1708+
1709+
/// Message displayed in a snackbar when the update URL cannot be opened.
1710+
///
1711+
/// In en, this message translates to:
1712+
/// **'Could not open update URL: {url}'**
1713+
String couldNotOpenUpdateUrl(String url);
17081714
}
17091715

17101716
class _AppLocalizationsDelegate

lib/l10n/app_localizations_ar.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -889,4 +889,9 @@ class AppLocalizationsAr extends AppLocalizations {
889889

890890
@override
891891
String get suggestedSourcesTitle => 'مصادر مقترحة';
892+
893+
@override
894+
String couldNotOpenUpdateUrl(String url) {
895+
return 'تعذر فتح رابط التحديث: $url';
896+
}
892897
}

lib/l10n/app_localizations_en.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -891,4 +891,9 @@ class AppLocalizationsEn extends AppLocalizations {
891891

892892
@override
893893
String get suggestedSourcesTitle => 'Suggested Sources';
894+
895+
@override
896+
String couldNotOpenUpdateUrl(String url) {
897+
return 'Could not open update URL: $url';
898+
}
894899
}

lib/l10n/arb/app_ar.arb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1160,5 +1160,14 @@
11601160
"suggestedSourcesTitle": "مصادر مقترحة",
11611161
"@suggestedSourcesTitle": {
11621162
"description": "عنوان لمجموعة المصادر المقترحة."
1163+
},
1164+
"couldNotOpenUpdateUrl": "تعذر فتح رابط التحديث: {url}",
1165+
"@couldNotOpenUpdateUrl": {
1166+
"description": "رسالة تظهر في شريط الإشعارات عندما يتعذر فتح رابط التحديث.",
1167+
"placeholders": {
1168+
"url": {
1169+
"type": "String"
1170+
}
1171+
}
11631172
}
11641173
}

lib/l10n/arb/app_en.arb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1160,5 +1160,14 @@
11601160
"suggestedSourcesTitle": "Suggested Sources",
11611161
"@suggestedSourcesTitle": {
11621162
"description": "Title for the suggested sources content collection."
1163+
},
1164+
"couldNotOpenUpdateUrl": "Could not open update URL: {url}",
1165+
"@couldNotOpenUpdateUrl": {
1166+
"description": "Message displayed in a snackbar when the update URL cannot be opened.",
1167+
"placeholders": {
1168+
"url": {
1169+
"type": "String"
1170+
}
1171+
}
11631172
}
11641173
}

0 commit comments

Comments
 (0)