WordPress.org

Ready to get started?Download WordPress

Forums

WP-Appbox
[resolved] App store price in other language. (8 posts)

  1. Aslan Guseinov
    Member
    Posted 11 months ago #

    I have a request, if this is possible?
    I need to show the price of the app from the appstore in different language.
    Plugin shows lookup result in the language of the country.
    You made a language strings for other stores, but not for appstore.
    So what i want is to lookup results show from estonian store (EE), but in russian language with estonian price. Can you make a language string for appstore?
    Sorry for english.

    http://wordpress.org/extend/plugins/wp-appbox/

  2. Marcelismus
    Member
    Plugin Author

    Posted 11 months ago #

    Unfortunately, I do not know what you mean?

  3. Aslan Guseinov
    Member
    Posted 11 months ago #

    Hi! There is no language string for Apple App Store for word "Price". There is for example a language string for Windows Market
    if($app_price == 'Free') $app_price = __('Kostenlos', 'wp-appbox');
    But not for App Store. Sorry for my english.

  4. Marcelismus
    Member
    Plugin Author

    Posted 11 months ago #

    Isn't App Store in every language 'App Store'? It's a brand...

  5. Aslan Guseinov
    Member
    Posted 11 months ago #

    Funny! I hope this is a joke! I made an experiment, but i'm not a programmer! I edit wp-appbox/inc/class.php file.
    I putted a line:
    if($app_price = 'Free') $app_price = __('Бесплатно', 'wp-appbox');
    Right after this line:
    $app_price = $this_content->formattedPrice;
    And i edit this line:
    $thestoreurl = 'https://itunes.apple.com/us/lookup?id=';
    In to this:
    $thestoreurl = 'https://itunes.apple.com/ee/lookup?country=ee&lang=ru&id=';
    And it worked!

  6. Aslan Guseinov
    Member
    Posted 10 months ago #

    You marked this as a resolved, BUT did you added this line of code to the future update?
    if($app_price = 'Free') $app_price = __('Kostenlos', 'wp-appbox');

    After this line:
    $app_price = $this_content->formattedPrice;

    Or not?

  7. ivalerav
    Member
    Posted 9 months ago #

    Привет) Чтобы поменять название на Цена и Разработчик нужно зайти в wp-appbox/tpl/simple.php и там поменять <span class="developer"><?php _e('Разработчик', 'wp-appbox') и <span class="price"><?php _e('Цена', 'wp-appbox')
    а чтобы показывало цену из нужного магазина вставь в functions.php вот это `//WP-Appbox: Appple AppStore URL
    function wpappbox_get_appstore_url() {
    return('https://itunes.apple.com/ru/lookup?id={APPID}');
    }`
    и поменяй в этом коде ru на нужный тебе магазин

  8. Marcelismus
    Member
    Plugin Author

    Posted 9 months ago #

    Thanks @ivalerav. ;)

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.