Unable to translate using loco translate

  • This topic has 8 replies, 3 voices, and was last updated 3 months ago by Andre Flores.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1087019
    George Nicolaou
    Participant

    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?

    Video explanation

    #1087088
    George Nicolaou
    Participant

    wpml works fine loco doesn’t seem to on this one

    #1087949
    Andre Flores
    Moderator

    Hello 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,
    Andre

    #1091528
    Gevorg Avdzhyan
    Participant

    I 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/BWGWH

    #1092311
    Andre Flores
    Moderator

    Hello 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,
    Andre

    #1092456
    Gevorg Avdzhyan
    Participant

    Thanks you!

    #1092468
    Gevorg Avdzhyan
    Participant

    Thanks for me, it’s better to wait for the update. ๐Ÿ™‚

    #1093285
    Andre Flores
    Moderator

    Hello Gevorg,

    You are most welcome ๐Ÿ™‚
    Sure, we will definitely improve translations in the further plugin updates.

    Regards,
    Andre

    #1110085
    Andre Flores
    Moderator

    Hello 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

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.