Giter Site home page Giter Site logo

i18n_taxonomy issues about i18n HOT 8 CLOSED

laryn avatar laryn commented on July 28, 2024
i18n_taxonomy issues

from i18n.

Comments (8)

laryn avatar laryn commented on July 28, 2024

Just to update, after the latest commit this timeout bug still exists. But I can now visit admin/structure/taxonomy/tags and view a "Translate" tab, which seems to function at a basic level (as opposed to the 2nd error above).

screen shot 2016-11-09 at 2 29 08 pm

from i18n.

laryn avatar laryn commented on July 28, 2024

Same as #2 -- a matching error shows up in watchdog if I've got i18n_menu disabled and i18n_taxonomy enabled, and I try to go to the vocabulary's "Configure" page:

Notice: Undefined property: stdClass::$language in i18n_langcode() (line 277 of /Users/user/buildkit/build/backdrop-demo/modules/i18n/i18n.module).

https://github.com/backdrop-contrib/i18n/blob/1.x/i18n.module#L277

from i18n.

indigoxela avatar indigoxela commented on July 28, 2024

A new PR is available. Please test. It fixes (should fix) all those errors plus brings basic functionality.

Really, please test.

from i18n.

laryn avatar laryn commented on July 28, 2024

@indigoxela The main functionality seems to be working well -- amazing! Here are some observations and a few issues I found along the way. Take them for what they are worth at this stage.

  1. Taxonomy > Manage Display shows a blank field (when that vocabulary is set to "Translate."):
    Screen Shot 2020-04-01 at 2 25 56 PM
  2. Taxonomy > Manage Fields gives an error (when that vocabulary is set to "Translate."):

Error: Unsupported operand types

  1. An "Undefined" translation set is created at some point:
    Screen Shot 2020-04-01 at 2 29 33 PM
  2. Not sure if it's related to this module, but on vocabs that do not have multilingual options enabled, the table columns/headers are not matched correctly:
    Screen Shot 2020-04-01 at 2 33 45 PM

from i18n.

indigoxela avatar indigoxela commented on July 28, 2024

@laryn many thanks for testing! Yes, I also observed some odd behavior when switching between types (translate, localize, none...). And I also observed that handling translation sets should get more robust.

I'll have a look at that table header problem, too. (Weekend is coming 😉)

from i18n.

indigoxela avatar indigoxela commented on July 28, 2024

@laryn More commits have been made to my PR, which address point 1 and 2 (many thanks for pulling this out).

And it should be much harder now to create a broken "Undefined" translation set (point 3). It might still be possible, though.

As you already suspected, point 4 is unrelated to i18n. Thats backdrop/backdrop-issues#3869

In case you still see php notices, try to start with a fresh database. The broken translation sets might have created incomplete taxonomy terms that could interfere.

...and report all the remaining issues here. 😉

from i18n.

laryn avatar laryn commented on July 28, 2024

Thanks again @indigoxela ! More comments from a walkthrough on a fresh install:

  1. There is no default or requirement on the "Extended" radio buttons after enabling Multilingual on a vocab. Is that supposed to be that way?
    Screen Shot 2020-04-03 at 12 58 59 PM

  2. I tested "Localize" first and that seemed to be working well. Then I changed configuration to "Translate" and the term I had localized had no translation (I suppose the localized data doesn't transfer automatically) so I added a translation to the term. This seems to work pretty well (1 and 2 in my earlier comment are fixed) however, I see this twice in the log:

Notice: Undefined index: langcode in i18n_taxonomy_form_alter() (line 918 of /app/modules/i18n/i18n_taxonomy/i18n_taxonomy.module).

Also, the "Translation sets" page continues to create/show an "undefined" set:
Screen Shot 2020-04-03 at 1 09 37 PM

  1. I was going to test "Fixed language" but I'm not sure what that is supposed to do. It forces me to choose a language in the configuration for that option:
    Screen Shot 2020-04-03 at 1 11 55 PM

But when I am creating a new term, it still lists all language options:
Screen Shot 2020-04-03 at 1 12 54 PM

from i18n.

indigoxela avatar indigoxela commented on July 28, 2024

@laryn Thanks again for testing.

Re point 1 - probably this should have a default value...

Re point 2 - nice catch! I didn't realize that php notice, should be fixed now. And to clarify: localize and translate are fundamentally different (different submodules actually).

Re "Undefined" translation sets: can you provide the steps to create one, please?

Re point 3 - fixed language. I took a look at that now, it should be working with the latest commits (the language dropdown in Backdrop is provided by core).

Happy testing again. 😉

from i18n.

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.