Permalink
Browse files

Merge pull request #45 from ZakharDay/master

Russian translation added
  • Loading branch information...
2 parents a163526 + dc87f46 commit cebcf4ad8e450a43b223447e6912fc12f3d04ecb @fgelinas committed Jul 24, 2012
Showing with 18 additions and 0 deletions.
  1. +6 −0 i18n/i18n.html
  2. +12 −0 i18n/jquery.ui.timepicker-ru.js
View
@@ -30,6 +30,7 @@
<script src='jquery.ui.timepicker-nl.js'></script>
<script src='jquery.ui.timepicker-pl.js'></script>
<script src='jquery.ui.timepicker-pt-BR.js'></script>
+ <script src='jquery.ui.timepicker-ru.js'></script>
<script src='jquery.ui.timepicker-sl.js'></script>
<script src='jquery.ui.timepicker-sv.js'></script>
<script src='jquery.ui.timepicker-tr.js'></script>
@@ -72,6 +73,7 @@
<option value='ja'>Japanese</option>
<option value='pl'>Polish</option>
<option value="pt-BR">Portuguese/Brazilian</option>
+ <option value='ru'>Русский</option>
<option value='sl'>Slovenian</option>
<option value='es'>Spanish</option>
<option value='sv'>Swedish</option>
@@ -124,6 +126,10 @@
<li>
<a href="jquery.ui.timepicker-pt-BR.js">Portuguese/Brazilian (jquery.ui.timepicker-pt-BR.js)</a>
</li>
+
+ <li>
+ <a href="jquery.ui.timepicker-ru.js">Русский (jquery.ui.timepicker-ru.js)</a>
+ </li>
<li>
<a href="jquery.ui.timepicker-sl.js">Slovenian (jquery.ui.timepicker-sl.js)</a>
@@ -0,0 +1,12 @@
+/* Russian initialisation for the jQuery time picker plugin. */
+/* Writen by Zakhar Day (zakhar.day@gmail.com) */
+jQuery(function($){
+ $.timepicker.regional['ru'] = {
+ hourText: 'Часы',
+ minuteText: 'Минуты',
+ amPmText: ['AM', 'PM'],
+ closeButtonText: 'Готово',
+ nowButtonText: 'Сейчас',
+ deselectButtonText: 'Снять выделение' }
+ $.timepicker.setDefaults($.timepicker.regional['ru']);
+});

0 comments on commit cebcf4a

Please sign in to comment.