Ive seen a lot of people offering translation plugins and services but are these all machine translated? Even google machine translation is subpar.
I have two spanish sites that are catered to spanish speakers here in the US.
The articles are human translated, but you’ll note that the WP theme’s in english(“Related Articles”, More articles" etc…) Is there a service that doesnt have BS machine translation where I can translate my WP themes and articles?
If the site is not multi-lingual and Spanish only, WordPress itself is localization ready out of the box and all you need do is find a theme and any plugins you may want that are also localization ready. eg. currently there are 3,392 themes that are “translation ready” in the WordPress theme directory
Thanks, I’ll check it out. I see its a paid solution and I only have two blogs, a Baby blog and a Coffee blog so Im assuming that’s covered by the “Multilingual Blog” option?
Yep, Ive hard to learn that the hard way. Maybe have a human translate the content, and rely on a machine to translate the theme itself is what Im thinking.
Actually, none of the text would be “machine translated”. More like “machine substituted”.
For known text strings that are somewhat hard-coded WordPress uses gettext. Each language has it’s own file. The correctness of the text strings’ spelling, grammar, tense, etc. depends on a human providing the translated text strings.
Basically it’s mapping keys to values depending on the locale. For example
“en”
“Name”: “Name”
“fr”
“Name”: “Nom”
“es”
“Name”: “Nombre”
Where machine translation is important (for WordPress anyway) is when the site is multi-lingual. The interface text is known, but users comments are not. So if the site receives both English and Spanish comments, it would be quite a chore for a human to translate them all.
Looking through the theme directory for your current theme may not be the best use of your time. If you look through your themes folders you should find “po” (portable object) files and “mo” (machine object) files, likely in a “languages” folder.
If you look at your themes template files you should see use of some of the four gettext functions: __() _e() _n() _x()
if( is_single() ) { //If this is a "post"
_e( 'This is a post.' );
}
If your theme isn’t “translation ready” you’ll have some work ahead of you. You will need to create a child theme so your file edits won’t get replaced when you update the theme. And you will need to find all the text strings in the template files you want to be translatable. Then create your own “pot”, “po”, and “mo” files.