I’m guessing that you are using language tags around ‘polish textdeutschland text’ i.e. <!--:pl-->polish text<!--:--><!--:de-->deutschland text<!--:-->
but that they got ignored when you posted your answer.
I’m pretty sure what you need to be doing is using the __()
(which returns the translation for use in php code) and _e()
(echo’s direct to screen) wordpress functions. If you look at the qTranslate support forum FAQ #14, he uses the example:
<?php _e("<!--:en-->english text<!--:--><!--:de-->german text<!--:-->"); ?>
In your case I think you want to use:
<?php __(get_option('example')); ?>
This is assuming that you are using it within your plugin. If you’re using it in a page template you’d use:
<?php _e(get_option('example')); ?>
Related Posts:
- Load MediaPlayerElement after Infinity Scroll loads more posts
- How to submit form data in the same page in WordPress without reloading the page?
- How to get the Date Format and Time Format settings for use in my template?
- Localization: I want the backend: english and frontend in defined language
- How to make a script load after Custom Block is loaded in the editor?
- When adding a custom REST endpoint, where do you put the endpoint function, and where do you put the function registration call?
- Custom editor field displaying HTML in Visual editor
- Making a configurable field translatable
- When using the block.getSaveElement hook can you output different markup based on whether or not you are in the edit view or the live page view?
- Getting $comments outside the comment template
- simple expandable vertical menu, java script problem
- How to translate month names in “Archives”
- How wp_ajax_nopriv since WordPress 3.1
- On Install, which code sets the ‘home’ option?
- trying to modify colormag-fr_FR.po
- dynamic external javascript generated using php
- Widget Javascript code (ajax)
- Custom widget select options needs to stay selected after save
- How to display something in a div when the user clicks on a text in another div – no page refresh [closed]
- Custom Login and Registration form in Ajax
- How to link external JavaScript files?
- Include user defined styles without including wp-load
- Calling a php file from a javascript file in wordpress
- add JS to multiple plugin admin pages
- Create simple Cookie Box for WordPress
- how to add custom css and js on wordpress post editor directly without using .php file
- Warning: Creating default object… when altering Customize panels
- Ajax – Call to undefined function get_option()
- Load more posts with multiple queries
- WordPress slugs and 404 handling takes preference over folders in site root?
- Javascript Solution Remove Specific Tag but leave the rest in a specific DIV
- What changes we need to make to a theme so it can be installed as a MU Theme?
- window resizing problem
- Viewing checkout page removes fees from mini cart
- Include custom JS without child theme
- How can I display a PHP foreach loop’s answers by AJAX
- How to add a do_action on refreshing of WP customizer?
- Localization: I want the backend: english and frontend in defined language
- Redirect to another page using contact form 7? [closed]
- Custom Login Process
- WordPress : using AJAX to get posts & Sidebar Content to an external application
- Upload a web module (html and JS) to wordpress
- How to add WordPress JS Script Links
- custom css and javascript not working on page defined as template?
- Translate custom template with WPML
- wp_enqueue_script JS code runs too late (after user begins interacting)
- custom email validation using javascript api with elementor pro and code snippets
- javascript file not working in a plugin template file
- How do I make mysite.com/comingsoon WordPress to become my main website’s WordPress?
- mailchimp integration on a custom footer
- Javascript Tooltip not fully working on my wordpress page
- POST 429 Error when trying to place more than 20 images into post at once
- Where to put coding a validation script for store? [duplicate]
- How to add the option to choose between sizes for featured image within post editor?
- WordPress Customizer: Check for value of CSS selector and replace it
- Jquery wrap permalink in a data-attribute?
- how to auto fille conatct form 7 when user is logined
- How to implement custom Javascript to my site
- Multi-site customization
- AJAX save options inside class
- Edit a custom admin page
- Pass the post ID
- how to register / add multiple options into one field in wordpress?
- Custom options – register, defaults and delete empty fields (Settings API)
- Unable to show messages using ‘admin_notices’
- How to delete orphan userdata from array in wp-options
- retrieve theme custom settings
- Document.body.scrollTop in WordPress
- menu customization
- Adding Custom HTML/CSS/JS code in specific page
- Making custom pages (with an example to explain the goal)
- Prevent posts from being published if the ‘Uncategorized’-category or no category is selected
- Particle.js not loading in WordPress Gutenberg
- Multi color post title by using custom javascript inside the gutenberg editor?
- How to disable the PDF preview in the file block by default
- Add language localisation to javascript alert?
- WordPress Ajaxifying not working properly
- How to customize WordPress vertical menu?
- Echo custom admin field into a is_single()
- Change the template of my Blog entries
- How to send Ajax Call from frontend without using wp_localize_script in Theme
- Need help with drop down list on the profile
- Custom login doesn’t stay
- Send default WooCommerce email when switching from custom order status
- Hosing a website within a WordPress directory/folder
- Query Posts to display all posts with category “custom field value”
- bulk generate wp taxonomy tags from wp title with self php script
- Creating a dynamic URL for an external link inside content
- Combine Categories & Custom Taxonomy
- Child Theme – Changing Header
- remove or hide Link Relationship (XFN) form Menus tab
- Manual Backup – How to save to Firefox or Chrome (instead of IE which brings up popup I can’t get rid of)
- Structure of post types for TV Shows and episodes
- Multiple logo’s in wordpress menu
- How to add custom classes to a WordPress theme HTML tag?
- Dockerized WordPress is having Nginx Proxy Issues
- Local Shortcode Using WordPress Custom Fields
- Two color in one Heading
- Creating custom setting in add media popup
- Still desperate about multiple TinyMCEs in widgets – is there any good solution to this yet?