Giter Site home page Giter Site logo

Comments (7)

herrvigg avatar herrvigg commented on August 20, 2024

Comment by johnclause
Thursday Feb 26, 2015 at 08:18 GMT


Why it is not available? Is constructed called too early, of textdomain is set too late? Should not we reconcile their sequence? Otherwise, what if we add another widget, we will have to set text domain in each of them? This does not seem to be quite right, does it?

from qtranslate-xt.

herrvigg avatar herrvigg commented on August 20, 2024

Comment by pedro-mendonca
Thursday Feb 26, 2015 at 08:52 GMT


Correct.
I've already tried this solution. Of course it works but I cannot consider it the best way, precisely because it's not identified the cause and it can happen again in some other file.
I'm sure you'll find it's origin now :)

from qtranslate-xt.

herrvigg avatar herrvigg commented on August 20, 2024

Comment by mweimerskirch
Thursday Feb 26, 2015 at 12:00 GMT


I tried changing the priorities, but this is the only way it works. I had a look at a few other plugins (Akismet, GravityForms, ...). They do it the same way. No idea why though :-(

from qtranslate-xt.

herrvigg avatar herrvigg commented on August 20, 2024

Comment by pedro-mendonca
Thursday Feb 26, 2015 at 12:07 GMT


Same here, changed order of php files loading and in the end tried that doble textdomain call in widget.

from qtranslate-xt.

herrvigg avatar herrvigg commented on August 20, 2024

Comment by johnclause
Friday Feb 27, 2015 at 03:52 GMT


It is strange indeed, but there is no time to figure it out, so let it be in for now.

from qtranslate-xt.

herrvigg avatar herrvigg commented on August 20, 2024

Comment by johnclause
Friday Feb 27, 2015 at 04:03 GMT


Actually, https://codex.wordpress.org/Function_Reference/load_plugin_textdomain seem to recommend to run load_plugin_textdomain in 'plugins_loaded' action, so I moved it and it seems to have helped. Let see what else gets broken :) It will be uploaded in 3.2-b3, not yet there.

from qtranslate-xt.

herrvigg avatar herrvigg commented on August 20, 2024

Comment by pedro-mendonca
Friday Feb 27, 2015 at 11:43 GMT


It's ok now, everything translated, core, menu and widget.

from qtranslate-xt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.