• Resolved Aethon

    (@aethon)


    I was wondering, just how you can change the menu on a page (in some themes anyway) if I can customize the appearance of the Upcoming Events widget on each page that I use it.

    Or maybe if I could duplicate the widget and modify one for use on the french page.

    Is any of this possible?

    Problem is, I want to avoid setting up WPML or other stuff which slows down the site speed and all because I want to change January to janvier.

    Thanks very much!

Viewing 15 replies - 1 through 15 (of 22 total)
  • Thread Starter Aethon

    (@aethon)

    Anyone?

    Hi @aethon,

    Thanks for reaching out! If one or more widgets might suffice for your intended purposes here, you should be able to duplicate and modify a copy of our list widget for the French portions of your site. You can read more about how to do this here! Please note that we aren’t able to provide any direct assistance or support for problems that may occur with customizations such as these, but hopefully you’ll find the process fairly straightforward! ??

    I hope that helps to get you started here! Thanks again, and let us know if you should have any other questions!

    Thread Starter Aethon

    (@aethon)

    Is there any way to load this in french? Help?

    Thread Starter Aethon

    (@aethon)

    Sorry, I didn’t see your message when I sent my last post. I’ll go follow your advice and see what I can do. Thanks!

    And may I say that from all the responses you give around here, you are a very busy woman! Thanks for your time!

    Thread Starter Aethon

    (@aethon)

    Wow.. this all seems very complicated. It might be easier to install WPML. ??

    But you mention your list widget? I’m not actually using that, but the shortcode and before I used that, I was using the Visual Composer insert.

    Using the shortcode, I can select the categories of the events I want to show, so I can recreate an event in french and display it when the french page is selected.

    The only missing piece is changing the dates so they show up in french instead of english. So 7 mars, 2017 instead of March 7, 2017.

    I wonder where this is located… I guess I can look through your plugin files and see if I can modify this.

    Thread Starter Aethon

    (@aethon)

    I see you have a lang folder with translations inside it. How can I manually force the french .po/.mo file to be called? That seems like it would be a simple thing….

    Thread Starter Aethon

    (@aethon)

    In src/Tribe/Main.php, you have :

    		public function get_i18n_strings( $strings, $languages, $domains = array(), $default_language = 'en_US' ) {
    			$domains = wp_parse_args( $domains, array(
    				'default' => true, // Default doesn't need file path
    				'the-events-calendar' => $this->plugin_dir . 'lang/',
    			) );

    This seems to be where the meat of the issue lies….

    Thread Starter Aethon

    (@aethon)

    Hi Caroline, finally, I’m doing it with WPML.. seems like less trouble overall. ??

    HOWEVER one big issue remains… I would have assumed that each language, in this case English and French, would have its own settings for date format.

    English : January 1, 2017
    French : 1 janvier 2017

    So if only one setting can apply, I’m stuck with one language displaying the date badly.

    Any ideas on what I can do here?

    Thanks for your help!

    Hi @aethon,

    Thanks for following up here–it looks like you’re very close! This post on the WPML forums should provide just what you need to address the date issue you’re having here. (Thanks to support team member @nicosantos for the link!) Give it a try, and let us know if it fixes your problem! ??

    Thank you!

    Thread Starter Aethon

    (@aethon)

    I can do this but when I look at String Translation, I can’t see Format in the pull down menu “Selected strings within context”.

    So I can’t take the last step ??

    Thread Starter Aethon

    (@aethon)

    And yes, I did enter that PHP code, so it should show up.

    Thread Starter Aethon

    (@aethon)

    I found in another place a missing step :

    – Go to WPML > String Translation
    – Scroll down to the bottom of the page and click “Translate texts in admin screens ?”
    – Look for the string you want to translate “date_format”
    – If you found the string you want to translate, Check the check-box beside it.
    – Scroll down to the bottom of the page and click apply
    – Go to WPML > String Translation
    – Search for the string and translate it.

    Thread Starter Aethon

    (@aethon)

    But still not working.. I’ll keep trying and let you know what I find out. If you have any advice as well, that would be great ??

    Thread Starter Aethon

    (@aethon)

    I find a hundred different solutions and none are helping yet. ?? This is very confusing. Anything you can do would be helpful. I’m still looking and will keep you posted if I find anything in the meantime.

    Thread Starter Aethon

    (@aethon)

    Here is a screen shot of all the place where I have added translations and yet NONE of them are changing the order of the french date.

    Screenshot of String Translations

Viewing 15 replies - 1 through 15 (of 22 total)
  • The topic ‘Have an english page and a french page on our site—each with event listings’ is closed to new replies.