• agundabbo

    (@agundabbo)


    Hello guys.
    Is it possibile to create a Text widget with internationalization?
    What I want to do is to insert a Text widget with something like:
    “Rules can be found here “.
    But when I tried to use _e(“Rules…”,’ehmm?’) it does not work.
    How can I do that, if it is possible?
    Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • Translation of a text widget (and your whole site) should be handled by a multilingual plugin. They each have their own way of doing it.

    Evan Herman

    (@eherman24)

    First, you need to prepare it for internationalization using:
    _e("Rules...",'ehmm?')

    You then need to create a .po file and translate the string yourself. The language is determined by wp_lang inside of wp_config.php

    Thread Starter agundabbo

    (@agundabbo)

    Thanks.
    At the end I have done a simple plugin with my widget and use the wp-plugin internationalization.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Text Widget and Link with I18n’ is closed to new replies.