Developing for non English sites
-
So it seems that English is the lingua franca for WordPress, which is fine. But it leaves me a bit confused on how to approach developing for sites where English isn’t the first language.
Say I’m developing a theme. This is my nav menu registration.
register_nav_menu('primary', __('Primary header navigation', 'rut-theme-text-domain'));
Here I’m developing from a English first standpoint, and forcing myself to have a translation file for the actual main language of the site. I assume I can’t approach it the other way, and translate to English. We are always translating from English right?
Where I’m getting more confused is actually pregenerated content. My theme might assume a specific post category. Sure I could create that category after site is implemented but I feel it is better to let the theme handle it.
wp_create_category( __('Articles', 'rut-theme-text-domain'));
Would this just work the same way? A category name is more like a post title right, not really a translation file type of string.
- The topic ‘Developing for non English sites’ is closed to new replies.