Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Boolean_Type

    (@boolean_type)

    Hello there!
    I did the following steps, and they seem to have worked! It can be useful, if u don’t use ACF, but will not harm, if u are ??
    1. Add the key and value for field. Three variants, all of them work, for example:
    [:ru]Кошечка[:en]Kitty
    <!–:ru–>Кошечка<!–:–><!–:en–>Kitty<!–:–>
    <!–:ru–>Кошечка<!–:en–>Kitty
    2. In “functions.php”:
    add_filter(‘the_meta_key’, ‘qtranxf_gettext’);
    Cause qtranxf_gettext(), as I noticed, is a handler for ‘gettext’ hook, which is used in _e()-like functions. I.e., qtranxf_gettext(), roughly speaking, parses strings for translation.
    3. Output is via the_meta() or something like that.

    I dont know, if it works in any case, but looks like simple solution :))

    Thread Starter Boolean_Type

    (@boolean_type)

    Yes, I meant Language Switching Buttons, that I can get by qtranxf_generateLanguageSelectCode() call. I just wanted to figure out why, to know if I’m not mistaken. You explained to me that this is a feature of the plugin. Thanks for answer, John!:)
    U know, maybe, this function is not needed on admin side, cause plugin generates li- element with id “wp-admin-bar-language”. This is enough for admin panel, I think.

Viewing 2 replies - 1 through 2 (of 2 total)