Fri, 24 Aug 2018 21:53:14 +0200
Formatting and measurements
13 | 1 | /***************************************************************************** |
2 | * Copyright (C) 2014 | |
3 | * | |
4 | * Michiel Broek <mbroek at mbse dot eu> | |
5 | * | |
6 | * This file is part of BrewCloud | |
7 | * | |
8 | * This is free software; you can redistribute it and/or modify it | |
9 | * under the terms of the GNU General Public License as published by the | |
10 | * Free Software Foundation; either version 2, or (at your option) any | |
11 | * later version. | |
12 | * | |
13 | * BrewCloud is distributed in the hope that it will be useful, but | |
14 | * WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
16 | * General Public License for more details. | |
17 | * | |
18 | * You should have received a copy of the GNU General Public License | |
19 | * along with ThermFerm; see the file COPYING. If not, write to the Free | |
20 | * Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. | |
21 | *****************************************************************************/ | |
22 | ||
23 | ||
24 | function getLocalization() { | |
25 | var localizationobj = {}; | |
26 | localizationobj.pagerGoToPageString = "Gehe zu:"; | |
27 | localizationobj.pagerShowRowsString = "Zeige Zeile:"; | |
28 | localizationobj.pagerRangeString = " von "; | |
29 | localizationobj.pagerNextButtonString = "voriger"; | |
30 | localizationobj.pagerFirstButtonString = "first"; | |
31 | localizationobj.pagerLastButtonString = "last"; | |
32 | localizationobj.pagerPreviousButtonString = "nächster"; | |
33 | localizationobj.sortAscendingString = "Sortiere aufsteigend"; | |
34 | localizationobj.sortDescendingString = "Sortiere absteigend"; | |
35 | localizationobj.sortRemoveString = "Entferne Sortierung"; | |
36 | localizationobj.firstDay = 1; | |
37 | localizationobj.percentSymbol = "%"; | |
38 | localizationobj.currencySymbol = "€"; | |
39 | localizationobj.currencySymbolPosition = "after"; | |
40 | localizationobj.decimalSeparator = ","; | |
41 | localizationobj.thousandsSeparator = "."; | |
42 | var days = { | |
43 | // full day names | |
44 | names: ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], | |
45 | // abbreviated day names | |
46 | namesAbbr: ["Sonn", "Mon", "Dien", "Mitt", "Donn", "Fre", "Sams"], | |
47 | // shortest day names | |
48 | namesShort: ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"] | |
49 | }; | |
50 | localizationobj.days = days; | |
51 | var months = { | |
52 | // full month names (13 months for lunar calendards -- 13th month should be "" if not lunar) | |
53 | names: ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember", ""], | |
54 | // abbreviated month names | |
55 | namesAbbr: ["Jan", "Feb", "Mär", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dez", ""] | |
56 | }; | |
57 | var patterns = { | |
58 | d: "dd.MM.yyyy", | |
59 | D: "dddd, d. MMMM yyyy", | |
60 | t: "HH:mm", | |
61 | T: "HH:mm:ss", | |
62 | f: "dddd, d. MMMM yyyy HH:mm", | |
63 | F: "dddd, d. MMMM yyyy HH:mm:ss", | |
64 | M: "dd MMMM", | |
65 | Y: "MMMM yyyy" | |
66 | } | |
67 | localizationobj.patterns = patterns; | |
68 | localizationobj.months = months; | |
69 | return localizationobj; | |
70 | } | |
71 | ||
72 | ||
73 | ||
74 | $(document).ready(function () { | |
34 | 75 | $('#aboutWindow').jqxWindow({ |
76 | resizable: true, | |
77 | minWidth: 300, | |
78 | minHeight: 300, | |
79 | theme: theme, | |
80 | autoOpen: false, | |
81 | isModal: true | |
82 | }); | |
83 | $('#aboutWindow').jqxWindow('focus'); | |
84 | ||
13 | 85 | $("#jqxMenu").jqxMenu({ |
86 | width: 1280, | |
87 | height: '30px', | |
88 | theme: theme | |
89 | }); | |
90 | $("#jqxWidget").css('visibility', 'visible'); | |
91 | }); | |
92 |