Viewing 14 posts - 1 through 14 (of 14 total)
  • #148314
    arredo74
    Member
    Post count: 21

    hello, which is the best practice to avoid to lose the translation of your theme with .po and .mo during the updating?
    Thanks

    p.s: I have another problem:
    in the cart I find this message:
    “No shipping methods were found; please recalculate your shipping or continue to checkout and enter your full address to see if there is shipping available to your location”
    How can i change this text?
    I have found this text in the .po of your theme, so I have translated its, but it doesn’t work (I have already created the file .mo)

    #148319
    arredo74
    Member
    Post count: 21

    for the second: I think that the trouble is in the plugin Codestyling Localization.

    #148321
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    To avoid losing translation on theme updates, add the code below to your child theme functions.php

    Also you will need to create a “languages” folder inside your child theme and paste the .po and .mo files there.

    
    /**
     * Setup My Child Theme's textdomain.
     *
     * Declare textdomain for this child theme.
     * Translations can be filed in the /languages/ directory.
     */
    function my_child_theme_setup() {
        load_child_theme_textdomain( 'swiftframework', get_stylesheet_directory() . '/languages' );
    }
    
    add_action( 'after_setup_theme', 'my_child_theme_setup' );
    

    -Rui

    #148374
    arredo74
    Member
    Post count: 21

    thank you, I have another 3 questions:

    1) after the updating, the “add to cart” button is not the same (link in the private message)
    2) The “Show cart aux option” in the header writes the number in this way “1,000.00”, not in this way 1.000,00″. What should I do?

    3) I have wpml, the language default of the strings is english and the main language of the website is italian. So when I write in the “theme option” menu i write in english, but sometimes the written return to Italian.

    Thanks

    #148375
    arredo74
    Member
    Post count: 21
    This reply has been marked as private.
    #148465
    arredo74
    Member
    Post count: 21

    up

    #148472
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    1)
    Regarding the add to cart button add the code below to your custom css option.
    This fix will sent in the next update.

    
    .woocommerce form.cart button.add_to_cart_button {
        border: 0;
        border-radius: 0;
        box-shadow: none;
        height: 40px;
        padding: 0 15px;
        float: left;
        font-weight: bold!important;
        outline: 0!important;
    }

    2-) did you checked your currency settings in Woocommerce? Try different settings.

    3) Can you explain further with screenshot if possible?

    -Rui

    #148489
    arredo74
    Member
    Post count: 21

    1)thanks
    2) the setting in woocommerce is ok, infact in the product page the price is € 1.000,00
    3)I do an example:
    a)in the theme option, top area, i write “Call us on +39 xxxx xxxxxxx”
    b) in the string translation i translate “Chiamaci al numero +39 xxxx xxxxxx”
    c) after a few of time, if I change other setting of the theme option, in the theme option i see “Chiamaci al numero +39 xxxx xxxxxx” (the english text disappears)

    paolo

    #148770
    arredo74
    Member
    Post count: 21

    Regarding the 1), in the mobile I have yet the trouble

    Regarding the 2), I attach a picture

    Regarding 3) maybe I have not explained well?

    Thanks

    Paolo

    Attachments:
    You must be logged in to view attached files.
    #149390
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779
    This reply has been marked as private.
    #149430
    arredo74
    Member
    Post count: 21
    This reply has been marked as private.
    #149492
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    It’s displaying fine when the page initial loads but then changes to incorrect format.

    It seems to be caused by WPML String translation, can you try to update it to the last version.

    -Rui

    #149728
    arredo74
    Member
    Post count: 21

    Thank you
    Paolo

    #149738
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You most welcome. Great thanks to Rui.
    Thanks
    Mohammad

Viewing 14 posts - 1 through 14 (of 14 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register