Skip to content

Commit

Permalink
Added support for Urdu language (bdlukaa#832)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdlukaa authored May 10, 2023
2 parents b01cbb7 + 1936d09 commit b7768ab
Show file tree
Hide file tree
Showing 6 changed files with 148 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
## next

- Upgrade the `scroll_pos` dependency (from @WinXaito) to version v0.4.0 ([#831](https://github.com/bdlukaa/fluent_ui/pull/831))
- Added support for Urdu language ([#832](https://github.com/bdlukaa/fluent_ui/pull/832))


## 4.5.1

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ FluentUI widgets currently supports out-of-the-box an wide number of languages,
- Turkish (@timurturbil)
- Spanish (@henry2man)
- Ukranian (@vadimbarda)
- Urdu (@sherazahmad720)
- Uzbek (@bobobekturdiyev)

If a language is not supported, your app may crash. You can [add support for a new language](#contributing-new-localizations) or use a supported language. [Learn more](https://github.com/bdlukaa/fluent_ui/issues/371)
Expand Down
5 changes: 5 additions & 0 deletions lib/l10n/generated/fluent_localizations.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import 'fluent_localizations_ta.dart';
import 'fluent_localizations_th.dart';
import 'fluent_localizations_tr.dart';
import 'fluent_localizations_uk.dart';
import 'fluent_localizations_ur.dart';
import 'fluent_localizations_uz.dart';
import 'fluent_localizations_zh.dart';

Expand Down Expand Up @@ -150,6 +151,7 @@ abstract class FluentLocalizations {
Locale('th'),
Locale('tr'),
Locale('uk'),
Locale('ur'),
Locale('uz'),
Locale('zh'),
Locale.fromSubtags(languageCode: 'zh', scriptCode: 'Hant')
Expand Down Expand Up @@ -383,6 +385,7 @@ class _FluentLocalizationsDelegate
'th',
'tr',
'uk',
'ur',
'uz',
'zh'
].contains(locale.languageCode);
Expand Down Expand Up @@ -464,6 +467,8 @@ FluentLocalizations lookupFluentLocalizations(Locale locale) {
return FluentLocalizationsTr();
case 'uk':
return FluentLocalizationsUk();
case 'ur':
return FluentLocalizationsUr();
case 'uz':
return FluentLocalizationsUz();
case 'zh':
Expand Down
101 changes: 101 additions & 0 deletions lib/l10n/generated/fluent_localizations_ur.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
import 'fluent_localizations.dart';

/// The translations for Urdu (`ur`).
class FluentLocalizationsUr extends FluentLocalizations {
FluentLocalizationsUr([String locale = 'ur']) : super(locale);

@override
String get backButtonTooltip => 'Back';

@override
String get closeButtonLabel => 'Close';

@override
String get searchLabel => 'Search';

@override
String get closeNavigationTooltip => 'Close Navigation';

@override
String get openNavigationTooltip => 'Open Navigation';

@override
String get clickToSearch => 'Click to search';

@override
String get modalBarrierDismissLabel => 'Dismiss';

@override
String get minimizeWindowTooltip => 'Minimize';

@override
String get restoreWindowTooltip => 'Restore';

@override
String get closeWindowTooltip => 'Close';

@override
String get dialogLabel => 'Dialog';

@override
String get cutActionLabel => 'Cut';

@override
String get copyActionLabel => 'Copy';

@override
String get pasteActionLabel => 'Paste';

@override
String get selectAllActionLabel => 'Select all';

@override
String get newTabLabel => 'Add new tab';

@override
String get closeTabLabelSuffix => 'Close tab';

@override
String get scrollTabBackwardLabel => 'Scroll tab list backward';

@override
String get scrollTabForwardLabel => 'Scroll tab list forward';

@override
String get noResultsFoundLabel => 'No results found';

@override
String get copyActionTooltip => 'Copy the selected content to the clipboard';

@override
String get cutActionTooltip =>
'Remove the selected content and put it in the clipboard';

@override
String get pasteActionTooltip =>
'Inserts the contents of the clipboard at the current location';

@override
String get selectAllActionTooltip => 'Select all content';

@override
String get hour => 'hour';

@override
String get minute => 'minute';

@override
String get am => 'AM';

@override
String get pm => 'PM';

@override
String get month => 'month';

@override
String get day => 'day';

@override
String get year => 'year';
}
34 changes: 34 additions & 0 deletions lib/l10n/intl_ur.arb
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"@@locale": "ur",
"backButtonTooltip": "آگے",
"closeButtonLabel": "بند",
"searchLabel": "تلاش کریں,
"closeNavigationTooltip": "نیویگیشن بند کریں۔",
"openNavigationTooltip": "نیویگیشن کھولیں۔",
"clickToSearch": "تلاش کرنے کے لیے کلک کریں۔",
"modalBarrierDismissLabel": "برطرف کریں",
"minimizeWindowTooltip": "کم سے کم کریں",
"restoreWindowTooltip": "بحال کریں",
"closeWindowTooltip": "بند کریں",
"dialogLabel": "ڈائیلاگ",
"cutActionLabel": "کاپی کریں",
"copyActionLabel": "کاپی کریں",
"pasteActionLabel": "پیسٹ کریں"،
"selectAllActionLabel": "سب کچھ منتخب کریں",
"newTabLabel": "نیا ٹیب کھولیں۔",
"closeTabLabelSuffix": "بند کریں",
"scrollTabBackwardLabel": "ٹیب کی فہرست کو پیچھے کی طرف اسکرول کریں۔",
"scrollTabForwardLabel": "ٹیب کی فہرست کو آگے اسکرول کریں۔",
"noResultsFoundLabel": "کوئی نتائج نہیں ملے۔",
"copyActionTooltip": "منتخب کردہ مواد کو کلپ بورڈ میں کاپی کریں۔",
"cutActionTooltip": "منتخب کردہ مواد کو ہٹائیں اور اسے کلپ بورڈ میں رکھیں",
"pasteActionTooltip": "کلپ بورڈ کے مواد کو موجودہ مقام پر داخل کریں۔",
"selectAllActionTooltip": "تمام مواد کو منتخب کریں۔",
"hour": "گھنٹہ",
"minute": "منٹ",
"am": "AM",
"pm": "PM",
"month": "مہینہ",
"day": "دِن",
"year": "سال",
}
5 changes: 5 additions & 0 deletions lib/l10n/untranslated.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@
"day",
"year"
],
"ur": [

"am",
"pm"
],
"uk": [
"am",
"pm"
Expand Down

0 comments on commit b7768ab

Please sign in to comment.