Best practices for displaying a webpage in different languages - wordpress

I would like to deploy a webpage in different languages (German and English). As a backend solution I would use Wordpress running on a nginx/PHP/MySQL stack on Linux.
From various posts here I think that looking at the browser locale (the ACCEPT-LANGUAGE field in HTTP request) is a good first try for setting the correct language. Of course the user will be able to override this and this choice will be stored in a cookie.
So my questions is:
How would one implement that in wordpress? Would one have to deploy two separate wordpress installations one for each language or is there some plugin for it which I have not found yet.

You can use the plugin "WPML". Pretty sure that will do what you want.

#GorillaPatch,
See this question on WordPress Answers on how to add language support to your WordPress theme using the .mo and .po files.

Related

WordPress - multisite + multiple languages

We want to have multiple WP websites (in various countries). Each country's site will have the same template (markup/styles), but slightly different content. The biggest difference will be that each site will be in different languages.
Should we use multisite for this? If so, how do we make each country site a different language?
You can just run multisite and then use a language plugin. I would recommend wpml.org it's not free but it has great multisite support. You can easily activate it in desired sub-sites, and have different languages in each sub-site. I recently used this for a multisite with well over 30 sub-sites, each with their own set of translations/languages.
If you only have need for one language per sub-site, ie controlled via domain, you could just use wpml and skip multisite. Since you still got the possibilities to create different menus and pages in different languages. Then you can tell wpml to listen for either domain (.com should show english content, .es spanish etc..) or you can tell it to listen for sub-domains, ie yourwebpage.com/es/
Hope this helps.
You did not told if the existing answer was useful or not :-(
Still I will add a link to a good resource for others that arrive at this page: http://codex.wordpress.org/Multilingual_WordPress
Cheers,
Gabriel

wordpress internationalization solution

I have a request from a client to enable multiple language selection on his wordpress site. I have tried the http://www.qianqin.de/qtranslate/ and it is good but the problem is that the theme strings are not translated. And this plugin does not have an option for translating theme.
So what are my options for having something like www.mydomain.com/en www.mydomain.com/de www.mydomain.com/fr...?
Do I need to install multiple instances of wordpress to have that?
Or there is a plugin that can translate the theme strings in the same way as qtranslate does for text entries?
What are the best practices please?
Thank you
No, you do not want to have multiple instances of WordPress to handle that. Check WPML and CMSwithTMS. Former is the most advanced and commonly used multilingual publishing plugin for WordPress while latter is more suitable if your client is looking for a more complete workflow solution which uses a professional translation management system.

Translating Wordpress based on user language cookie

Currently have a wordpress installation. I've created .mo files with translations but dont want to use wp-config.php to change the language. I want the language to change for the front end (for things such as "posted by:" etc) based on cookie we are creating when the user switches their language. I can't seem to find any way to do this. Is there a hook somewhere in wordpress where we can show the translations based on user cookie?
Wordpress has already this functionality built in using the gettext utility., with a lot of plugins to facilitate the process for you .
One of the best is with no doubt the qTranslate plugin, which offers a lot of hooks and custom functions and operates in much the same way like you described. And it is free.

How to make a website open automatically in a certain language based on user's location?

I have a multilingual website, and I'm trying to figure out how to make it open automatically in a certain language based on user's location... Could someone refer me to the article or website which describes this?
P.S. I'm using WordPress
You may want to look at the Multi-language switcher plugin http://wordpress.org/extend/plugins/multisite-language-switcher/
First, you need a Plugin for WP as mentioned above. WP does not support multilingual websites by default.
Automatically displaying the right language is not wrong, as long as you have an option for the user to change the language.
The Pro Version should have language detection, but not sure if it is available yet:
https://github.com/inpsyde/multilingual-press

Wordpress: Editing pages with another editor

Relatively simple question, but I can't find the answer: How can I edit static pages (or posts) with my own editor instead of using WordPress? I'm not asking about the details of how to FTP, but instead where can I actually find the pages I created using WordPress in the WordPress directory?
Thanks.
The content of the pages you create are stored in the mySQL database rather than as static files so you cannot just see them if you look through the directory. The software reads out the data from the db when requested and renders it according to various settings.
As for editing your wordpress pages/entries using an external editor, wordpress supports an XML RPC interface which can be used to communicate with it. For an example of an emacs extension to edit WP articles, check out http://www.tolchz.net/2008/01/06/posting-to-wordpress-with-emacs-webloggerel/. I'm sure many other editors have this facility as well (including, I'm led to believe, Microsoft Word).
Finally, if you want to use the web interface but use your own editor for the textboxes where you edit pages/articles, check out the it's all text plugin for Firefox.
Windows Live Writer is an excellent editor for this purpose. The latest version (2011) surprisingly better than the first, which was already more than I expected for a freebie, and a small project team.
Make sure you avoid all the extra "Live" options and just leave the Writer checked for install. And in WP admin settings, enable XML RPC.
wp generates dynamic pages - that means the pages only exist the moment they are requested. You would first need to "statify" them - simply downlowding would do, but there's also plugins that can do this.. Usually needed for optimizing speed/cache
Looking for "wordpress static pages plugin" might help..
PS: this would do the job of making wp 'static'
http://wordpress.org/extend/plugins/really-static/

Resources