• In the features list this plug-in claims to have “Certified compatibility with WPML”. However, WPML itself says it’s NOT in their compatibility list. It’s here in a thread about a problem I encounter too, and which does not have a solution.

    This is the problem: “The translated Game for example will have the translated league and season assigned as it should have, but it will have lost the assigned teams.” (This is pointed out in the link above on January 5, 2021)
    And for that reason, e.g. league tables do not display results on translated pages, because the translated team IDs are different and thus have no games attached.

    • This topic was modified 3 years, 8 months ago by cambofrizz. Reason: more clarification
Viewing 15 replies - 1 through 15 (of 18 total)
  • Thread Starter cambofrizz

    (@cambofrizz)

    Further clarification: when manually selecting the teams for a League the League Table displays results correctly in original language and translations. Only when clubs in a League are set to ‘Auto’ the League Table in translation shows no results.

    Thread Starter cambofrizz

    (@cambofrizz)

    While the League Tables now display correctly in translation, the translation of matches still doesn’t work properly: when translated the teams are still lost.

    So, I’m still waiting for a clarification of the claimed “Certified compatibility with WPML” (by the way, the link in the feature list to WPML returns a 404).

    In the meantime I have notified WPML of this claim.

    Plugin Contributor Savvas

    (@savvasha)

    Hi @cambofrizz ,

    I am trying to reproduce what you describe. Can you share some screenshots with step-by-step of how to do it? For example your WPML settings, the leagues, the seasons, the teams you are using, etc…

    Thanks,
    Savvas

    Thread Starter cambofrizz

    (@cambofrizz)

    Hi @savvasha

    Oh, come on please…

    In the link copied above (this one : https://wpml.org/forums/topic/sportspress-wpml-player-metrics-bug-player-statistics-issues/ )
    it’s described in as much detail as possible what the problem is.

    Now, just follow the problem described there. Thank you.

    Plugin Contributor Savvas

    (@savvasha)

    Hi @cambofrizz ,

    As I can see from your posted link, the WPML provided a solution. It didnt work?

    Thanks,
    Savvas

    Thread Starter cambofrizz

    (@cambofrizz)

    Hi @savvasha ,

    No, that solution does not work.

    The problem is this: the translated Match will have the translated league, season and ground assigned as it should have, but it will have lost the assigned teams (under ‘Clubs’, although the translated club names are available in the dropdowns).
    The clubs are by the way correctly copied and translated under ‘Results’.

    See the screenshot: green rectangles with correct copy & translate, red rectangles where the translation (of the club) is missing. At first I thought it might have to do with the fact that the choices under ‘Clubs’ are dropdowns, however ‘Ground’ is also a dropdown.

    Since the title of the original match is automatically set by the clubs selected, it would be nice if the translation could also update the title in the second language.

    Plugin Contributor Savvas

    (@savvasha)

    Hi @cambofrizz ,

    About the last request for the title, it is not possible I am afraid. You either need to manually translate it the title, or use the Block layout from SportsPress settings (https://snipboard.io/L7XWia.jpg). Using the block layout, the teams will be appeared translated in the frontend of the match.

    Can you please share the settings you are using with WPML?

    Thanks,
    Savvas

    Thread Starter cambofrizz

    (@cambofrizz)

    I don’t have ‘Inline’ or ‘Block’ layout, they are called ‘Default’ and ‘Extended’, and yes they already appear as translated, but you’re totally missing the point: in the back-end the clubs are not automatically selected as I thought was obvious from the screenshot I shared.

    Now you’re asking me for WPML settings. Are you saying in your set-up those clubs are automatically selected when duplicating a match for translation? Then it might be much more helpful if you share your WPML settings, as I’ve tried I don’t know how many different settings and NONE of them worked.

    • This reply was modified 3 years, 7 months ago by cambofrizz.
    Plugin Contributor Savvas

    (@savvasha)

    Hi @cambofrizz ,

    So you are saying that if you go to SportsPress->Settings->Matches you cannot find the following setting? https://snipboard.io/L7XWia.jpg

    I think I found how to fix the issue you are facing, but I wanted to be sure that it is working. The fix includes some custom code. If you dont want to share your settings that is fine with me ??

    Thanks,
    Savvas

    Thread Starter cambofrizz

    (@cambofrizz)

    Hi @savvasha ,

    No, I don’t have those settings, they are – as I wrote – ‘Default’ and ‘Extended’, see the screenshot.

    Which WPML settings do you mean? There are hundreds of possibilities in WPML for translations of custom fields and post types. Surely you don’t want me to put them all here. And besides, as I mentioned above, I’ve tried all kinds of settings and combinations.

    How difficult is it to do something like: “Assuming you have setting A, B, and C, you could use this custom code”?

    Plugin Contributor Savvas

    (@savvasha)

    You can check my branch if you want to try the proposed fix: https://github.com/ThemeBoy/SportsPress/tree/feature-wpml-compatibility-updates

    Are you using any Sportspress related addon plugin or/and any specific theme?

    Thanks,
    Savvas

    Thread Starter cambofrizz

    (@cambofrizz)

    Hi @savvasha ,

    Ah yes, I’ve discovered it’s the Alchemists theme that changes the labels for the Layout settings. Why they’ve done that, I don’t know.

    I have installed your branch and YES! Now it works. Thank you very much!

    And I see you also have added a sorting option for the Countdown widget I asked for in another thread. Much appreciated.

    Uhm, at the risk of asking too much: the reason I wanted this to work is of course to have the right clubs connected to the matches in translation. But another consideration – for SEO reasons – was the title (not the slug, as that is just the match id, which is fine). When creating the original match, the title is automatically derived from the clubs selected (Club A vs Club B). In translation I can get a translated title by manually removing the title and then updating the match: the title then contains the translated club names. Is there any way to automate this process?`

    Plugin Contributor Savvas

    (@savvasha)

    Unfortunately the title cannot be translated automatically. Thats why I proposed to use the block layout. That way the Teams will be translated at the frontend also! Just try it.

    The branch is a WiP. I will try to avhieve even more compatibility with WPML ??

    Thanks,
    Savvas

    Thread Starter cambofrizz

    (@cambofrizz)

    Hi @savvasha ,

    The club names in the post itself are already translated, although I have selected ‘Default’ (which originally is ‘Inline’), so that’s OK.

    Regarding the title, I’m wondering if it is not just about the sequence of things. When copying a match for translation, everything is copied and then saved as a separate post, right? So, how about if everything was copied, except for the title and then just before saving, the title would be derived from the now translated clubs, just as happens in the original post with an empty title?

    I have a feeling this must be possible, somehow.

    At the moment I’m translating titles automatically via a filter on ‘the_title’ where the club names get their translated form, but I’d like to have it ‘hard coded’.`

    Plugin Contributor Savvas

    (@savvasha)

    Can you share the code you are using for the title? I will try to include it somehow to the branch.

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Certified compatibility with WPML?’ is closed to new replies.