New Landing How can we help? Themeforest Theme Support Neighborhood Problem translation "item in the shopping bag"

Viewing 9 posts - 1 through 9 (of 9 total)
  • #75138
    marcelojardim
    Member
    Post count: 20

    Hi Guys,

    I’m having problems when I try to translate the “item in the shopping bag” in the cart option of the header (same position as the menu).

    I tried to change in:

    sf-header.php

    $cart_output .= ‘<div class=”bag-header”>’.__(“0 item in the shopping bag”, “swiftframework”).'</div>’;

    But it didn’t work.

    Any idea?

    Thanks.

    #75402
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    To translate the static strings, if you aren’t using WPML then I recommend downloading PO Edit, from http://www.poedit.net/. Once you have installed please follow the steps below:

    Open the /neighborhood/languages/ folder and duplicate the en_US.po file, then rename it to your desired language code. For example; for German you need to re-name it as de_DE.po for Spanish es_ES.po for Turkish tr_TR.po etc. You can find all the codes from this link http://codex.wordpress.org/WordPress_in_Your_Language

    Then you will need to open the .po file in PO Edit. Once opened, you will see all strings that needs to be translated. Type the translation of a string into the “Translation” column. Do not delete or edit “Original string” part.

    Hopefully that should work .
    Thanks ๐Ÿ™‚
    With Best Regards
    Swift Ideas

    When you finish translating, save the file. This will create an .mo file in the same directory. Upload the new files into the languages folder of the theme /wp-content/themes/neighborhood/languages/ and then follow this guide: http://codex.wordpress.or/Installing_WordPress_in_Your_Language#Single-Site_Installations

    #75421
    marcelojardim
    Member
    Post count: 20

    Hi Mohammad,

    I did what you said in the entire website, but the only sentence that didn’t translate was this one. It’s really weird =)

    Have no idea what could be.

    Maybe the language file is not working properly?

    Thanks

    #75599
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Can you please attach your sf-header.php and .po translation file to debug issue ?

    Thanks ๐Ÿ™‚
    With Best Regards
    Swift Ideas

    #75604
    marcelojardim
    Member
    Post count: 20

    Thank you Mohammad =)

    I’m attaching all requested files.

    #75608
    marcelojardim
    Member
    Post count: 20

    Files

    #75820
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please open to edit sf-woocommerce.php at /neighborhood/includes/swift-framework/ .to find items in the shopping bag and replace this string .I hope it will resolve your issue easily .

    Thanks ๐Ÿ™‚
    With Best Regards
    Swift Ideas

    #76074
    marcelojardim
    Member
    Post count: 20

    IT worked.

    Thank you very much.

    #76105
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You most welcome . I’m glad that issue resolved .
    Thanks ๐Ÿ™‚
    With Best Regards
    Swift Ideas

Viewing 9 posts - 1 through 9 (of 9 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