Support

Home Forums Event Espresso Premium Can't find "No events available…"

Can't find "No events available…"

Posted: July 8, 2014 at 6:34 am

Viewing 16 reply threads


Steve Amis

July 8, 2014 at 6:34 am

If we have no events scheduled, the registration page displays “No events available…” I want to change the wording. I have opened the event_espresso-en_US.po file with a text editor and with Poedit but the phrase “No events available…” does not exist in the file. Just where is the phrase?


Dean

July 8, 2014 at 6:38 am

Hi,

It should exist, perhaps you have an older version of the language files? I checked the version on Github and it is there. You can download the file directly: https://github.com/eventespresso/languages

Be careful here, Githubs downloading methods are a bit weird:

To download the PO file – left click the link on the main page and then right click the Raw button in the top right of the page that comes up and save as.

To download the MO file – left click the link on the main page, and then left click the View Raw text link in the middle of the page that comes up.

If you don’t do this you may end up with a MO and PO file that contains garbage data and the language wont work.


Steve Amis

July 8, 2014 at 7:10 am

Thank you very much. That was the problem.


Steve Amis

July 8, 2014 at 7:21 am

I spoke too soon. I changed the phrase but the registration page still displays “No events available…” It is strange that I apparently had an older event_espresso-en_US.po file that did not have the “No events available…” phrase in it and yet it showed up on the registration page.


Dean

July 8, 2014 at 7:42 am

The language files don’t show the text, they are used to translate the text, so in case of the US English one, it is merely a direct copy of what text there is in the plugin. They were last updated some months ago and generally get updated periodically as new text strings are added and removed from the plugin.

In your wp-config.php in your sites root (you will need FTP or Control Panel access to find this) you will need to change the define(‘WPLANG’, ”); part to define(‘WPLANG’, ‘en_US’);

This will force the plugin to actively look for a language file rather than using the plugin defaults.

See here for more info – https://eventespresso.com/wiki/how-to-change-wording-with-poedit/


Steve Amis

July 8, 2014 at 8:03 am

wp-content.php or wp-config.php?


Lorenzo Orlando Caum

  • Support Staff

July 8, 2014 at 10:24 am

Hi Steve,

These changes should be made to the wp-config.php file.


Lorenzo


Steve Amis

July 8, 2014 at 2:34 pm

I added define(‘WPLANG’, ‘en_US’); to the wp-config.php file and the message still says “No events available…” I followed all of the steps at https://eventespresso.com/wiki/how-to-change-wording-with-poedit/
and still no luck.


Sidney Harrell

July 8, 2014 at 3:06 pm

When you say you “added” the line define(‘WPLANG’, ‘en_US’); to wp-config.php, do you mean that you changed the line define(‘WPLANG’, ‘’); to define(‘WPLANG’, ‘en_US’);? If you only added the line define(‘WPLANG’, ‘en_US’); to the end of the file, you may need to go back in and delete the line define(‘WPLANG’, ‘’); (in php you can only define a constant once)
Did you generate a new .mo file from poedit after you made your changes and upload it to wp-content/uploads/espresso/languages?


Steve Amis

July 8, 2014 at 3:18 pm

I did delete the line define(‘WPLANG’, ‘’);

The only thing on the line is define(‘WPLANG’, ‘en_US’);

I did not generate a new .mo file from poedit. How do you generate a new .mo file?


Josh

  • Support Staff

July 8, 2014 at 3:22 pm

Hi Steve,

PoEdit generates a .mo file when you save. If you’re looking to change less than a few dozen or less text strings, I’d recommend using a filter function like this instead:

If you do not know where to place this code, I can suggest adding it via a custom snippet plugin. There’s more documentation about this here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/


Steve Amis

July 8, 2014 at 4:03 pm

I followed the instructions from the website you gave to create a plugin but there is one small problem. I used ftp to create the plugin folder and the enclosed .php file but the plugin does not show up as a plugin. I then placed the code in the function file and now it works. Thanks so much.

As an afterthought, any idea why the plugin I created does not show up as a plugin even though it is in the plugin folder? I cleared my cache, logged out and back in, etc. and it still does not show up.


Lorenzo Orlando Caum

  • Support Staff

July 8, 2014 at 4:07 pm

Hi Steve,

The plugin would need to be added here using an SFTP or FTP client:

wp-content/plugins/site-specific.php

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/


Lorenzo


Steve Amis

July 8, 2014 at 4:18 pm

I did add it using ftp the same way I have done with numerous other plugins so that is why I’m confused.


Lorenzo Orlando Caum

  • Support Staff

July 8, 2014 at 4:41 pm

It should just appear. This isn’t a multisite install is it?


Lorenzo


Steve Amis

July 8, 2014 at 5:14 pm

No multisite.


Josh

  • Support Staff

July 8, 2014 at 5:32 pm

Hi Steve,

It might be what’s in the plugin file header.

Viewing 16 reply threads

The support post ‘Can't find "No events available…"’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso