• Resolved darenhunter

    (@darenhunter)


    Hi There:

    I am using WordPress Popular Posts Widget and Recently Updated Pages Widget and I have a problem that the post titles that the widgets present are duplicated. Meaning – they show HomeHome or Home返回主页. Instead of Home or 返回主页.

    In WordPress Popular Posts – they had support for qTranslate by using:

    else if ( $this->qTrans && function_exists('qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage') ) {
                                    $title = qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage( $p->title );
                            } // Use ol' plain title

    I tried changing to qtranxf_useCurrentLanguageIfNotFoundUseDefaultLanguage but that didn’t seem to help.

    Any ideas? Thanks!

    https://www.ads-software.com/plugins/qtranslate-x/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter darenhunter

    (@darenhunter)

    In theory – couldn’t I just put __() around $title and have it work correctly and ditch the calls to usecurrentlanguageifnotfound?

    Plugin Author John Clause

    (@johnclause)

    I agree, they should not use a direct call to that function, however, since 2.9.2, there is option “Compatibility Functions”, which enables the number of legacy functions to exist.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Double Titles in Plugins/Widgets’ is closed to new replies.