Chris Hemp 67a2482691 Problem: Our translation team prefers the usage of [month number]月 for month selection as this is more commonly seen (one big example is the Windows date-time picker). This also allows better spacing for November and December which are 3 characters long in zh-cn and they run together. Also the title text was built with string concatenation for month + year and does not leverage a localization format.
Solution: Switch monthsShort for zh-cn/zh-tw to use monthsShort from moment.js. Add Korean language support by porting from moment as well. In addition a titleFormat key has been added for the .datepicker-switch header of the date picker. This text used to be created with string concatenation and did not work well for Chinese and Korean. Chinese and Korean provide a titleFormat key override and this key defaults to "MM yyyy" for English and other languages.
2015-06-30 09:22:34 -05:00

54 lines
2.2 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="assets/qunit.css" />
<script src="assets/qunit.js"></script>
<!-- console.log for test failures: enable locally if you need extra debug info-->
<!--<script src="assets/qunit-logging.js"></script>-->
<script src="assets/jquery-1.7.1.min.js"></script>
<script src="../js/bootstrap-datepicker.js"></script>
<!-- This locale is included to test usage of titleFormat when available: see tests/suites/options.js -->
<script src="../js/locales/bootstrap-datepicker.zh-CN.js"></script>
<style>
.datepicker {
/* Appended to body, abs-pos off the page */
position: absolute;
display: none;
top: -9999em;
left: -9999em;
}
</style>
<!-- Utilities -->
<script src="assets/utils.js"></script>
<script src="assets/mock.js"></script>
<!-- Test suites -->
<script src="suites/formats.js"></script>
<script src="suites/mouse_navigation/all.js"></script>
<script src="suites/mouse_navigation/2012.js"></script>
<script src="suites/mouse_navigation/2011.js"></script>
<script src="suites/keyboard_navigation/all.js"></script>
<script src="suites/keyboard_navigation/2012.js"></script>
<script src="suites/keyboard_navigation/2011.js"></script>
<script src="suites/component.js"></script>
<script src="suites/events.js"></script>
<script src="suites/options.js"></script>
<script src="suites/inline.js"></script>
<script src="suites/calendar-weeks.js"></script>
<script src="suites/data-api.js"></script>
<script src="suites/noconflict.js"></script>
<script src="suites/methods.js"></script>
</head>
<body>
<h1 id="qunit-header">bootstrap-datepicker</h1>
<h2 id="qunit-banner"></h2>
<div id="qunit-testrunner-toolbar"></div>
<h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests"></ol>
<div id="qunit-fixture"></div>
</body>
</html>