• Resolved watermelonkid

    (@watermelonkid)


    So, I suppose I’m not understanding the process for the sticky subject in this forum for WPML support.

    I have five categories for the Events Calendar cats in English, and five categories in Spanish. If I update the colors in the Spanish versions, the English versions turn gray and lose their color settings.

    I have tried adding the cats via the teccc_add_terms() filter:

    add_filter( 'teccc_add_terms', function(){
        $translated_terms = array(
            'business-development',
            'career-development',
            'other-resources',
            'special-events',
            'youth-development',
            'desarrollo-de-carrera',
            'desarrollo-de-negocios',
            'desarrollo-juvenil-es',
            'eventos-especiales-es',
            'otros-recursos'
        );
        return $translated_terms;
    });

    I tried the above both adding the English cats and leaving them out. But this doesn’t seem to have any effect on making the English/Spanish cats maintain their colors either way. Would love to know what I’m doing wrong. Thanks!

    • This topic was modified 6 years, 3 months ago by watermelonkid.

    The page I need help with: [log in to see the link]

Viewing 15 replies - 16 through 30 (of 33 total)
  • Thread Starter watermelonkid

    (@watermelonkid)

    Yeah, there are no longer categories assigned because I deleted all the categories out before using the filter so I could verify it was working. Doing so seems to have unassigned all the categories on this dev site.

    I can definitely use a filter or template override, but we actually tried a fix like this at one point and it creates all sorts of UX issues to not have the categories split up by language. I might just have to try some kind of dirty/ugly CSS hack to make this work I suppose. Thanks for your support.

    Plugin Author Andy Fragen

    (@afragen)

    Having all the categories present should only cause an issue if you want to use the legend. Otherwise try coloring the English/Spanish the same and don’t show the legend.

    proyectomaya

    (@proyectomaya)

    Hi Andy: I am having a similar issue.
    I have a calendar in spanish and in catalan. In spanish it all works well, but the minute I color the categories in catalan, it creates a mess. See screenshots please.

    proyectomaya

    (@proyectomaya)

    Plugin Author Andy Fragen

    (@afragen)

    @proyectomaya can you post your filter?

    proyectomaya

    (@proyectomaya)

    proyectomaya

    (@proyectomaya)

    This is in both languages (spanish and catalan).
    When I try to colour catalan categories aswell, the problems start. ??

    Plugin Author Andy Fragen

    (@afragen)

    Can you describe the problem and provide a URL for me. Sometimes I need to see the code produced.

    proyectomaya

    (@proyectomaya)

    Sure.
    My website is in spanish and catalan. I post events in spanish and translate them into catalan.
    Here you can see both calendars.
    https://www.pranichealing.es/calendario/
    https://www.pranichealing.es/calendario/?lang=ca

    I need to have the same categories and colors in the monthly view of the both languages`s calendar.

    So, I set the colors in spanish first and then in catalan and this happens. In catalan you cannot see some categories and most colors are lost.

    https://ibb.co/eFNOTV
    https://ibb.co/djKRhq

    If I set the colors in both languages at the same time, the same problems happens.

    Plugin Author Andy Fragen

    (@afragen)

    Can you turn on the legend for a few days or until we get this sorted out, it helps?

    proyectomaya

    (@proyectomaya)

    I tried that, but is does not help-
    I just did, anyways.
    ??

    Plugin Author Andy Fragen

    (@afragen)

    Thanks. I think I’m going to need to step through the code to see if I can figure out what’s happening. Stay tuned.

    Can you post the contents of your filter here so I can test with exactly what you are using?

    proyectomaya

    (@proyectomaya)

    Sorry, what do you mean by: the contents of your filter?

    Plugin Author Andy Fragen

    (@afragen)

    Look at the top of this issue. I tried to make an easy method of adding the translated category slugs.

    proyectomaya

    (@proyectomaya)

    You mean this?
    To remove the categories you will need to add change the filter name to teccc_delete_terms.

    If that is the case, can you give me more precise directions on how to do it. Im lost..

    Thanks!

Viewing 15 replies - 16 through 30 (of 33 total)
  • The topic ‘Don’t Understand WPML Fix/Application’ is closed to new replies.