Posted over 8 years ago. Visible to the public.

German localization for Mobiscroll

If you are using Mobiscroll for date pickers on touch devices, here is how to localize the Mobiscroll UI into German:

Copy
var germanMobiscrollLocalization = { preset: 'datetime', ampm: false, cancelText: 'Abbrechen', dateFormat: 'dd.mm.yy', dateOrder: 'ddmmyy', dayNames: ['Sonntag', 'Montag', 'Dienstag', 'Mittwoch', 'Donnerstag', 'Freitag', 'Samstag'], dayNamesShort: ['So', 'Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa'], dayText: 'Tag', hourText: 'Stunde', minuteText: 'Minuten', monthNames: ['Januar', 'Februar', 'März', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember'], monthNamesShort: ['Jan', 'Feb', 'Mär', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dez'], monthText: 'Monat', secText: 'Sekunden', setText: 'OK', timeFormat: 'HH:ii', yearText: 'Jahr', rows: 5 }; $('.date_picker').scroller(germanMobiscrollLocalization);

By refactoring problematic code and creating automated tests, makandra can vastly improve the maintainability of your Rails application.

Owner of this card:

Avatar
Henning Koch
Last edit:
over 8 years ago
Keywords:
iphone, ipad, android, touch, time, datetime
About this deck:
We are makandra and do test-driven, agile Ruby on Rails software development.
License for source code
Posted by Henning Koch to makandra dev
This website uses cookies to improve usability and analyze traffic.
Accept or learn more