• Resolved tihon

    (@tihon)


    Translation of a Calendar itself is not a problem at all using qtranslate. But the Form Text remains untranslated no matter what. Though I do have all approproate .po & .mo files in a language folder. But, if I’m using English version of WP all form text stays english. The same goes if I use localized Russian version of WP (all form text stays Russian).
    Any idea how to solve this issue? And why qtranslate doesn’t take care of the form text, eveven though it’s never failed.
    Thanks in a advance!

    http://wordpress.org/extend/plugins/booking/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author wpdevelop

    (@wpdevelop)

    Hello.
    General info
    The booking calendar is support changing the interface based on locale of the site. For activating the specific translation you have to activate the locale at the config.php file at root of your WordPress installation. Plugin is use the active locale of the site for the activation of the specific language from the ../booking/languages/ folder.
    Here is instruction how to check it or fix/add translations.

    If you are use the free version, so then you are need to make the FULL reinstall of the plugin, its because the email templates and labels for the booking form is saved to the DB during activation of the plugin and you are need to make this reactivation. Its mean that the exist bookings and settings will be erased. For doing that, please open the General Booking Settings page and set checked the “Delete booking data” option at the right side of the page. Then open the plugins menu and click at the deactivate link, and wait for the message that the plugin is deactivated successfully. After this click at the activate link, and wait for the message that the plugin is activated successfully. Then you can test it.

    If you are using the paid version of the Booking Calendar and need only the booking form labels at the client side of your site in different language, so you can customize the booking form at the Booking > Settings > Fields page at top form.
    If the translation plugin is support dynamic changing of site locale, it’s have to work with dynamic changing the language of the form. It’s was tested with WPML.
    For the booking form at client side of your website, you can use the special shortcodes for the having Booking form in several languages.
    You can configure the several form or email templates in different languages, using this shortcode:
    [lang=LOCALE] - (start new translation section, where LOCALE - locale of translation)

    Example #1: [lang=fr_FR] – start French tranlation section

    Example #2: "Thank you for your reservation.[lang=fr_FR]Je vous remercie de votre réservation." – English and French translation of some message

    So you can customize the booking form at the Booking > Settings > Fields page.

    Example of booking form with 2 languages: English and French:

    [calendar]
            <div style="text-align:left">
            <p>Time: [select rangetime "10:00 - 12:00" "12:00 - 14:00" "14:00 - 16:00" "16:00 - 18:00" "18:00 - 20:00" ]</p>
            <p>First Name (required):<br />  [text* name] </p>
            <p>Last Name (required):<br />  [text* secondname] </p>
            <p>Email (required):<br />  [email* email] </p>
            <p>Address (required):<br />  [text* address] </p>
            <p>City(required):<br />  [text* city] </p>
            <p>Post code(required):<br />  [text* postcode] </p>
            <p>Country(required):<br />  [country] </p>
            <p>Phone:<br />  [text phone] </p>
            <p>Visitors:<br />  [select visitors "1" "2" "3" "4"] Children: [checkbox children ""]</p>
            <p>Details:<br /> [textarea details] </p>
            <p>[captcha]</p>
            <p>[submit "Send"]</p>
            </div>
    [lang=fr_FR]
            [calendar]
            <div style="text-align:left">
            <p>Heure: [select rangetime "10:00 - 12:00" "12:00 - 14:00" "14:00 - 16:00" "16:00 - 18:00" "18:00 - 20:00" ]</p>
            <p>Prénom (obligatoire):<br />  [text* name] </p>
            <p>Deuxième prénom (requis) <br />  [text* secondname] </p>
            <p>Email (obligatoire) <br />  [email* email] </p>
            <p>Adresse (obligatoire) <br />  [text* address] </p>
            <p>Ville (requis) <br />  [text* city] </p>
            <p>Code postal (obligatoire) <br />  [text* postcode] </p>
            <p>Pays (obligatoire) <br />  [country] </p>
            <p>Téléphone :<br />  [text phone] </p>
            <p>Visiteurs :<br />  [select visitors "1" "2" "3" "4"] Enfants: [checkbox children ""]</p>
            <p>Détails :<br /> [textarea details] </p>
            <p>[captcha]</p>
            <p>[submit "Envoyer"]</p>
            </div>
    Thread Starter tihon

    (@tihon)

    Hello,

    And thank you for your quick and kind reply. But apparently I don’t get the point. I have used yuour example for booking with 2 languages, but ended up with both of them showing on the page. Then, I have created threee saparate booking borm (for each language), but to no avail … it still shows English only. Even though the rest of my page reflect the change the way it shouлд. The new booking forms forms called “german” and “russian” correspondently (and, yes, I did clear the browser cache in the meantime). I can’t show you the page now, because it’s still been tested locally. But here is what I done: Booking > Field settings > fields:
    standard

    [calendar]
            <div style="text-align:left;line-height:28px;"><p>The cost for payment: [cost_hint]</p></div>
            <div style="text-align:left">
            [cost_corrections]
            <p>First Name (required):<br />  [text* name] </p> 
    
            <p>Last Name (required):<br />  [text* secondname] </p> 
    
            <p>Email (required):<br />  [email* email] </p> 
    
            <p>Address (required):<br />  [text* address] </p>  
    
            <p>City(required):<br />  [text* city] </p>  
    
            <p>Post code(required):<br />  [text* postcode] </p>  
    
            <p>Country(required):<br />  [country] </p>  
    
            <p>Phone:<br />  [text phone] </p> 
    
            <p>Visitors:<br />  [select visitors "1" "2" "3" "4"] Children: [checkbox children ""]</p> 
    
            <p>Details:<br /> [textarea details] </p> 
    
            <p>Coupon:<br />  [coupon* coupon] </p>     
    
            <p>[captcha]</p> 
    
            <p>[submit "Send"]</p>
            </div>

    russian

    [lang=ru_RU]
    [calendar]
            <div style="text-align:left;line-height:28px;"><p>Стоимость оплаты: [cost_hint]</p></div>
            <div style="text-align:left">
            [cost_corrections]
            <p>Имя (обязательное поле):<br />  [text* name] </p> 
    
            <p>Фамилия (обязательное поле):<br />  [text* secondname] </p> 
    
            <p>Email (обязательное поле):<br />  [email* email] </p> 
    
            <p>Адрес (обязательное поле):<br />  [text* address] </p>  
    
            <p>Город(обязательное поле):<br />  [text* city] </p>  
    
            <p>Почтовый индекс(обязательное поле):<br />  [text* postcode] </p>  
    
            <p>Страна(обязательное поле):<br />  [country] </p>  
    
            <p>Телефон:<br />  [text phone] </p> 
    
            <p>Посетители:<br />  [select visitors "1" "2" "3" "4"] Children: [checkbox children ""]</p> 
    
            <p>Подробности:<br /> [textarea details] </p> 
    
            <p>Купон:<br />  [coupon* coupon] </p>     
    
            <p>[captcha]</p> 
    
            <p>[submit "Отправирь"]</p>
            </div>

    german

    [lang=de_DE]
    [calendar]
            <div style="text-align:left;line-height:28px;"><p>Zahlungskoist: [cost_hint]</p></div>
            <div style="text-align:left">
            [cost_corrections]
            <p>Vorame (Pflichtfeld):<br />  [text* name] </p> 
    
            <p>Name (Pflichtfeld):<br />  [text* secondname] </p> 
    
            <p>Email (Pflichtfeld):<br />  [email* email] </p> 
    
            <p>Adress (Pflichtfeld):<br />  [text* address] </p>  
    
            <p>Stadt(Pflichtfeld):<br />  [text* city] </p>  
    
            <p>PLZ(Pflichtfeld):<br />  [text* postcode] </p>  
    
            <p>Land(Pflichtfeld):<br />  [country] </p>  
    
            <p>Telefon:<br />  [text phone] </p> 
    
            <p>Besucher:<br />  [select visitors "1" "2" "3" "4"] Kinder: [checkbox children ""]</p> 
    
            <p>Details:<br /> [textarea details] </p> 
    
            <p>Coupon:<br />  [coupon* coupon] </p>     
    
            <p>[captcha]</p> 
    
            <p>[submit "Ansenden"]</p>
            </div>

    Am I just been stupid or it general lack of knowlidge?
    PLease help!
    Will be much obliged to return the favour.

    Cheeers mate!

    Plugin Author wpdevelop

    (@wpdevelop)

    Hello,
    If you are created 3 separated custom forms at the Booking > Settings > Fields page, please do not use at all these keywords: “[lang=ru_RU]” and “[lang=de_DE]”.
    Just during inserting the booking shortcode into the post or page, select the specific booking form at the popup configuration dialog. Please read more how to insert and configure the booking shortcode into the post or page here http://wpbookingcalendar.com/help/inserting-booking-form/

    Thread Starter tihon

    (@tihon)

    Hi there,

    thanks for your reply again, but I couldn’t figured out mu way out of this trouble. Maybe I just don’t understand … I have made 3 separate booking with different languages (and ID’s obviously). But no luck. Names of months and weekdays are translated just finely, but not a form text. I don’t understand why and what is is I’m doing wrong? Another question whould be why do I need to translate language files already presented (e.g. German, Russian)? Arn’t they suppoused work automatically? Any clue?
    Sorry to bother you again, but I whant to find a root of the evil. Never had such a headache with a three language websites.

    Thread Starter tihon

    (@tihon)

    also I have to mention, than my TinyMCE button doesn’t work at all. So, I have to use shortcuts (e.g. [booking type=15 nummonths=1]). Could this be a problem?

    Thread Starter tihon

    (@tihon)

    Silly me! Your first advice was absolutely right. The anly differance is that I have to use qtranslate shortcode instead. And now it works! Or at least pretend to do so.
    Anyway thank you man very much for your help, time and effort. Greatly appreciate it! You saved my day!

    Plugin Author wpdevelop

    (@wpdevelop)

    Ok, good to know that it works now.

    Thread Starter tihon

    (@tihon)

    Without your kind help sir I won’t be able to figure it out on my own (true). I’m just a simple-minded webmaster learning to fly WP. That’s all, really. No humbleness intendet. If there’s (for whatever weired reason) a need for a semi-profefessional translator (RU/DE/EN) with some HTML & CSS awareness … you know how to find me.
    Anyhow, thank you very much! You responded promptly. Put me to the right direction. Very gratful to you. 🙂 I wish more people like you were around this world (I’m not a hippy btw.). What a wonderful world this would be …. 🙂
    Plugin is great! Support is awesome!

    Plugin Author wpdevelop

    (@wpdevelop)

    You are welcome:)
    P.S. We would be very grateful for a good review about the functionality and usage of Booking Calendar or our support. You can leave it here.

    Thread Starter tihon

    (@tihon)

    i’ll promise to do it within a weeek (as as my customer tested all the needeed functionality needed).

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘form text not translated’ is closed to new replies.