Skip to content

Commit

Permalink
Added Czech translation, thanks David Spohr
Browse files Browse the repository at this point in the history
  • Loading branch information
fgelinas committed Nov 20, 2011
1 parent bcd32e4 commit af6da7c
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 8 deletions.
31 changes: 23 additions & 8 deletions i18n/i18n.html
@@ -1,6 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Around the world, around the world -->
<!-- Around the world, around the world -->
<!-- Around the world, around the world -->
<!-- Around the world, around the world -->

<meta charset="utf-8">
<title>Internationalisation page for the jquery ui timepicker</title>

Expand All @@ -14,7 +19,7 @@
<style>
#timepicker { font-size: 10px }
</style>

<script src='jquery.ui.timepicker-cs.js'></script>
<script src='jquery.ui.timepicker-de.js'></script>
<script src='jquery.ui.timepicker-fr.js'></script>
<script src='jquery.ui.timepicker-it.js'></script>
Expand All @@ -35,22 +40,28 @@
showDeselectButton: true
});

$('#locale').change(function() {
$('#timepicker').timepicker( "option",
$.timepicker.regional[ $( this ).val() ] );
});
$('#locale').change(updateLocale).keyup(updateLocale);

});

function updateLocale()
{
$('#timepicker').timepicker( "option",
$.timepicker.regional[ $( '#locale' ).val() ] );
}

</script>

Select a localisation :
<select id='locale'>
<option>Select a localisation</option>
<option value='fr'>Fran&ccedil;ais</option>
<option value='cs'>Czech</option>
<option value='de'>Deutsch</option>
<option value='id'>Italian</option>
<option value='fr'>Fran&ccedil;ais</option>
<option value='it'>Italian</option>
<option value='ja'>Japanese</option>
<option value='pl'>Polish</option>
<option value='sl'>Slovenian</option>
<option value='ja'>Japanese</option>
</select>

<br>
Expand All @@ -63,6 +74,10 @@

List of localisations :
<ul>
<li>
<a href="jquery.ui.timepicker-cs.js">Czech (jquery.ui.timepicker-cs.js</a>
</li>

<li>
<a href="jquery.ui.timepicker-de.js">Deutsch (jquery.ui.timepicker-de.js</a>
</li>
Expand Down
12 changes: 12 additions & 0 deletions i18n/jquery.ui.timepicker-cs.js
@@ -0,0 +1,12 @@
/* Czech initialisation for the timepicker plugin */
/* Written by David Spohr (spohr.david at gmail). */
jQuery(function($){
$.timepicker.regional['cs'] = {
hourText: 'Hodiny',
minuteText: 'Minuty',
amPmText: ['AM', 'PM'] ,
closeButtonText: 'Zavřít',
nowButtonText: 'Nyní',
deselectButtonText: 'Odoznačit' }
$.timepicker.setDefaults($.timepicker.regional['cs']);
});
4 changes: 4 additions & 0 deletions index.html
Expand Up @@ -778,6 +778,10 @@ <h2>Requirements : </h2>
<h2>Releases :</h2>
<dl>

<dt>Release 0.3.0 - ???</dt>
<dd>Fixed a zIndex problem in jQuery Dialog when the user clicked on the input while the timepicker was still visible.</dd>
<dd>Added Czech translation, thanks David Spohr</dd>

<dt>Release 0.2.9 - November 13, 2011</dt>
<dd>Fixed the zIndex problem and removed the zIndex option (Thanks everyone who reported the problem)</dd>
<dd>Fix a bug where repeatedly clicking on hour cells made the timepicker very slow.</dd>
Expand Down
1 change: 1 addition & 0 deletions releases.txt
@@ -1,5 +1,6 @@
Release 0.3.0 - ???
Fixed a zIndex problem in jQuery Dialog when the user clicked on the input while the timepicker was still visible.
Added Czech translation, thanks David Spohr

Release 0.2.9 - November 13, 2011
Fixed the zIndex problem and removed the zIndex option (Thanks everyone who reported the problem)
Expand Down

0 comments on commit af6da7c

Please sign in to comment.