How to change Default Wordpress language? - wordpress

Hello guys I use a WordPress theme it's by default English I want to change it to French when I change it on Wp-Admin only admin interface is changed not the Website
I used some translation plugins like G translate and they give me a multi-language Website but I want the user to see my website in french by default Can anyone helps me please !!!!!

if your Dashboard is in French now but your Front end in English that means that your theme doesn't support Localization or it just doesn't have the files for your selected language.
You can try Loco translate (free plugin from WordPress plugins directory) to check if you can translate the theme output. Mind that Loco translate (and any other of that kind) will work only if your theme supports Localization.
I am not related in any way with Loco translate
https://wordpress.org/plugins/loco-translate/

Related

web set a homepage from an external link

I created a blog in wordpress in French translated into English with the gtranslate plugin, now I want the default home page to be in English how can I force this redirect,
I thought of the htacces file but I don't I don't really know, I've found nothing

Where do all the language files come from under wp-content/languages/plugins

I installed Loco Translate and Polylang. But I'm not sure which plugins were the ones putting the language files under wp-content/languages/plugins.
Are these language files save to delete cos I dont need Loco Translate or Polylang anymore
enter image description here
What you talking about are .po files
Try going to Loco Translate -> Themes/ or Plugins, add/edit a translation and you can see all the translations there
Nvm, I found out. The po and mo files were created by Polylang plugin

Which factor decides the language to be displayed?

I am developing a CMS based on wordpress multi-site approach. So far i have 5 languages and i have created a site for each language.
Idea is when a user go to
www.mydomian.com/uk - displays English version.
www.mydomian.com/es - displays Spanish version.
www.mydomian.com/fr - displays French version.
Now I have reached localisation of my theme. As mentioned in theme developer handbook, i am aware of theme localisation functions and other options in wordpress. But i am confused, how would I inform my theme to load translations based on site which user is selected. for eg. if user is browsing www.mydomian.com/es theme should load all spanish translations.
Please let us know the best options for this.
Every site you add in WordPress multi-site has its own "Site Language" setting, so you don't need to set the locale from your URL pattern. The correct theme translations will be loaded automatically for each site just based on its settings.
If you didn't set the language when you added each site then go into each site's settings and change the field labelled "WPLANG" to "es_ES" and "fr_FR" respectively.
The site settings are found under My Sites > Network Admin > Sites then click edit under the site you want, and then select the "Settings" tab.
Or jump to: wp-admin/network/site-settings.php?id=<siteId> if you know the site ID number.
The site settings screen for multi-site isn't as user friendly as the standalone settings page. There is no dropdown menu for the available languages, so be sure to enter the locale code correctly.
It doesn't matter what you've chosen as your multi-site subdirectory or subdomain patterns just note that the codes you're using in your example are not the official WordPress locale codes.
Spanish is es_ES (not es)
French is fr_FR (not fr):
British English is en_GB (not uk)

existing wordpress website in multiple languages

I have an existing word press website in English language. I want to make a copy of the website in another language. I do not need auto translation as I can enter contents separately. Is there a plugin for this?
Or do I need to have one more wordpress site / subdomain?
There are two ways to go:
WPML or plugin way
WPML or any translation plugin, but personally I find WPML the best option, even though it's not free. The plugin handles everything, string translation, language switcher, page duplication, permalinks etc.
There is also qTranslate, and some others that I've not used.
WPML is the easiest and the best one to use (imo).
WPMU (Wordpress Multi Site)
Other option is creating a multisite (WPMU). Basically you copy the entire wordpress site (and the database), and paste the site to a subfolder on your server that has the name of the translation (if you want German translation you create a de folder).
Then using Search Replace DB script, replace old links in the database with the new ones (matching the folder). And now when you go to www.yoursite.com/de you'll have the same wordpress as the original one, and you can set this one as a German one.
The linking between the two is more tricky since you have to do everything manually (language switcher etc.).
WPMU is lighter on the database then the WPML since you have two separate installations, databases etc. but is less 'automatic'. If you create a post on one wp (English), you'll need to go to the other wp and create it in German. Whereas on WPML there is a duplicate button, so you can just duplicate the page/post etc. and translate it with ease.
Also wpmls 'String Translation' plugin makes it very easy to translate any translatable string inside the theme or plugin you are using. You don't need to pull the .po files, translate them and then paste them back with language code at the end. Wpml does this for you withing the backend.
My opinion: WPML all the way, it's easy and pretty straightforward. Easier for someone who doesn't have that many experience with database transfers etc.

arabic Wordpress website using woo commerce public pages appears in english not in arabic

I'm building Arabic only website, I'm using the woocommerce, i added the Arabic mo and po files to the woo commerce plugin, and the translation working good in the wp admin pages, but it's not working in the public pages the English language keeps appearing.
I tried other languages like french it works fine for both admin and public pages.
Is it because the Arabic is RTL language or it's something else, any one know what is the problem???
My site: www.yasmeenart.com
does your file
wp-config.php
have this line ?
define ('WPLANG', 'ar');
also when you upload your .po and .mo files to woocommerce, files should be this name:
woocommerce-ar.mo
woocommerce-ar.po

Resources