Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Dante › Missing translation in .po file
New Landing › How can we help? › Themeforest Theme Support › Dante › Missing translation in .po file
- This topic has 16 replies, 2 voices, and was last updated 10 years by Rui Guerreiro – SUPPORT.
-
Posted in: Dante
-
October 28, 2014 at 12:10 pm #123670
Hi,
I’ve watched two threads, but one is closed to new replies: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?
October 28, 2014 at 12:14 pm #123672Same 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
October 28, 2014 at 3:19 pm #123739Hi,
Check those inside Woocommerce translation files.
-Rui
October 28, 2014 at 4:52 pm #123771Hi,
Please don’t send me back to woocommerce…read the by me mentioned thread: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
October 28, 2014 at 4:55 pm #123774From 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
October 28, 2014 at 5:15 pm #123780In 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
October 28, 2014 at 10:15 pm #123849Hi,
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.
October 28, 2014 at 10:47 pm #123859You 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 191To 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
October 28, 2014 at 11:47 pm #123862Hi,
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.October 29, 2014 at 12:14 am #123871It’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
October 29, 2014 at 1:48 am #123881Sure,here is the .po file in zip format.
Thanks
Attachments:
You must be logged in to view attached files.October 29, 2014 at 1:54 am #123883This reply has been marked as private.October 29, 2014 at 4:32 pm #124219This reply has been marked as private.October 29, 2014 at 7:14 pm #124259This reply has been marked as private.October 30, 2014 at 8:50 am #124398No problem.
-Rui -
Posted in: Dante
You must be logged in and have valid license to reply to this topic.