Conditional tag for Languages

  1. bluebird2


    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.

    Posted: 5 years ago #
  2. Ellen Hopkins

    This is a great idea that would also help the reader.

    Posted: 3 years ago #
  3. bymiki


    +1 agree

    Posted: 2 years ago #
  4. thewviewer

    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.

    Posted: 2 years ago #
  5. 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.

    Posted: 2 years ago #
  6. ConcertPass

    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.

    Posted: 2 years ago #
  7. Drew Jaynes

    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.

    Posted: 1 year ago #
  8. bluebird2


    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.

    Posted: 1 year ago #
  9. 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.

    Posted: 1 year ago #

RSS feed for this topic


You must log in to post.

  • Rating

    22 Votes
  • Status

    This is plugin territory