Conditional tag for Languages
With the increase of WordPress usage for multi-lingual websites I think there is a need for a conditional tag for different languages. This makes it easy to show an element in the pages in one language and hide it in others.
It also makes it possible to do the same thing using Widget Logic plugin, which I think should be part of WordPress by default.
This is a great idea that would also help the reader.
I didn't understand you fully.. what do you mean a tag?
How do you differentiate German and Spanish?
Will the tag get different values based on different languages?
If that is your intention, I think its a good idea.
I'm actually didn't understand what you this tag will do, but I'm agree with this: Widget Logic plugin should be part of WordPress by default.
I think conditional tags for languages would be a great addon in WP; for my clients I use "Dynamic Widgets" to set conditional logic rules.
This falls squarely into plugin territory as WordPress does not (yet) support multiple languages. Just as you currently rely on plugins to provide multilingual support, you should also rely on those plugin to provide the functionality you're requesting.
First of all WordPress supports multiple languages. It comes with localization files and a CSS file specifically for right-to-left scripts such as Arabic and Hebrew.
Secondly even if it did not it was something WordPress should have considered to add to the core.
It would definitely make things easier If you're asking what I think you're asking.
Ex: Having a widget or a block of text or a form show only If the user is using languages X Y or Z.
If that is the case, yes, it would be useful, for instance If I have a widget that shows the weather for tomorrow but only works in Europe, there's no point in having it be seen by users in the US.
If my company operates in ES then there's no point in a contact form appearing for users in Germany.
I'm not sure If that's something that WordPress considers "Core" features though. Probably something that is more suitable for a plugin.
RSS feed for this topic
You must log in to post.