existing wordpress website in multiple languages - wordpress

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.

Related

'WordPress' Transliteration of Permalinks Available on one Website, but Not on the Second One

I have two websites, with the same version of 'WordPress' (4.9.1), installed on both (hosted on the same provider). On the first one I set my language to be Serbian Cyrillic. On the second one I made it to be multilingual, by turning on Network Setup. One language is English and second one is Serbian Cyrillic again. When I type in a post or a page title on the first website, WordPress automatically transliterates it from Cyrillic to Latin script (I found this option in the Settings / General section - on the bottom page, and turned it on). HOWEVER, the same option is missing on the second installation of the multilingual / Cyrillic website. Does anybody know why and how to get it back?
I found the file sr_RS.php in \wp-content\languages\ location. And this file was responsible for the field in options and for transliterating permalinks. Probably I've put it over there myself, but it seems now that I forgot that :).
Anyway I found solution and can proceed with building my website.
There is one plugin for the WordPress what can solve your problems regarding complete transliterations and also permalinks.
https://wordpress.org/plugins/serbian-transliteration/

Moving WP site to another domain

I have simple 4.2 WP site with theme Twenty Twelve and Polylang plugin ver. 1.7.6. in domain mysite.co.nf. Now I deciced to move it to another domain mysite.newdmn.eu. I have copyed all files from old domain to new one using FTP. Then have exported DB to SQL script. Have edited SQL script by replacing strings mysite.co.nf with mysite.newdmn.eu using Notepad++. Then I have imported this SQL to my new site DB, edited wp-config to connect to new DB and from first point of view site is running except several things:
No header picture. (Actually this is not problem, but strange..)
No multi language icons and it is not possible to switch between languages.
Can't open one page - new server shows that it not exists. This is simple text page that looks the same like other ones. Link of this page looks the same structure like other pages.
How to solve these problems?
And what is best practices while moving WP sites?
Edit SQL by using editor is always a bad way to update the domain url. Because themes and plugins may serialize php objects into string format and store it in DB. If you replace domain url by using editor, it may break your site.
WordPress codex mentioned : https://codex.wordpress.org/Moving_WordPress#Changing_Your_Domain_Name_and_URLs
If you do a search and replace on your entire database to change the
URLs, you can cause issues with data serialization, due to the fact
that some themes and widgets store values with the length of your URL
marked. When this changes, things break.
The suggested way is to use search and replace tool like https://interconnectit.com/products/search-and-replace-for-wordpress-databases/, or some backup plugin like Duplicator or Backup Buddy.
Also suggested this well written article about WordPress migration.
http://www.smashingmagazine.com/2013/04/moving-wordpress-website/
For me, I always do it by myself without using any plugins. My steps is as follows:
1.move all files under wp-content
2.import db
3.do search and replace by using https://interconnectit.com/products/search-and-replace-for-wordpress-databases/
Few times I had to update not only domain but also file path on server.
But the best you can do is using Backup Buddy (paid) or Duplicator (free) plugin (or any other that fits you, but those two are the best imo, and I do at least few migrations a month).

Changing English text strings from plugins in WordPress (NOT translating)

I have spent hours scouring for a simple answer to this question, to no avail. I've tried three translation plugins also to no avail (WPML, CodeStyling Localization and Loco Translate).
All i want to do is provide my client with a way to define text string changes in WordPress for English. There are NO second languages on the site, I simply want to change one English string for another English string (e.g. change "coupon code" to "discount code"). I would have that there is a standard way to do this, either manually by placing files in wp-content/languages, or by using a plugin that provides an admin interface to edit mo/po files.
CodeStyling Localization is recommended by WooCommerce for editing its text strings - it lists all .mo/.po files and lets you edit the .po then regenerate the .mo. This has no discernible effect on the site, though.
To summarise the situation (i am using latest versions of all mentioned plugins and the WP core):
WordPress is installed with no language definition in wp-config.php (does this mean it defaults to en_US or en_GB - I can't seem to discover that either)? UPDATE: I've stuck to specifying en_GB in wp-config.php now so I can be sure of the language WordPress is running in)
WooCommerce is installed and uses the _e() function for all text strings
CodeStyling localization is installed, and I have successfully edited to en_GB mo/po files and saved and regenerated them
I have confirmed via FTP that the .po file shows the converted text strings once saved
None of the text strings have updated on the frontend
I have tried defining the site language as en_GB in wp-config.php to force the en_GB mo/po files to be loaded for woocommerce, to no avail
All I can guess is that:
The site is ignoring the mo/po files because it thinks there's no "translation" needed because WooCommerce is in English and so is my wordpress install - so it's bypassing the translation files completely
There's a confusion between en_US and en_GB meaning the converted strings aren't loading (maybe the site is en_US but the mo/po i am editing is en_GB, so it's not applying them)
Can anybody shed any light on this?
Thanks
I found the problem: the WPML plugin (which is a translation plugin that supports WooCommerce and multiple currencies) was enabled purely for currency support (not for translations), but had its own default English set to en_US (which overrode my wp-config en_GB settings). This meant none of my changes to en_GB mo/po files for WooCommerce were working. As soon as i corrected WPML's locale for English to en_GB, the changes showed up.

Static html to wordpress migration

I have a static HTML site (about ten years old) which I am going to migrate to a Wordpress site.
I have used Wordpress before but never as a migration target. From some initial background reading I have come up with the following process to perform the migration:
Check hosting provider/package for Wordpress suitability
Generate complete current site map
Make a complete backup of current site
Install Wordpress in subdirectory
Install Maintenance mode plugin and activate
Migrate content to Wordpress instance (looks like this could be
painstaking..)
Install suitable theme
Customise selected theme with Logo/fonts/colours etc.
Deactivate maintenance mode
Make Wordpress site available from domain root
Delete old static html site files
(The migration may take place over several weeks/months so I need the static HTML site to be available until step 10 is completed)
In my naivety are there any pitfalls in the above process, or additional issues I have failed to consider?
Are there any other accepted 'best practices' when performing this kind of migration?
Here's a good tutorial:
http://code.tutsplus.com/tutorials/creating-a-wordpress-theme-from-static-html-creating-template-files--wp-33939
For developers who want the theme converted from HTML in easy way (but no guarantee if it can produce the output as expected):
http://www.htmltowordpressconverter.com/
Hope this was helpful!!!!
WordPress theme styles come in all shapes and sizes. Converting from a static HTML site to something database driven like WordPress can be as easy or complicated as you want.
If you just want to integrate WordPress into an existing HTML theme it's as easy as installing WP, setup the database and config, then building in the old HTML structure using WP. This way everything will be the same but managed within WordPress i.e. Pages, Menus, Sidebars.
Here's are some useful links:
https://codex.wordpress.org/Using_Themes
https://codex.wordpress.org/Theme_Development
https://codex.wordpress.org/Stepping_Into_Templates
And here's a "Start from Scratch" theme that would be simple to start from. Just install it, activate it, then begin migrating the main content i.e. copy and images etc, and building the theme itself.
http://adopttheweb.com/start-from-scratch.zip

Bilingual WordPress Site

I am trying to develop a bilingual site based on WordPress (bilingual sites in Quebec are a necessary reality). The problem is I find automated translators (i.e. Google Translate) do not get the context right.
I noticed during a WordPress install (with Fantastico) I can select the folder where WordPress would live. Would it possible to have set up like:
public_html
|-index.html
|-english_site
|-wordpress install for english
|-french_site
|-wordpress install for french
Is it feasable to have both WordPress installs hook into the same database and media uploads? Or is there a better way to avoid automated translators?
I'd definitely recommend, WPML plugin for handling multilingual sites.
One admin area, every bit of content can have multiple hand crafted translations. Including pages, posts, menus etc. Plugins also get translated if they contain the relevant translation files.
Also supports sub domains, so you could do french.yourdomain.com or yourdomain.com (english / default).
Just notice that if you install any multilingual plugin, you should NOT have multiple WordPress instances. Multilingual plugins use a single WP install to serve several languages.
The language-directories structure that you see in the URL is a virtual thing. You shouldn't have real directories on the server. WordPress should be installed in the root path, not in a language directory.
If you're looking to serve languages from different domains (or subdomains), have a look at this FAQ for how to setup on your DNS and Apache.

Resources