WordPress.org

Ready to get started?Download WordPress

Forums

The Events Calendar
Language problem URL (french) (19 posts)

  1. clement-m
    Member
    Posted 2 years ago #

    Hi! I have a problem for the url in french translation. In fact we have "à venir" or "àvenir" and when i try to modify the language file, the plugin uses the english translation.

    The problem is that if i dont modify this url, the page redirection is wrong.

    Which is the line that causes problem, and how to modify it?

    http://wordpress.org/extend/plugins/the-events-calendar/

  2. roblagatta
    Modern Tribe Support
    Plugin Author

    Posted 2 years ago #

    Have you translated your WordPress install, in the wp-config file?

  3. clement-m
    Member
    Posted 2 years ago #

    It's not a problem of wordpress install, just the plugin languages in tribe-events-calendar-fr_FR.mo .

    When i look for words in the file, i can find "à venir" but if i change it for "a venir" or "bientot" (if i don't want spaces and accents) it doesn't work and the plugin uses the english translation.

  4. Braintrash
    Member
    Posted 2 years ago #

    Ah, that's exactly my problem. ^^
    Any luck with resolving it?

  5. roblagatta
    Modern Tribe Support
    Plugin Author

    Posted 2 years ago #

    Hey Braintrash. Just followed up in the other thread too. Let me know if the suggestion over there did the trick.

  6. Braintrash
    Member
    Posted 2 years ago #

    It didn't.
    And does the same with English language.

  7. roblagatta
    Modern Tribe Support
    Plugin Author

    Posted 2 years ago #

    Thanks for confirming. I suspect this will have to be changed in the code for the 2.1 release; let me get one of our devs to take a look here and verify that, though. Apologies for the inconvenience in the interim.

  8. Nick Ciske
    Member
    Posted 2 years ago #

    .mo files can't be edited directly -- they have to be generated from a .po file.

    PoEdit is a free tool that will allow you to edit the .po and generate a new .mo file. Sounds like we need to either filter that before we use it as a slug, or add a string to the translation file called 'URL safe name for events' ;-)

  9. Nick Ciske
    Member
    Posted 2 years ago #

  10. Nick Ciske
    Member
    Posted 2 years ago #

    Nevermind, I just saw we added a check in 2.1 to alert the user if the slug entered is invalid.

    If a valid, non-accented slug is used for the plural and singular event stlugs, and it's still broken, the problem lies elsewhere.

  11. Braintrash
    Member
    Posted 2 years ago #

    OK, some debugging with the current version:

    My slug for events list is (The slug used for building the Events URL.): evenements

    http://www.culture.paris-sorbonne.fr/evenements/
    -> Works.

    Clicking on Calendar:
    http://www.culture.paris-sorbonne.fr/evenements/mois/
    -> Works.

    Clicking on EVent list leads me there:
    http://www.culture.paris-sorbonne.fr/evenements/àvenir/
    -> 404

    Isn't the link should go back to the slug "evenements", without "àvenir"?

  12. Braintrash
    Member
    Posted 2 years ago #

    (Current version being the test build you sent me.)

  13. Nick Ciske
    Member
    Posted 2 years ago #

    I see, 'upcoming' is being translated into 'àvenir' or 'à venir' but not being made into a slug. This is not a user editable field so we'll need to make sure we get a fix in.

    I'll file a bug for 2.1 -- thanks for the help tracking this down!

  14. Nick Ciske
    Member
    Posted 2 years ago #

    Fixed! I let Rob know so he can send you some new code to test.

  15. Braintrash
    Member
    Posted 2 years ago #

    Ah, that's great!
    Looking forward for it.

  16. roblagatta
    Modern Tribe Support
    Plugin Author

    Posted 2 years ago #

    Big thanks to Nick for his help here. I do have this new code ready to go and would be happy to provide it to any interested parties. Please shoot me an email (rob at tri.be) and I'll get it to you with haste.

  17. Braintrash
    Member
    Posted 2 years ago #

    I just tried the new code, and it works perfectly now.
    That's an awesome support.
    Thanks, guy.

  18. pascalbf
    Member
    Posted 2 years ago #

    Just tried the code Rob sent me and it fixed the problem.

    Thank you guys!

  19. roblagatta
    Modern Tribe Support
    Plugin Author

    Posted 2 years ago #

    Awesome to hear! Thanks for the words, guys. Happy to help. If anything else comes up, please let me know...and if anyone else has this problem feel free to reach out to me for the code and I'll hook you up.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic