qtranslate-x | Wordpress plugin : Adds user | Content Management System library
kandi X-RAY | qtranslate-x Summary
kandi X-RAY | qtranslate-x Summary
Wordpress plugin: Adds user-friendly and database-friendly multilingual content management and translation support.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Render the title form .
- update an instance
- Displays a widget
- Returns translated url
- Translates a text .
- Returns the translator object .
- Translate a term .
- Get multilingual term
qtranslate-x Key Features
qtranslate-x Examples and Code Snippets
Community Discussions
Trending Discussions on qtranslate-x
QUESTION
I have a Wordpress website with a custom post type that uses custom fields. I have a multilanguage setup with German and English translations. I use the following plugins to get the multilanguage-fuctionality:
- Advanced Custom Fields: qTranslate
- Advanced Custom Fields
- qTranslate slug
- qTranslate-X
On one of my pages I want to display the custom field named Titel
. I use this php code:
The weird thing now is that both the English and German version of this field contain the string Blue
. However, on the German version of the page, this string gets translated to the German version of Blue
which is Blau
. But I do not want this to be translated (that's why I entered Blue
also in the German version of the field). I would assume that simply the string Blue
is then also displayed in the German version. I already spent one hour to find out where/how the string gets translated, but to no avail.
Any help to identify why/how the string gets translated is appreciated.
...ANSWER
Answered 2018-Oct-31 at 13:14It turns out that the _e()
function is a wordpress built in translation function. I replaced it with a simple echo
and now the string does not get translated anymore.
QUESTION
I reinstalled a website after upgrading to wordpress 4.8.1 and I have a fatal error when I activate the qtranslate-xp plugin:
Cannot redeclare qs_base64_serialize() (previously declared in /home/xxx/www/xxx/wp-content/plugins/qtranslate/qtranslate_services.php:80) in /home/xxx/www/xxx/wp-content/plugins/qtranslate-xp/ppqtranslate_services.php on line 91
Here are the lines:
...ANSWER
Answered 2017-Sep-07 at 12:29Try below code
QUESTION
I'm building a new Worpress site with NextGen Gallery. I need it to be multilingual, so I'm using qTranslate-X plugin for translations. But I can not figure out, how to translate NextGen galleries.
I have checked the options 'ngg_album', 'ngg_gallery', 'ngg_pictures' in the qTranslate Configuration. But I can not find, where the translations of these items can be done.
Have I missed something? Can anybody help me to translate NextGen galleries?
Thanks in advance!
...ANSWER
Answered 2017-Sep-04 at 16:53The way I woud try to accomplish this is:
1.) Create a custom NextGen template. According to documentation, you need to:
Make a copy of the file called gallery.php located here: /wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/ngglegacy/view
Make a new folder called nggallery in your theme folder: /wp-content/themes/[theme you have activated]/nggallery
Place your copy of the file called gallery.php here
Rename "gallery.php" to "gallery-templatename.php"
To use, use this shortcode: [ nggallery id=1 template=templatename ]
2.) Now in the gallery-templatename.php template, modify the
echo $gallery->slideshow_link_text
to _e($gallery->slideshow_link_text)
.
3.) All that is left is to use qTranslate language tags in gallery title like [:en]English text[:de]German Text
. For more information about these language tags, check qTranslate documentation.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install qtranslate-x
PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page