Problem/Motivation
A language context would be an easy way to make e.g. panels caches language aware (Context based cid).
Further it would be handy to be able to react on / use properties of a language.
Proposed resolution
The attached patch defines a context with a variety of settings that make it very flexible.
Remaining tasks
Reviews needed
User interface changes
None
API changes
None
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | provide_language_context-2010896-11.patch | 6.38 KB | esolitos |
Comments
Comment #2
das-peter commentedctools-add-language-context.patch queued for re-testing.
Comment #3
das-peter commentedOoops, there were leftovers from the refactoring I made.
Fixed patch.
Comment #5
thepanz commentedPatch works fine. Thanks a lot! :)
I am using this "language" context in https://www.drupal.org/sandbox/thepanz/taxonomy_et_helper
Comment #6
esolitosHei das-peter, thanks for this patch, it's very useful! However i found a bug in the plugin when using the given placeholder form.
When using the "placeholder form"
$confis a string coming from the input textfield.So either the placeholder form should be more advanced or this function should handle the string parameter.
I'll see if I have some minutes to fix a patch for this.
Comment #7
esolitosComment #8
esolitosHei, here's the new patch and the interdiff, in this way also using the given placeholder form works.
Comment #9
thepanz commentedYou have a typo: search `languaghe` :)
Comment #10
clairedesbois@gmail.comHello,
I uses this patch to have more contexts in page manager. I configure a context on language for each variant but It doesn't work when I export configurations in features.
I'm searching the bug's reasons.
Comment #11
esolitosFixed the typo in the patch, sorry or the long delay. :-)
Comment #12
polPatch #22 worked successfully, thanks !
Comment #13
esolitosHem.. #22? I guess you mean #11?
Comment #14
polYes patch in #11, sorry for the typo.
Comment #15
rivimeyComment #16
japerryComment #17
japerryNow that 1.13 is being rolled with new features, this can be included. Committed!
Comment #19
polThanks!