Free and Premium WordPress Plugins & Themes Forums WordPress Plugins Appointment Booking Unable to translate using loco translate
- This topic has 8 replies, 3 voices, and was last updated 3 years, 8 months ago by Andre Flores.
- AuthorPosts
- March 9, 2021 at 5:23 am #1087019George NicolaouParticipant
I am using loco translate to translate the appointment booking for but the translations aren’t getting picked up any idea why?
Should I use wpml instead?
March 9, 2021 at 6:52 am #1087088George NicolaouParticipantwpml works fine loco doesn’t seem to on this one
March 11, 2021 at 1:20 am #1087949Andre FloresModeratorHello George,
Both Loco and WPML should form fine for translating Appointment Booking plugin. However, we are still improving translations in the plugin, so it should work better in the next plugin releases.
Regards,
AndreMarch 17, 2021 at 10:16 am #1091528Gevorg AvdzhyanParticipantI have two questions!
1). I translated the plugin into Russian, but not everything was translated in the form. How can these words be translated? (Service, Date, Time, Price) https://pastenow.ru/BWGP8
2). How to make the date and time also be translated into the local language Russian? https://pastenow.ru/BWGWHMarch 19, 2021 at 12:03 am #1092311Andre FloresModeratorHello Gevorg,
At the moment these variables can be translated only directly in public.js, public.min.js, flatpickr.js and flatpickr.min.js files for dates/months:
weekdays: { shorthand: [ __('Sun'), __('Mon'), __('Tue'), __('Wed'), __('Thu'), __('Fri'), __('Sat') ], longhand: [ __('Sunday'), __('Monday'), __('Tuesday'), __('Wednesday'), __('Thursday'), __('Friday'), __('Saturday') ] }, months: { shorthand: [ __('Jan'), __('Feb'), __('Mar'), __('Apr'), __('May'), __('Jun'), __('Jul'), __('Aug'), __('Sep'), __('Oct'), __('Nov'), __('Dec') ], longhand: [ __('January'), __('February'), __('March'), __('April'), __('May'), __('June'), __('July'), __('August'), __('September'), __('October'), __('November'), __('December') ] }, amPM: ['AM', 'PM'],
And public.js and public.min.js files for Service, Date, Time, Price text:
output += '<div class="mpa-booking-order-item">'; output += '<ul class="mpa-reservation-details">'; output += '<li class="mpa-reservation-service">'; output += '<span class="mpa-label">' + __('Service:', 'motopress-appointment') + '</span>'; output += ' '; output += '<span class="mpa-value">' + serviceName + '</span>'; output += '</li>'; output += '<li class="mpa-reservation-date">'; output += '<span class="mpa-label">' + __('Date:', 'motopress-appointment') + '</span>'; output += ' '; output += '<span class="mpa-value">' + Object(dev_functions_date__WEBPACK_IMPORTED_MODULE_0__["mpa_format_date"])(cartItem.date) + '</span>'; output += '</li>'; output += '<li class="mpa-reservation-time">'; output += '<span class="mpa-label">' + __('Time:', 'motopress-appointment') + '</span>'; output += ' '; output += '<span class="mpa-value">' + cartItem.time.toString() + '</span>'; output += '</li>'; output += '<li class="mpa-reservation-price">'; output += '<span class="mpa-label">' + __('Price:', 'motopress-appointment') + '</span>'; output += ' '; output += '<span class="mpa-value">' + servicePrice + '</span>'; output += '</li>'; output += '</ul>'; output += '</div>';
We are still working on improving translations in order to allow users to perform translations in language files.
Regards,
AndreMarch 19, 2021 at 5:56 am #1092456Gevorg AvdzhyanParticipantThanks you!
March 19, 2021 at 6:07 am #1092468Gevorg AvdzhyanParticipantThanks for me, it’s better to wait for the update. 🙂
March 22, 2021 at 2:27 am #1093285Andre FloresModeratorHello Gevorg,
You are most welcome 🙂
Sure, we will definitely improve translations in the further plugin updates.Regards,
AndreApril 22, 2021 at 4:54 am #1110085Andre FloresModeratorHello there,
I am delighted to let you know that we have just released the update for the Appointment Booking plugin v. 1.2.1 with the translations issues fix included in it. You may find out what other changes were included in update in the plugin Release Notes.
Feel free to update the plugin to the latest version in order to be able to translate plugin terms easily.Regards,
Andre - AuthorPosts
- You must be logged in to reply to this topic.