how to develop wordpress site in 2 languages?
Tell me please how to develop a WordPress site in 2 or more languages. I have tried some plugins (qTranslate plugin, ZdMultiLang plugin) but is not what i want.
Solutions
You can localize themes and plugins quite easily, you need to read about internationalization (I18n). WordPress codex explains it pretty well: http://codex.wordpress.org/I18n_for_WordPress_Developers.
Any HTML text in your theme files should be output with the i18n functions, this will make the string translatable. For example:
<p>Some text here</p>
should be:
<p><?php _e("Some text here", "textdomain"); ?></p>
You can later translate this exact string with a
POT file
, see here: http://codex.wordpress.org/I18n_for_WordPress_Developers#POT_files
I can't stress how important it is to read the codex on internationalization - it can explain it better than I ever can.
Similar questions
Best way to develop WordPress site filled with pages like this
I got designs for pages that all look pretty much like this: page mixed with editable text/photos and custom post types loops What is the best way to develop theme like this? Let's say client ic complete noob when it comes to HTML/CSS (and even WordPress, which he demands)
Develop or Plugin suggestion for Wordpress site
I need to create a WP site which will have a single membership. Each member will have its own page where the posts added by that user will be displayed. I know Wordpress comes with the default author and posts, but it does allow only premium members to add posts and paid registration/profile. Shall I develop a custom one or there is any available p...
How to develop a community feature in the dashboard for multiauthor site
I run a Wordpress site that has more than 300 authors. Is it possible to create some type of community in the backend (dashboard)? Ideally, a space where the authors can discuss with each other in a thread type of system, with admin news and so on. The closest thing I could find was the Admin Microblog but by reading the description, it appears ver...
Best way to develop a new theme on a live site, with new content?
So I've worked with WP on many different occasions, but always either for a fresh install, or on a low-traffic live site with minor edits done in production. I'm going to be working on an overhaul of a site that is currently live. What I'm doing is not only creating a new theme, but also overhauling almost all of the content. I'm essentially creati...
Also ask