-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get i18n_node submodule working #8
Comments
I did some recherche. In backdrop-ops/contrib#34 the module variable has been marked as obsolete (CMI in core), but that's only half of the truth, I guess. I18n isn't the only module relying on variable, if looking at the install counts for Drupal:
Looking at the above numbers, I guess we should port variable for compability reasons. My question is: has this been discussed before? |
Dont think so. I get the impression that Variable Module isnt a necessary module even for sites using it. I think I usually just get rid of any code mentioning that module, and never missed it. |
Sounds reasonable. Maybe the modules' install count is misleading. Mainly D7 i18n and domain module are depending on it and that could be done better/easier now with CMI, at least in i18n_node. I'll give it a try. 😉 |
…ent other errors on install
So here's a PR. It's mostly about i18n_node submodule ("Multilingual content") All sorts of testing is welcome! |
I believe, the Multilingual content submodule is fully working now. (Note: Simpletests aren't implemented yet) How to test:
... and report any problems here. |
My feedback:
Other than that things look good so far! Changing line 34 to this seems to work:
|
@laryn many thanks for testing! Re metatag and fatal: Did that happen when enabling the main i18n module or the i18n_node submodule? Re clear caches: Strange... I'll try to reproduce - it didn't happen to me. Re Notice: Undefined property: stdClass::$language: Many thanks for finding that missing language-langcode shuffle. But...
It's a string, not an object, at least when saving a node, I've updated my PR accordingly. Or did you see an object at some point? |
OK, regarding metatag: When having metatag module enabled and enabling i18n_string submodule, I get:
And I suspect, it was that fatal in module install that was causing your need to flush caches. |
Two more commits and now I'm almost sure, that i18n_node works properly. I fixed the broken content type (name, help...) translation and the weird call of language_list ( will fix issue #9). Someone could merge this PR, I guess. 😉 (I really try to get around becoming an i18n maintainer, as this module needs so much more work and is complex...) |
Issue #8: Get rid of variable module dependency in i18n_node
i18n_node isn't working yet.
How to reproduce:
Enable Internationalization and Multilingual content modules, go to admin/structure/types/manage/page
Besides several property: stdClass notices (different issue) there's an error:
Error: Call to undefined function variable_type_include() in i18n_node_form_node_type_form_alter() (line 419 of .../modules/i18n/i18n_node/i18n_node.module).
Function variable_type_include is provided by the variable module in Drupal. That module doesn't exist for Backdrop. Possibly it needs to get migrated, but maybe core or i18n module could provide the required functionality.
I'm aware that this module is far from being ready to release, but I thought a php error is worth an issue.
The text was updated successfully, but these errors were encountered: