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?
- Uncaught TypeError: Cannot read property ‘appendChild’ of null
- Backup the Database and Restore from the Backup?
- Scaling a WP eCommerce site
- Limit Media Library to Given Folder
- Integrating the WordPress admin panel with a frontend theme
- Unique User Account Number + Displayed Via Shortcode
- Moving from development while pulling production database without overwriting, to production
- Image upload via FormData API and AJAX is not working ($_FILES always empty)
- Is it possible to add a ribbon in the background of h1 on every page?
- changing font size and font of a custom message added after comment
- Custom wp-content and upload directory
- Lost password empty field error redirect to custom login
- WordPress Custom File Permalink
- WordPress 3.0.1 on IIS 6 Web Server PermaLink Issues
- how to display a specific wordpress menu?
- Remove year from title
- How to append custom text to the output of ‘categories widget’?
- WP Search Form Query: Add Author’s posts into search query
- Trouble with AJAX using GET
- where is admin footer?
- How can i add customisation of text to my theme?
- Custom product status get filtered on all product list views
- URL issue after setting up Custom Structure in Settings >> Permalinks
- Changing starting number of User ID
- How to duplicate “Pages” section in the control panel?
- WordPress Customize panel – accessing the values