Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New version has wrong default language #94

Closed
rocketraceheroes opened this issue Dec 19, 2014 · 2 comments
Closed

New version has wrong default language #94

rocketraceheroes opened this issue Dec 19, 2014 · 2 comments

Comments

@rocketraceheroes
Copy link

New version is defaulting to an odd asian language in Rails... when trying to set by {language: 'en'} it has no effect. Still crazy language.

@buenaventure
Copy link
Contributor

The crazy language is Khmer. It is a copy and paste error in the kh locale

/**
 * Cambodia (Khmer) translation for bootstrap-datepicker
 * Lytay TOUCH <lytaytouch@gmail.com>
 */
;(function($){
    $.fn.datepicker.dates['en'] = {
        days: ["អាទិត្យ", "ចន្ទ", "អង្គារ", "ពុធ", "ព្រហស្បតិ៍", "សុក្រ", "សៅរ៍", "អាទិត្យ"],
        daysShort: ["អា.ទិ", "ចន្ទ", "អង្គារ", "ពុធ", "ព្រ.ហ", "សុក្រ", "សៅរ៍", "អារ.ទិ"],
        daysMin: ["អា.ទិ", "ចន្ទ", "អង្គារ", "ពុធ", "ព្រ.ហ", "សុក្រ", "សៅរ៍", "អារ.ទិ"],
        months: ["មករា", "កុម្ភះ", "មិនា", "មេសា", "ឧសភា", "មិថុនា", "កក្កដា", "សីហា", "កញ្ញា", "តុលា", "វិច្ឆិកា", "ធ្នូ"],
        monthsShort: ["មករា", "កុម្ភះ", "មិនា", "មេសា", "ឧសភា", "មិថុនា", "កក្កដា", "សីហា", "កញ្ញា", "តុលា", "វិច្ឆិកា", "ធ្នូ"],
        today: "ថ្ងៃនេះ",
        clear: "សំអាត"
    };
}(jQuery));

The mistake is already fixed in bootstrap-datepicker, so its version has to be updated.

@Nerian
Copy link
Owner

Nerian commented Dec 19, 2014

hi, this should be fixed now ^_^

@Nerian Nerian closed this as completed Dec 19, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants