Comments (7)
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.
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.
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.
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.
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.
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.
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)
- excerpt field not showing translation even though it exists in the DB (since upgrade to 6.1)
- Integration in YOAST SEO problem
- Qtranslate Language Switcher Stuck - Chrome HOT 4
- Can't use wp-admin due to a typo in code HOT 1
- Language switcher not available on ACF Option Page HOT 3
- [Slugs] Page titles do not translate HOT 2
- Use of static variable in qtranxf_localeForCurrentLanguage() makes it incompatible with WP switch_to_locale().
- Edition of pages created with WPBakery destroys the data
- Preview description when I'm sending link to the web-site shows all languages with tags
- Titles and Category names are displayed in raw mode when using Quick-Edit
- Optional arguments are sometimes missing `?` in the type.
- Fatal error HOT 5
- [slugs\admin.php] Trying to get property 'name' of non-object in (..)\qtranslate-xt-3.15.2\src\modules\slugs\admin.php on line 578 HOT 1
- Ask: fatal error allowed memory size in wp-content/object-cache.php HOT 4
- Hero button in Onepress theme does not jump to proper language page in some browsers
- Fatal error: Uncaught TypeError: Cannot access offset of type string
- Language folder gets added randomly into htaccess file causing infinite redirect loop HOT 1
- [WC] Add support for WooCommerce's new product editor
- WBR: Page Widget not translating a page in widget
- Setup per-domain feature
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qtranslate-xt.