Links messed up with italian language

Home Forums Calendar Products Events Calendar PRO Links messed up with italian language

Viewing 15 posts - 1 through 15 (of 18 total)
  • Author
    Posts
  • #14577
    Marco
    Member

    Hi all,
    it seems there is an issue with links using a language different from english.
    teamworld.it/eventi-e-concerti/

    ex: link for a venue is teamworld.it/Locale/palaolimpico-2/
    The same problem with prev/post events, calendar view and so on.

    Thanks in advance

    #14613
    Rob
    Member

    Hey Marco. I’m not quite sure I understand the problem you’re having. Can you elaborate a bit? Are you using your own translation files, or ones that came with the plugin itself?

    #14634
    Marco
    Member

    Hi Rob, I’m using a clean installation of the plugin with the provided italian language. WP default language is it_IT.
    It seems that the translation translates also permalinks (venues become “Locali”, “month” (link to calendar view) become “mese”, “past” (link to previous events) become “passato” etc.
    Permalinks translation is a good thing but it broke most links of the plugin 🙁
    Bye

    #14649
    Rob
    Member

    Ah, I see. Thanks for confirming – I’m not sure what the issue here would be since we have tons of users running the plugin in different languages, and by and large they haven’t reported any bad experience. Have you tried opening the language file, modifying it a bit and seeing if your changes take? Does this happen if you use another, non-Italian translation file? I realize that you wouldn’t want to do so permanently; this would just be to test, as I’m unable to recreate this problem on my end.

    Let me know if not and I can get a dev to take a look here. Apologies for the inconvenience in the interim.

    #14689
    Marco
    Member

    Same issue with spanish language.
    Tried to modify lang file with no results.
    Tried to disable plugins like YOAST, CodeStyling Localization etc with no results. I can’t try to change template because site is online and I have not a dev area. With english language, plugin works like a charm.

    I’ve noticed 2 different type of issue:
    1) older events list link: http://www.teamworld.it/eventi-e-concerti/passato/ > 404. Changing manually the url in http://www.teamworld.it/eventi-e-concerti/past/ page is OK
    2) Venue link: http://www.teamworld.it/Locale/palaolimpico-2/ > 404 error. Changing manually the url in http://www.teamworld.it/venue/palaolimpico-2/, page redirects again to http://www.teamworld.it/Locale/palaolimpico-2/ > 404 error.

    Bye

    #14761
    Rob
    Member

    Thanks Marco. I’m going to get a dev to chime in here and respond accordingly, since I’m at a loss as to what could be causing this. We’ll do what we can to work through it with you for a resolution though.

    #14784
    Marco
    Member

    OK, let me know if you need ftp/admin access to our site.

    #14806
    Rob
    Member

    Will do – we shouldn’t at this point, but when the dev takes a look this afternoon or tomorrow they may request as much. Nothing needed yet though.

    #14835
    Rob
    Member

    Hey Marco. Talked this over with a member of our dev team, and it sounds similar to an event we recently hotfixed for another user (see: http://wordpress.org/support/topic/plugin-the-events-calendar-language-problem-url-french).

    First thing to try is flushing your permalinks (just go to Settings -> Permalinks and hit save; no need to change anything). See if that fixes it. If not, shoot me an email (rob at tri.be) and I’ll get you the hotfixed code that should resolve this issue. If you indeed do install that new code you’ll also want to flush your permalinks after activating, before you run the actual test. Let us know what that yields and we can keep looking into it as needed.

    #14853
    Marco
    Member

    Flushing the permalinks didn’t solve the problem.
    I’ll write you an email for the new code 😉
    Thanks

    #14892
    Rob
    Member

    Sounds good, Marco. After giving the new code a go please respond here in the thread (rather than via email) so other users who have similar problems can benefit from our exchange. Thanks!

    #14918
    Marco
    Member

    Rob,
    I’ve installed the updated plugin, I’ve flushed my permalinks but with no results.

    Maybe I have to update something in /the-event-calendar-pro/ dir?

    #14937
    Rob
    Member

    Hey Marco. I’ll get Nick, our dev who has been troubleshooting this issue, to respond directly.

    #14959
    Nick Ciske
    Participant

    Marco,

    I was able to replicate the issues you’re seeing above after changing the language on my test install (running the same code Rob sent you) until I rebuilt/flushed my permalinks. After that, /passato/, /mese/, and /locale/ all worked fine (as I suspected as the English permalinks are working for you… because those were built before the language was changed/patched code was installed).

    If saving your permalinks is not causing them to be flushed, you can try:

    Deactivating and reactivating the Events plugin (the free one, not PRO).

    Adding this to functions.php:

    global $wp_rewrite;
    $wp_rewrite->flush_rules();

    Make sure you remove that after it’s working or you’ll flush your rules on every load, which will really slow down your site.

    PS- ‘upcoming’ is empty in the Italian language files, so it’s not being translated. The rest are, so they are being translated. It threw me for a bit, so I wanted to note it here.

    Rob- we will probably want to address that in the 1.2 language updates, unless that’s correct? Google Translate says ‘imminenti’ but that may be way off.

    #14980
    Marco
    Member

    You rock Nick!
    Deactivating & reactivating didn’t flush my permalinks.
    But adding the 2 line of code in functions.php, yes!

    Now all it’s OK.
    I think that it’s better to translate “upcoming events” in “prossimi eventi”.

    Thanks for the help Rob&Nick

Viewing 15 posts - 1 through 15 (of 18 total)
  • The topic ‘Links messed up with italian language’ is closed to new replies.