Page Breadcrumb & qtranslate plugin

Reports about issues that you encounter in Suffusion
Forum rules
1. No offensive language and no mocking
2. Please do a thorough search before you post something. Trust us, there is a high probability that the question you are asking has been asked previously.
3. No soliciting. You cannot post here soliciting bids for people offer you quotes, or even offer money to people for some work. You will be moderated if you do so. If you are looking for help, please post your request on http://jobs.wordpress.net or http://codepoet.com
4. Please be reasonable. You are getting software and support. For free. Complicated requests from a general purpose theme are not welcome and some volunteers might lose patience with you.
5. Please do your due diligence. If you posted a query and we answered with a link, take the trouble to go through the link contents.
6. Please post with complete information. Requests for help MUST be accompanied with your URL, particularly if you are asking something like "Why am I seeing a blank space?"

Page Breadcrumb & qtranslate plugin

Postby viaestvita » 24 Mar 2012, 05:26

Hi everyone.
I ran into a problem when using the pluginq translate.
In the breadcrumbs displayed titles in all languages.
For example, like this - http://viaestvita.net/en/photo/anton-be ... in-morocco

How do I fix this problem?
viaestvita
 
Posts: 2
Joined: 24 Mar 2012, 05:15

Re: Page Breadcrumb & qtranslate plugin

Postby viaestvita » 24 Mar 2012, 05:42

I found a solution to the problem) This topic, you can to close
In the file breadcrumb-page.php
need to replace
Code: Select all
echo "<a href='".get_permalink($ancestors[$i])."'>".$anc_page->post_title."</a> ".$suf_breadcrumb_separator." ";


to

Code: Select all
echo "<a href='".get_permalink($ancestors[$i])."'>".__($anc_page->post_title)."</a> ".$suf_breadcrumb_separator." ";


Make this change in the next release, please
viaestvita
 
Posts: 2
Joined: 24 Mar 2012, 05:15

Re: Page Breadcrumb & qtranslate plugin

Postby sayontan » 24 Mar 2012, 09:14

Actually I cannot make this change, because from the theme's viewpoint it is wrong. When you say __(...), it means, find the translation of this string and replace it. But if I put this code in the theme, I will have to add the translation for your post title dynamically into my .PO files, which is impossible because I don't know what titles you will be using.

The right way to address this would be for you to create a child theme, then make a copy of breadcrumb-page.php to the custom folder and make the change yourself. That way the changes will stay safe when you upgrade.
Sayontan Sinha | http://mynethome.net/blog | http://www.aquoid.com/news
I don't do freelance work (for Suffusion or otherwise), so please don't contact me for quotes or offers.
sayontan
Site Admin
 
Posts: 10159
Joined: 15 Sep 2009, 16:39
Location: Houston, Texas


Return to Bug Reports

Who is online

Users browsing this forum: No registered users and 3 guests