Introducing Quicktags (qT 2.1 and higher)

Having Problems? Need Help? Post here!

Re: Introducing Quicktags (qT 2.1 and higher)

Postby voala » Thu Dec 08, 2011 8:44 pm

I think the question is how you insert the content in that slider. Do you have a plugin for wordpress and the content is inserted thru the admin area of wp or is some php code?
voala
 
Posts: 5
Joined: Sun Nov 27, 2011 12:10 pm

Re: Introducing Quicktags (qT 2.1 and higher)

Postby ashgotti » Thu Dec 22, 2011 3:14 pm

Amazing plugin, been using it for years.

I've purchased a theme that uses uBillboard, which I'm trying to translate using qtranslate. I've managed to get the "read more" button to translate using a method a few pages back, but I don't know how to have the description field translate:
Code: Select all
$out .= '<p>' . apply_filters('uds-billboard-description', stripslashes($b['text']), $bb) . '</p>';
                           if(stripslashes($b['link']) != ''):
                              $out .= '<a href="'. apply_filters('uds-billboard-link', stripslashes($b['link']), $bb) .'" class="read-more">' . __('<!--:en-->Learn More<!--:--><!--:fr-->French Text<!--:-->', 'uds-textdomain') . '</a>';
                           endif;


I can hardcore text, but I want it to pick up whatever text I enter in the backend. I've tried putting <!--:en--> in the description field but it breaks the plugin. I have a feeling I won't be able to use uBillboard and qtranslate. Any ideas?
ashgotti
 
Posts: 1
Joined: Thu Dec 22, 2011 3:11 pm

Re: Introducing Quicktags (qT 2.1 and higher)

Postby servantez » Thu Dec 29, 2011 4:28 am

UrmasK wrote:
Qian Qin wrote:qT does not parse HTML, so you will have to put the text through qT:

Code: Select all
<?php _e('[:en]The Lutheran World Federation
[:de]Lutherischer Weltbund
[:fr]Fédération luthérienne mondiale
[:es]Federacíon luterana mundial'); ?>

This solution works perfectly trhoughout theme files.


How do I translate this?

Code: Select all
<h2><?php comment_form_title( 'Sign My Guestbook', 'Sign My Guestbook to %s' ); ?>!</h2>

I can't use php code within another php code. How can I do it then? :?:

Thanks for your help.
servantez
 
Posts: 1
Joined: Thu Dec 29, 2011 4:24 am

Re: Introducing Quicktags (qT 2.1 and higher)

Postby seanx » Fri Jan 13, 2012 11:36 am

wow this news is good about the Quicktags (qT 2.1 and higher). Keep working on it...
seanx
 
Posts: 1
Joined: Fri Jan 13, 2012 11:34 am

Re: Introducing Quicktags (qT 2.1 and higher)

Postby iraultza » Thu Jan 19, 2012 3:58 pm

Hi, I have a question about quicktags.

I want to do this:

[:es][shortcode1]
[:en][shortcode2]

But on the web it appears in both languagues the text: "[shortcode*] but it doesn`t run the shortcode. How is the way to do this?

Thanks for the answer and sorry for my poor English.
iraultza
 
Posts: 2
Joined: Sun Mar 28, 2010 9:33 pm

Re: Introducing Quicktags (qT 2.1 and higher)

Postby bloppie » Fri Apr 13, 2012 9:15 am

I have a question regarding the Quicktags. I'm using the quicktags in one of the fields of the homepage of the Responsive theme. Entering the Quicktags works fine. The text also becomes multilanguage on the homepage.

The problem is that when the field in the admin is reloaded, the quicktags disappear and only the default language is displayed. How to solve this?

I fixed it. I forgot to change the function call in the theme header.php.
bloppie
 
Posts: 1
Joined: Fri Apr 13, 2012 9:11 am

Re: Introducing Quicktags (qT 2.1 and higher)

Postby akerbelt » Sat May 12, 2012 8:46 pm

hi;
First of all thanks for the quicktags, they resolve me many problems :)
But the [:es]texto[:eu]textua dont works correctly when continues a link. I paste here the code for one of many problems like this

$utility_text = __( 'This entry was posted in %1$s and tagged %2$s by <a href="%6$s">%5$s</a> [:es]Accede[:eu]sartu <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' );

the first lenguage , in this case [:es] , dont appears with the link, the second language [:eu] works correctly. What can i do?

Thanks for all again :P
akerbelt
 
Posts: 2
Joined: Sat May 05, 2012 4:22 pm

Re: Introducing Quicktags (qT 2.1 and higher)

Postby Jorik » Mon May 14, 2012 12:03 pm

I'm quite a newcomer here, I saw this code and I think I would be helpful for me as well, but I'm not sure what I should exactly change in this next link. My default language is Dutch (code: nl), second language English (code: en). Thanks in advance!

[quote="clim"]ie:
Code: Select all
<?php if (qtrans_getLanguage() == 'en') : ?>english html here<?php else : ?>french html here<?php endif; ?>
Jorik
 
Posts: 3
Joined: Tue May 08, 2012 1:32 pm

Re: Introducing Quicktags (qT 2.1 and higher)

Postby visualinfluence » Tue May 22, 2012 10:58 am

Hi All, first of all, thank you keeping these forums alive, i am very new to multilingual support and your resources are invaluable. My question is regarding the "STRIKING THEME" and a number of qtranslate support issues. Your help on the widgets using quicktags is fantastic, but they dont seem to work in these instances.

Portfolio Categories - there is no function to add a language by selection or quicktags - is this easy to fix ? i emailed the author Kaptinlin and they mentioned you guys may be able to create specific TAXONOMIES - which i dont really understand properly to do myself.

there are more but this is the main one at the moment that would be amazing if you can offer advice/support or even fix.

Kind Regards
Chris
visualinfluence
 
Posts: 1
Joined: Mon May 21, 2012 10:30 pm

Re: Introducing Quicktags (qT 2.1 and higher)

Postby Nikola Nikolov » Tue May 22, 2012 11:39 am

In order to have multiple languages for custom taxonomies(like the "Portfolio Categories" - I'm quite sure this is an example of such) you have to:
1) Add your quicktags to the name of each category
2) Before outputting the category's name, simply pass it through either a translation function, or simply apply filters. Here is an example:
Code: Select all
echo apply_filters('the_title', $category_name); // Since qTranslate is hooked to the "the_title" filter it will filter-out only the current language if available
echo __($category_name); // This uses the translator function "__()" - qTranslate is hooked to it as well and will try to display only the current language.


So I suggest that you email back the author of the theme and ask them to check-out these solutions - I've always been using the "apply_filters()" method for the default Categories and it has been working fine. If this doesn't work - simply try with the translator function and that should definitely fix the issue :)
Nikola Nikolov
 
Posts: 175
Joined: Wed May 16, 2012 3:46 pm

PreviousNext

Return to qTranslate Support Forum

Who is online

Users browsing this forum: Google [Bot], Google Adsense [Bot] and 8 guests