WordPress.org

Ideas

Conditional tag for Languages

  1. bluebird2
    Member

    12345

    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: 4 years ago #
  2. Ellen Hopkins
    Member

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

    Posted: 1 year ago #
  3. bymiki
    Member

    12345

    +1 agree

    Posted: 1 year ago #
  4. thewviewer
    Member

    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: 1 year 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: 1 year ago #
  6. ConcertPass
    Member

    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: 11 months ago #
  7. Drew Jaynes
    Docs Czar

    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: 3 months ago #
  8. bluebird2
    Member

    12345

    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: 3 months 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: 3 months ago #

RSS feed for this topic

Reply

You must log in to post.

  • Rating

    12345
    21 Votes
  • Status

    This is plugin territory