Forum Replies Created
-
AuthorPosts
-
Xavier
ParticipantHi Josh,
That’s what I was assuming.
How do you evaluate the relavance of the translations then ? I’m pretty convinced the 6 instances of translation I made woud make TEC more user friendly and clearer. NOthing is specific. Just about everyday language.
Xavier
ParticipantHi Josh,
Works great ! Thank you.
Just a question. Will my personal .po/.mo files be lost at the next plugin update ?
Xavier
ParticipantThat’s ok. Found the solution. 😉
Xavier
ParticipantThanks Brian !
Xavier
ParticipantHi Josh,
Thanks for your response.
I registered and logged in without any problem. I’ve got some questions though.
I noticed that translations are submitted to approval. Most of the time translations are correct but they “sound” weird if taken out of the context. Plus, in terms of usability, it’s not crystal clear.
First example : “View as” button. If you translate it litteraly, “Voir en tant que” in French is correct. But in terms of usability and to make it clearer for users, it’d be better to translate it “Type” d’affichage” or “Options d’affichage” that could be translated in English “View type”.
Another example : “Find Events”. The way it’s translated right now, “Explorer les événements” is litteraly correct. But no one would say so in French. We would more likely say “Voir les événements”, that could be translated in English “See events”. But in our particular case, the button is actually a search button which means that it’d be more user friendly to translate it “Afficher les résultats” (Show results).
So my question is : I don’t want to pretend that my translations are better but I’d prefer to use mine than the ones in the po/mo files currently available for everyone. How could I bring these changes for my site alone ?
Thank you very much for your time and support.
Xavier
ParticipantOk, I found the problem. It came from my WordPress theme which has a different single-event.php than the one shown here above.
When I bring the modification to that one, it doesn’t work though. Here it is…
<?php /** * Single Event Template for Widgets * * This template is used to render single events for both the calendar and advanced * list widgets, facilitating a common appearance for each as standard. * * You can override this template in your own theme by creating a file at * [your-theme]/tribe-events/widgets/modules/single-widget.php * * @package TribeEventsCalendarPro * * @cmsms_package Welfare * @cmsms_version 1.0.0 * */ ?> <div class="cmsms_event_date"> <div class="cmsms_event_day"><?php echo tribe_get_start_date(null, false, 'd'); ?></div> <div class="cmsms_event_month"><?php echo tribe_get_start_date(null, false, 'F'); ?></div> </div> <div class="tribe-events-list-widget-content-wrap"> <?php do_action( 'tribe_events_list_widget_before_the_event_title' ); ?> <h3 class="entry-title summary"> <a>" rel="bookmark"><?php the_title(); ?></a> </h3> <?php do_action( 'tribe_events_list_widget_after_the_event_title' ); ?> <?php do_action( 'tribe_events_list_widget_before_the_meta' ) ?> <div class="cmsms_widget_event_info"> <div class="duration cmsms_theme_icon_time"> <?php echo tribe_events_event_schedule_details(); ?> </div> <?php if ( isset( $cost ) && $cost && tribe_get_cost() != '' ) { ?> <div class="tribe-events-event-cost cmsms_theme_icon_money"> <?php echo tribe_get_cost( null, true ); ?> </div> <?php } ?> </div> <div class="vcard adr location cmsms_widget_event_venue_info_loc"> <?php if ( ( isset( $venue ) && $venue && tribe_get_venue() != '' ) || ( isset( $address ) && $address && tribe_get_address() != '' ) || ( isset( $city ) && $city && tribe_get_city() != '' ) || ( isset( $region ) && $region && tribe_get_region() != '' ) || ( isset( $zip ) && $zip && tribe_get_zip() != '' ) || ( isset( $country ) && $country && tribe_get_country() != '' ) ) { ?> <div class="cmsms_widget_event_venue_info cmsms_theme_icon_user_address"> <span class="fn org tribe-venue"><?php echo tribe_get_venue(); ?>,</span> <?php if ( isset( $address ) && $address && tribe_get_address() != '' ) { ?> <span class="street-address"><?php echo tribe_get_address(); ?></span> <?php } ?> <?php if ( isset( $city ) && $city && tribe_get_city() != '' ) { ?> <span class="locality"><?php echo tribe_get_city(); ?></span> <?php } ?> <?php if ( isset( $region ) && $region && tribe_get_region() != '' ) { ?> <span class="region"><?php echo tribe_get_region(); ?></span> <?php } ?> <?php if ( isset( $zip ) && $zip && tribe_get_zip() != '' ) { ?> <span class="postal-code"><?php echo tribe_get_zip(); ?></span> <?php } ?> <?php if ( isset( $country ) && $country && tribe_get_country() != '' ) { ?> <span class="country-name"><?php echo tribe_get_country(); ?></span> <?php } ?> </div> <?php } if ( ( isset( $organizer ) && $organizer && tribe_get_organizer() != '' ) || ( isset( $phone ) && $phone && tribe_get_phone() != '' ) ) { ?> <div class="cmsms_widget_event_venue_loc cmsms_theme_icon_person"> <?php if ( isset( $organizer ) && $organizer && tribe_get_organizer() != '' ) { ?> <span class="tribe-organizer"><?php echo tribe_get_organizer_link(); ?></span> <?php } ?> <?php if ( isset( $phone ) && $phone && tribe_get_phone() != '' ) { ?> <span class="tel"><?php echo tribe_get_phone(); ?></span> <?php } ?> </div> <?php } ?> </div> <?php do_action( 'tribe_events_list_widget_after_the_meta' ) ?> </div>Any idea ? Thanks again for your help Brian.
-
This reply was modified 10 years, 8 months ago by
Xavier.
Xavier
ParticipantIn order to try to move on with this issue, here’s the code of my “single-widget.php” file located in my-theme/tribe-events/widgets/modules.
<?php /** * Single Event Template for Widgets * * This template is used to render single events for both the calendar and advanced * list widgets, facilitating a common appearance for each as standard. * * You can override this template in your own theme by creating a file at * [your-theme]/tribe-events/widgets/modules/single-widget.php * * @package TribeEventsCalendarPro * */ $mini_cal_event_atts = tribe_events_get_widget_event_atts(); $postDate = tribe_events_get_widget_event_post_date(); ?> <div class="tribe-mini-calendar-event event-<?php esc_attr_e( $mini_cal_event_atts['current_post'] ); ?> <?php esc_attr_e( $mini_cal_event_atts['class'] ); ?>"> <div class="list-date"> <span class="list-dayname"><?php echo apply_filters( 'tribe-mini_helper_tribe_events_ajax_list_dayname', date_i18n( 'D', $postDate ), $postDate, $mini_cal_event_atts['class'] ); ?></span> <span class="list-daynumber"><?php echo apply_filters( 'tribe-mini_helper_tribe_events_ajax_list_daynumber', date_i18n( 'd', $postDate ), $postDate, $mini_cal_event_atts['class'] ); ?></span> </div> <div class="list-info"> <?php do_action( 'tribe_events_list_widget_before_the_event_title' ); ?> <h2 class="entry-title summary"> <a href="<?php echo esc_url( tribe_get_event_link() ); ?>" rel="bookmark"><?php the_title(); ?></a> </h2> <?php do_action( 'tribe_events_list_widget_after_the_event_title' ); ?> <?php do_action( 'tribe_events_list_widget_before_the_meta' ) ?> <div class="duration"> <?php echo tribe_events_event_schedule_details(); ?> </div> <?php if ( isset( $cost ) && $cost && tribe_get_cost() != '' ) : ?> <span class="tribe-events-divider">|</span> <div class="tribe-events-event-cost"> <?php echo tribe_get_cost( null, true ); ?> </div> <?php endif ?> <div class="vcard adr location"> <span class="fn org tribe-venue"><?php echo tribe_get_venue_link(); ?></span> <?php if ( isset( $address ) && $address && tribe_get_address() != '' ): ?> <span class="street-address"><?php echo tribe_get_address(); ?></span> <?php endif ?> <?php if ( isset( $city ) && $city && tribe_get_city() != '' ): ?> <span class="locality"><?php echo tribe_get_city(); ?></span> <?php endif ?> <?php if ( isset( $region ) && $region && tribe_get_region() != '' ): ?> <span class="region"><?php echo tribe_get_region(); ?></span> <?php endif ?> <?php if ( isset( $zip ) && $zip && tribe_get_zip() != '' ): ?> <span class="postal-code"><?php echo tribe_get_zip(); ?></span> <?php endif ?> <?php if ( isset( $country ) && $country && tribe_get_country() != '' ): ?> <span class="country-name"><?php echo tribe_get_country(); ?></span> <?php endif ?> <?php if ( isset( $organizer ) && $organizer && tribe_get_organizer() != '' ): ?> <span class="tribe-organizer"> <?php esc_html_e( 'Organizer:', 'tribe-events-calendar-pro' ); ?> <?php echo tribe_get_organizer_link(); ?> </span> <?php endif ?> <?php if ( isset( $phone ) && $phone && tribe_get_phone() != '' ): ?> <span class="tel"><?php echo tribe_get_phone(); ?></span> <?php endif ?> </div> <!-- .vcard.adr.location --> <?php do_action( 'tribe_events_list_widget_after_the_meta' ) ?> </div> <!-- .list-info --> </div>Do you see anything wrong ?
-
This reply was modified 10 years, 8 months ago by
Xavier.
Xavier
ParticipantOk, so this is exactly what I’ve done and the mini calendar widget still shows only the event’s date/time.
I’m stuck and don’t know what to do to make this work. 🙁
Can I send you here in private my site/ftp details for you to have a quick look ?
Xavier
ParticipantHello Brian,
Thanks for the quick response.
I followed precisely (I guess) your instructions and that doesn’t change anything. So now, instead of this…
<div class="vcard adr location"> <?php if ( isset( $venue ) && $venue && tribe_get_venue() != '' ): ?> <span class="fn org tribe-venue"><?php echo tribe_get_venue_link(); ?></span> <?php endif ?>I’ve got this…
<div class="vcard adr location"> <span class="fn org tribe-venue"><?php echo tribe_get_venue_link(); ?></span>I’m not sure what you mean by “move the file” though. Do I just have to copy/paste/rename it or do I also have to deleted the original file ?
I tried everything anyway and that still doesn’t change anything. 🙁
-
This reply was modified 10 years, 8 months ago by
-
AuthorPosts
