Browse Source

InAppPurchases: check price locale’s language code in backwards compatible way.

tags/2021-05-28
Lukasz Kozakiewicz 8 years ago
parent
commit
2ff20dac63
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/juce_product_unlocking/native/juce_ios_InAppPurchases.cpp

+ 1
- 1
modules/juce_product_unlocking/native/juce_ios_InAppPurchases.cpp View File

@@ -615,7 +615,7 @@ struct InAppPurchases::Pimpl : public SKDelegateAndPaymentObserver
auto identifier = nsStringToJuce (skProduct.productIdentifier);
auto title = nsStringToJuce (skProduct.localizedTitle);
auto description = nsStringToJuce (skProduct.localizedDescription);
auto priceLocale = nsStringToJuce (skProduct.priceLocale.languageCode);
auto priceLocale = nsStringToJuce ([skProduct.priceLocale objectForKey: NSLocaleLanguageCode]);
auto price = nsStringToJuce ([numberFormatter stringFromNumber: skProduct.price]);
[numberFormatter release];


Loading…
Cancel
Save