New Landing How can we help? Themeforest Theme Support Dante Missing translation in .po file

Viewing 15 posts - 1 through 15 (of 17 total)
  • Posted in: Dante
  • #123670
    tynus
    Member
    Post count: 170

    Hi,
    I’ve watched two threads, but one is closed to new replies:

    Missing translations

    The problem is exactly the same as is the case with neighborhood theme mentioned in the above thread;

    – Text ‘There are no reviews yet, would you like to submit yours?’ in a not-yet-reviewed single product page

    Is not to be found in the .po files (dutch)

    Do you have a more up-to-date translation file perhaps?

    #123672
    tynus
    Member
    Post count: 170

    Same goes for the Button ‘Write a review’ in single product page which does have one or more reviews already.

    And “Submit Review” button.
    Basically exactly the same as the above mentioned topic.

    Thanks

    #123739
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Check those inside Woocommerce translation files.

    -Rui

    #123771
    tynus
    Member
    Post count: 170

    Hi,
    Please don’t send me back to woocommerce…read the by me mentioned thread:

    Missing translations

    It’s not in woocommerce, it’s in Dante (and Neighborhood etc.)

    That’s why I opened a thread in Dante forum since there is mentioned in the Neighborhood forum that this is fixed in the last version…
    so it is not in woocommerce, I’ve checked…in woocommerce everything is fine.

    See your thread,please: http://www.swiftideas.com/forums/topic/missing-translations/

    Thanks

    #123774
    tynus
    Member
    Post count: 170

    From within that thread:

    But here’s the surprise: the translations are ‘nog being used’ by the theme. So instead of showing the translated text, the theme is ignoring it and showing the original English text.

    Finally, the third translation string I mentioned in this topic:

    3) Text ‘There are no reviews yet, would you like to submit yours?’ in a not-yet-reviewed single product page

    The .po file really doesn’t contain this string. So if you have a .po file containing this string I am really nuts or we have different files.

    Here is Ed’s reply inside this thread:

    Swift Ideas – Ed
    SEPTEMBER 27, 2013 AT 6:51 AM #24059
    Hey guys,

    Thanks for letting us know about this. I’ve fixed this for the next bugfix update, which will be released very soon!

    – Ed

    #123780
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    In the latest Dante files you can find the text in 2 places.

    1-

    
    echo '<p class="noreviews">'.__( 'There are no reviews yet, would you like to <a href="#review_form" class="inline" data-toggle="modal">submit yours</a>?', 'woocommerce' ).'</p>';
    

    2-

    
    echo '<p>'.__('There are no reviews yet, would you like to <a href="#review_form" class="inline show_review_form">submit yours</a>?', 'woocommerce').'</p>';

    Since the text domain used is ‘woocommerce’ you will have to add those 2 entries in your woocommerce translation file.

    The text that need to be translated are.

    1-
    'There are no reviews yet, would you like to <a href="#review_form" class="inline show_review_form">submit yours</a>?'

    2-
    'There are no reviews yet, would you like to <a href="#review_form" class="inline" data-toggle="modal">submit yours</a>?'

    p.s- I saw that topic before replying but also saw most recent topics with other replies. Since this text has the href in the middle is difficult to find.

    Let us know it it worked.

    -Rui

    #123849
    tynus
    Member
    Post count: 170

    Hi,
    I’ve been looking for over two hours now all around the web, but I can’t find a simpel way to add new strings to an existing .po file 🙁

    Also I don’t know in which files I should look for the 2 sections, in which .php files are they? But if I change these, every time I’ll have to edit the source of these files…with every new update…that’s undoable..

    So, isn’t there another way? I saw that Ed did make changes to the .po files for the Neighborhood theme? Is that .po not usable with Dante, perhaps?

    I only need to just translate these sections to dutch.

    #123859
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    You can replace it directly for now but it should be translated to avoid losing the changes in an update.
    To do it open the file dante\woocommerce\single-product-reviews.php and replace in line 76 and line 191

    To translate you should download the file \plugins\woocommerce\i18n\languages\woocommerce-de_DE.po and open with Poedit software

    Then add the new entries and save it so it can generate the .mo file
    copy the .po and .mo files to the same place at the server \plugins\woocommerce\i18n\languages\

    Check also this documentation
    http://dante.swiftideas.net/documentation/#translation

    -Rui

    #123862
    tynus
    Member
    Post count: 170

    Hi,
    This worked,editing the php file directly.

    When using the poeditor, like I said, It is not possible to add new entries.
    So I would love to do this, but somehow it is impossible to add new entries to this nl_NL .po files (I probably am doing it wrong..)

    Also: I still can’t find the button which says “Write Review” this one I can’t find inside the single-product-reviews.php (see attachement)

    Do you know where I can find this one?

    Thanks for your help

    Attachments:
    You must be logged in to view attached files.
    #123871
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    It’s inside the same file at Dante\woocommerce\single-product-reviews.php

    In the line 66.

    Can you attach your woocommerce .po file inside a zip?

    -Rui

    #123881
    tynus
    Member
    Post count: 170

    Sure,here is the .po file in zip format.

    Thanks

    Attachments:
    You must be logged in to view attached files.
    #123883
    tynus
    Member
    Post count: 170
    This reply has been marked as private.
    #124219
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779
    This reply has been marked as private.
    #124259
    tynus
    Member
    Post count: 170
    This reply has been marked as private.
    #124398
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    No problem.
    -Rui

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