Language for Calendar

Calendar is one of important Part on site, but On some cases, our language library is not enough to use for some special country. So on this section, we will guide you How to build a new library for your site.

Calendar Date Picker

This calendar is working on Search form of the banner.

Firstly, navigate to Settings -> General -> Site language, choose your language. Let’s take Deutsch as an example in this instruction.

Secondly, visit site and press Ctrl + U to see letters representing language. In the picture below, de-CH (is ID code) represents Deutsch.

Thirdly, build new file with name: bootstrap-datepicker.de_CH.js

*Remember the name of file is

Copy all the text

$.fn.datepicker.dates['de_CH'] = {
    days: ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"],
    daysShort: ["Son", "Mon", "Die", "Mit", "Don", "Fre", "Sam"],
    daysMin: ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"],
    months: ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"],
    monthsShort: ["Jan", "Feb", "Mär", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez"],
    today: "Heute",
    clear: "Löschen",
    format: "", 
    weekStart: 1

Then Save file!

Fourly, go to your FTP manager and navigate to the folder of the theme (wp-content/themes/traveler ) (create new folder: /js/locales/ if it does not exist)

Upload file bootstrap-datepicker.de_CH.js you have just built on this folder

Big Calendar

This is Calendar on Service detail

You may follow these steps below

Step 1: Fnd file lang-all.js on main Traveler theme: /traveler/js/fullcalendar-2.4.0/lang-all.js(this is minify file)

Step 2: Create new folder js/fullcalendar-2.4.0/ on Child-theme: wp-content/themes/traveler-childtheme/ js/fullcalendar-2.4.0/ [Do the same steps above]

Then copy file lang-all.js from Parent theme to childtheme folder:  wp-content/themes/traveler-childtheme/ js/fullcalendar-2.4.0/lang-all.js

Go to the and un-minify this library:

Step 3: Copy it back to file:  wp-content/themes/traveler-childtheme/ js/fullcalendar-2.4.0/lang-all.js