Translation files not taking effect since update to EC 4.0.2

Home Forums Calendar Products Events Calendar PRO Translation files not taking effect since update to EC 4.0.2

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1125953
    James
    Participant

    Hi,

    I have translated the-events-calendar-en_AU using poedit and uploaded the files to wp-content > languages > plugins > the-events-calendar But they are not taking effect on the front end.

    I tried using the snippert
    unload_textdomain( ‘the-events-calendar’ );
    load_plugin_textdomain( ‘the-events-calendar’, false, dirname( plugin_basename( __FILE__ ) ) . ‘/languages/’ );

    in my functions.php file (in the child theme) to see if that worked but it didn’t, so I have removed it.

    The only location I can get the translations to take effect is if I put the, the-events-calendar-en_AU.po and the-events-calendar-en_AU.mo files into plugins > the-events-calendar > lang, folder but this of course overwrites the original core files.

    Any assistance would be appreciated.

    Cheers

    James

    #1126312
    Andras
    Keymaster

    Hi James,

    Thanks for reaching out! I’m sorry you are having this problem, let me try to help you.

    Could you share with me your system information, please? (Here’s a handy guide.) That might give a clue on the issue.

    Also, can you confirm that your WordPress site language under Settings > General is set to English (Australia)?

    Did you open and re-save the existing en_AU files in the plugins > the-events-calendar > lang folder?

    Cheers,
    Andras

    #1126436
    James
    Participant

    This reply is private.

    • This reply was modified 9 years, 10 months ago by Andras.
    #1126970
    Andras
    Keymaster

    Hello again James,

    Thanks for confirming and submitting your system info. I see that you are all updated on our plugins and WP, which is good.

    Could you do a test for conflicting plugins and theme based on this guide? (In short, deactivate all non-calendar plugins and switch to a default theme.) Then please check if the problem still exists. This will allow us to eliminate conflicts.

    I’ll be waiting for the results.

    Thanks and cheers,
    Andras

    #1126974
    Andras
    Keymaster

    One more thing you can check is the permissions on the uploaded language file. Make sure it is readable by everyone. On Linux systems the permission code is 644 or 664.

    Andras

    #1127736
    James
    Participant

    Hi Andras,

    My apologies for taking so long to get back to you.

    Ok, I setup a test site on a localhost and loaded a fresh copy of WordPress 4.5.2, The Events Calendar 4.2, and Event Tickets 4.2. No other plugins were installed.

    I setup the basic settings in all the plugins and ensured the language was set to Australian in wordpress. I then made some sample events as I usually would.

    I then loaded the modified translation files to my site > wp-content > languages > plugins > event-calendar. Nothing changed! I then moved the po & mo files out of the event-calendar folder and straight into my site > wp-content > languages > plugins and it seems to have worked.

    Feeling pleased with myself, I then set up the event ticket translation files and put them in my site > wp-content > languages > plugins but they didn’t take effect.

    I’m not sure what the folder structure should be for the event ticket, The Events Calendar PRO or event ticket plus files should be.

    Should there be any redundant woo ticket files after the change to event tickets? I noticed on the live site and in the system report above some references to woo tickets or is that just another name for event tickets?

    I forgot to add that I checked the permissions on the uploaded language files and they were good at 644.

    Any assistance would be appreciated.

    Cheers

    James

    #1127878
    Andras
    Keymaster

    Hi James,

    Thanks for all the info and great job with the testing. Indeed you should be pleased with yourself and glad that at least the core Events Calendar works.

    The language files need to be in the wp-content/languages/plugins folder. No need to add the plugin name at the end. And the filename should be the original one, in this case the-events-calendar-en_AU.po.

    At least this is how it works on my local test site.

    For the rest of the plugins the file name should be the same as the .pot file’s name extended with the language code. So for Events Calendar Pro it will be tribe-events-calendar-pro-en_AU.po

    For Event Tickets: event-tickets-en_AU.po

    For Event Tickets Plus: event-tickets-plus-en_AU.po

    I tested the pro language file in the content/languages/plugins folder, and it works without a hitch.

    Try the rest and let me know if it works out. First I reco to do it on your test site, then if it works, copy them to the live one.

     

    As for WooTickets there should be no redundant files. The Event Tickets and ET Plus takes over all functionality. So once you have those up and running and made sure everything works fine (with WooTickets deactivated) then you can delete the WooTickets plugin. (Though, it never hurts to have a full backup of files and database before and major change.)

    Cheers,
    Andras

    #1128767
    James
    Participant

    Hi Andras,

    Well I now feel like a master at translations (for my translations at least)!

    I got them all to work and even moved into theme translations.

    Thanks for all the assistance Andras, you can close this thread now as I think I have a good idea of how to do them now and get them working.

    Cheers

    James

    #1129135
    Andras
    Keymaster

    Hi James,

    Heck yeah! I’m happy we got this all worked out and helped you to master a new skill. 🙂 Congrats on that!

    I’m going to close this. If you need anything in the future, don’t hesitate to open a new ticket.

    Cheers,
    Andras

    PS: If you like our plugins, we would be happy to receive a review in the wordpress.org repository. Thanks!

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Translation files not taking effect since update to EC 4.0.2’ is closed to new replies.