New Landing How can we help? Themeforest Theme Support Neighborhood Showing 1-24 of 28 products

Viewing 12 posts - 1 through 12 (of 12 total)
  • #67051
    luoja
    Member
    Post count: 27

    Hi,
    Where can I make a translation for this:
    printf( __( ‘Showing %1$d-%2$d of %3$d products’, ‘swiftframework’ ),
    $first, $last, $total );

    I have translated it here but it has no effect (other translations work ok) :
    #. Text in function
    #: neighborhood/woocommerce/loop/result-count.php:32
    msgid “Showing %1$dâ EURO “%2$d of %3$d products”
    msgstr “Näytetään %1$d-%2$d yhteensä %3$d tuloksesta

    #67709
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    How are you translating theme ? Are you using any tool ? Please refer docs here http://neighborhood.swiftideas.net/documentation/#translation to get right steps for translations .

    Thanks 🙂
    With Best Regards
    Swift Ideas

    #70199
    luoja
    Member
    Post count: 27

    Hi,

    I am using the poedit-tool and all the other translations work properly.

    Best Regards
    Luoja

    #70477
    luoja
    Member
    Post count: 27
    This reply has been marked as private.
    #70744
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please upgrade to latest version of theme 1.70 and follow steps one by one as defined at http://neighborhood.swiftideas.net/documentation/#translation .

    Thanks 🙂
    With Best Regards
    Swift Ideas

    #82111
    azura_eyes
    Member
    Post count: 48

    Mohammad,

    I have similar issue (and I have the 1.73 theme version) and I noticed that there is a mix of different strings in the theme. Some are using “__” and some “_e”

    __( ‘Showing all %d products’, ‘swiftframework’ ), $total );
    _e( ‘Product code’, ‘swiftframework’ );

    I thing thats is a copy-paste from woocommerce issue. The theme should only use one type of function name otherwise there are the issues.

    Please give me some input about it! Thanks!

    #82283
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,

    @azura_eyes
    – Can you add this string translation in PO file now as you did before?
    Thanks 🙂
    With Best Regards
    Swift Ideas

    #82387
    azura_eyes
    Member
    Post count: 48

    I did, added it manually, but it did not work. Tried for many hours and then found this solution on based on some other translations and try-and-error 🙂

    I added this line, flag line about PHP format

    #, php-format

    #. Text in function
    #: theme/woocommerce/loop/result-count.php:49
    #, php-format
    msgid "Showing all %d products"
    msgstr "translation"

    And did not find much info about it https://www.gnu.org/software/gettext/manual/html_node/PO-Files.html
    but it worked so I am happy and hope it helps others 🙂

    #82388
    azura_eyes
    Member
    Post count: 48

    So it was issue with the compilation of the po-mo file I think…

    #82455
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I’m glad that tou managed to resolve the issue.
    Thanks 🙂
    With Best Regards
    Swift Ideas

    #82535
    luoja
    Member
    Post count: 27

    Hi Azura,

    Thank you for your help!

    Nina

    #82536
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Glad that your issue resolved.
    With Best Regards
    Swift Ideas

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