jamesmontemagno / MediaPlugin

Take & Pick Photos and Video Plugin for Xamarin and Windows
MIT License
711 stars 360 forks source link

Localization Problem on iOS #943

Open chaoyebugao opened 2 years ago

chaoyebugao commented 2 years ago

Bug Information

Version Number of Plugin:5.1.1-beta Device Tested On:iPhone X(iOS 12) Simulator Tested On: iPhone 8 (iOS 15) Version of VS: VS for mac 2019 Version of Xamarin: 5.0.0.2337 Versions of other things you are using: Xamarin.Essentials 1.7.1

Steps to reproduce the Behavior

  1. CrossMedia.Current.PickPhotosAsync
  2. set MaximumImagesCount with 1 in MultiPickerOptions
  3. set PhotoSelectTitle = "Xxxx" in MultiPickerOptions
  4. Select an album, show photo pick Page as below

Expected Behavior

PhotoSelectTitle should be Xxxx

Actual Behavior

PhotoSelectTitle is Pick Photo

Code snippet

var pickTask = CrossMedia.Current.PickPhotosAsync(
          new PickMediaOptions()
          {
              CompressionQuality = opts.CompressionQuality,
              MaxWidthHeight = opts.MaxWidthHeight,
              PhotoSize = opts.MaxWidthHeight.HasValue ? PhotoSize.MaxWidthHeight : PhotoSize.Full,
          },
          new MultiPickerOptions()
          {
              MaximumImagesCount = opts.MaximumImagesCount,
              AlbumSelectTitle = I18n.MediaPlugin_AlbumSelect,
              BackButtonTitle = I18n.Trade_Exchange_Back,
              DoneButtonTitle = I18n.Com_Done,
              LoadingTitle = I18n.Com_Loading,
              PhotoSelectTitle = I18n.MediaPlugin_PhotoSelect,
          });

Screenshots

647d0c47-003d-4d71-b6ef-7754ec46e385

Other Problem:

There is no Option localization for the alert Only 1 photo please, please consider make a option.