diff --git a/assets/locales.json b/assets/locales.json index b8ce746da..7c581f239 100644 --- a/assets/locales.json +++ b/assets/locales.json @@ -19068,6 +19068,31 @@ "zh_TW": "" } }, + { + "ID": "LoadSupportedImageFormatDialogTitle", + "Translations": { + "ar_SA": "اختر تنسيق صورة مدعوم", + "de_DE": "Wählen Sie ein unterstütztes Bildformat", + "el_GR": "Επιλέξτε μια υποστηριζόμενη μορφή εικόνας", + "en_US": "Choose a supported image format", + "es_ES": "Elige un formato de imagen compatible", + "fr_FR": "Choisissez un format d'image pris en charge", + "he_IL": "בחר פורמט תמונה נתמך", + "it_IT": "Scegli un formato immagine supportato", + "ja_JP": "サポートされている画像フォーマットを選択", + "ko_KR": "지원되는 이미지 형식을 선택하세요", + "no_NO": "Velg et støttet bildeformat", + "pl_PL": "Wybierz obsługiwany format obrazu", + "pt_BR": "Escolha um formato de imagem compatível", + "ru_RU": "Выберите поддерживаемый формат изображения", + "sv_SE": "Välj ett stödjat bildformat", + "th_TH": "เลือกฟอร์แมตรูปภาพที่รองรับ", + "tr_TR": "Desteklenen bir resim formatı seçin", + "uk_UA": "Виберіть підтримуваний формат зображення", + "zh_CN": "选择一个支持的图片格式", + "zh_TW": "選擇一個支持的圖片格式" + } + }, { "ID": "AllSupportedFormats", "Translations": { diff --git a/src/Ryujinx/UI/Views/User/UserProfileImageSelectorView.axaml.cs b/src/Ryujinx/UI/Views/User/UserProfileImageSelectorView.axaml.cs index 3a5b7c6b7..1b7f4d7fd 100644 --- a/src/Ryujinx/UI/Views/User/UserProfileImageSelectorView.axaml.cs +++ b/src/Ryujinx/UI/Views/User/UserProfileImageSelectorView.axaml.cs @@ -64,6 +64,7 @@ namespace Ryujinx.Ava.UI.Views.User { IReadOnlyList result = await ((Window)this.GetVisualRoot()!).StorageProvider.OpenFilePickerAsync(new FilePickerOpenOptions { + Title = LocaleManager.Instance[LocaleKeys.LoadSupportedImageFormatDialogTitle], AllowMultiple = false, FileTypeFilter = new List { @@ -73,6 +74,30 @@ namespace Ryujinx.Ava.UI.Views.User AppleUniformTypeIdentifiers = ["public.jpeg", "public.png", "com.microsoft.bmp"], MimeTypes = ["image/jpeg", "image/png", "image/bmp"], }, + new("JPG") + { + Patterns = ["*.jpg"], + AppleUniformTypeIdentifiers = ["public.jpeg"], + MimeTypes = ["image/jpeg"], + }, + new("JPEG") + { + Patterns = ["*.jpeg"], + AppleUniformTypeIdentifiers = ["public.jpeg"], + MimeTypes = ["image/jpeg"], + }, + new("PNG") + { + Patterns = ["*.png"], + AppleUniformTypeIdentifiers = ["public.png"], + MimeTypes = ["image/png"], + }, + new("BMP") + { + Patterns = ["*.bmp"], + AppleUniformTypeIdentifiers = ["com.microsoft.bmp"], + MimeTypes = ["image/bmp"], + }, }, });