Language switcher does not show flags or languages - php

I am trying to show the Language switcher. i had created Language switcher in back end and assign to position-7 there is visual the title of Language switcher and also drop-down but there are no any language in drop-down and not a flags.

Related

How to resolve the WPML translation issue on website?

I have one site in WordPress + DIVI + WooCommerce + WPML and other plugins.
I am facing one issue on site while WPML Translation.
Website is in 3 languages:
Dutch (Main)
Franch
English
I need to keep different string for different language for the button text in one module of the DIVI.
I selected English language from adminbar
When I go to Theme Builder -> Global Header and I change the button text to "XYZ", it is reflecting only on English page, that is fine.
Now when I change the language to Dutch
and When I go to Theme Builder -> Global Header and I change the button text to "ABC", then it is reflecting on Dutch and French pages (English page is fine with "XYZ"), this must reflect on Dutch page only If I change the button by selecting the Dutch language
Now when I change the language to French
and When I go to Theme Builder -> Global Header and I change the button text to "DEF", then it is reflecting on Dutch and French pages (English page is fine with "XYZ"), this must reflect on French page only If I change the button by selecting the French language
I checked for String Translation, and updated translation for Dutch and French but it is not reflecting on front side.
When you're switching languages and modifying it manually like this, you are messing up the WPML logic that's handling translations. Page builders are tricky to translate. That's why you need to follow the recommended process.
From documentation:
To translate the Divi site header or footer you created using the Divi
Theme Builder, follow these steps:
Go to WPML > Translation Management. Choose Header Layout, Footer Layout, or Body Layout from the Type dropdown, then click the Filter
button.
Choose which headers or footers you want to translate, the languages you want to translate them into, and click Translate
selected content.
Go to WPML > Translations to take and translate the global header using the Advanced Translation Editor.
Try this with a fresh site with a new global Divi header/footer from scratch.

Add standard top links with language switcher magento

How can I add top links with a language switcher beside it, currently using RWD theme style which has the top links in a drop down box?

Wordpress theme with second language

I didn't find any learn for Multi-Lingual !
1.How to use function _e() ?
2.What's text_domain ? How can i set text_domain ?
e.g:
_e('Mine','text_domain')
in english returns "Mine"
in example language is "imja"
How to set "imja" ?
text_domain is a distinction inside WordPress that allows you to see which plugin or theme text comes from. The text domain can be any string that you want but as a best practice it should be a machine name of the theme or plugin you are building.
So if I had a plugin named MyPlugin I would translate text using any of the WordPress translation functions like:
print __("Translateable Text", "MyPlugin");
_e("Text that is translated then echoed", "MyPlugin");
For WordPress to render these strings in another language, in WordPress 4.0 and above, you can change the language at Settings > General > Site Language and your site will show the text in that language if available.
You will need language files for the language that you wish to change to, and if a plugin or theme doesn't offer a translation for your chosen language it will be rendered in the default language.
There are many tools and plugins for editing the .po/.mo files that hold the translations in WordPress. Some of those can be found in the WordPress translation handbook.

wordpress sidebar content in different languages

I am developing a site in wordpress.I want the particular page from the site in four different languages(English,spanish,french and Dutch).I have used a plugin called WP Native Dashboard.Using this I am able to get the page content in four different languages.I used the combobox to select the language and display the content.This works fine...
I am creating a new page,select the language ,and writing the content in it.For same content in different language i am just writing the page id besides the language name as follows :
Main problem is about the sidebars,footer and the header content.I have one set of sidebar,footer and header in English language.When I select the different language (for example french) the sidebar,footer and header content is displayed in English.
If i try to create another set of sidebar,footer and header in other language and try to create a diffrent page called French left sidebar .In french content if i select the page as shown below:
.and on the site when i select the language as english sidebar content displayed in french language .
so my question is how to get the sidebar content in different language when different language from the combobox are selected.
Create a new page template that loads a custom sidebar. Also checkout http://wpml.org/2011/06/how-to-build-different-sidebars-per-language/

Drupal language navigation

I want to show the language navigation icon on the header of my side. I use locale, i18 and content type translation. I am not interested to use module for language icon, I just want the link of the corresponding node and available languages. How can I achieve this? I am using Drupal 6
If you use the module for the language icons, you will notice that when you are in a certain node, and you press on a different language, you will jump to the same node but in the other language.
In other words, you should change the language switcher from flags to whatever you want..

Categories