right-rails 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,7 +4,13 @@
4
4
  * Copyright (C) Arnold Mészáros
5
5
  */
6
6
  if (self.Calendar) {
7
- $ext(Calendar.i18n, {
7
+ Calendar.Options.format = 'HU';
8
+ Calendar.Formats.HU = '%Y.%m.%d';
9
+ }
10
+
11
+ RightJS.Object.each({
12
+
13
+ Calendar: {
8
14
  Done: 'Kész',
9
15
  Now: 'Most',
10
16
  NextMonth: 'Következő hónap',
@@ -12,44 +18,29 @@ if (self.Calendar) {
12
18
  NextYear: 'Következő év',
13
19
  PrevYear: 'Előző év',
14
20
 
15
- dayNames: $w('Vasárnap Hétfő Kedd Szerda Csütörtök Péntek Szombat'),
16
- dayNamesShort: $w('Va Hé Ke Sze Csü Pé Szo'),
17
- dayNamesMin: $w('V H K Sz Cs P Sz'),
18
- monthNames: $w('Január Február Március Április Május Június Július Augusztus Szeptember Október November December'),
19
- monthNamesShort: $w('Jan Feb Már Ápr Máj Jún Júl Aug Szep Okt Nov Dec')
20
- });
21
- $ext(Calendar.Options, {
22
- firstDay: 1,
23
- format: 'HU'
24
- });
25
- $ext(Calendar.Formats, {
26
- HU: '%Y.%m.%d'
27
- });
28
- }
21
+ dayNames: 'Vasárnap Hétfő Kedd Szerda Csütörtök Péntek Szombat'.split(' '),
22
+ dayNamesShort: 'Va Hé Ke Sze Csü Pé Szo'.split(' '),
23
+ dayNamesMin: 'V H K Sz Cs P Sz'.split(' '),
24
+ monthNames: 'Január Február Március Április Május Június Július Augusztus Szeptember Október November December'.split(' '),
25
+ monthNamesShort: 'Jan Feb Már Ápr Máj Jún Júl Aug Szep Okt Nov Dec'.split(' ')
26
+ },
29
27
 
30
- if (self.Lightbox) {
31
- $ext(Lightbox.i18n, {
28
+ Lightbox: {
32
29
  Close: 'Bezár',
33
30
  Prev: 'Előző kép',
34
31
  Next: 'Következő kép'
35
- });
36
- }
32
+ },
37
33
 
38
- if (self.InEdit) {
39
- $ext(InEdit.i18n, {
34
+ InEdit: {
40
35
  Save: "Save",
41
36
  Cancel: "Cancel"
42
- });
43
- }
37
+ },
44
38
 
45
- if (self.Colorpicker) {
46
- $ext(Colorpicker.i18n, {
39
+ Colorpicker: {
47
40
  Done: 'Kész'
48
- });
49
- }
41
+ },
50
42
 
51
- if (self.Dialog) {
52
- $ext(Dialog.i18n, {
43
+ Dialog: {
53
44
  Ok: 'Ok',
54
45
  Close: 'Close',
55
46
  Cancel: 'Cancel',
@@ -60,6 +51,50 @@ if (self.Dialog) {
60
51
  Alert: 'Warning!',
61
52
  Confirm: 'Confirm',
62
53
  Prompt: 'Enter'
63
- })
64
- }
54
+ },
55
+
56
+ Rte: {
57
+ Clear: 'Clear',
58
+ Save: 'Save',
59
+ Source: 'Source',
60
+ Bold: 'Bold',
61
+ Italic: 'Italic',
62
+ Underline: 'Underline',
63
+ Strike: 'Strike through',
64
+ Ttext: 'Typetext',
65
+ Header: 'Header',
66
+ Cut: 'Cut',
67
+ Copy: 'Copy',
68
+ Paste: 'Paste',
69
+ Left: 'Left',
70
+ Center: 'Center',
71
+ Right: 'Right',
72
+ Justify: 'Justify',
73
+ Undo: 'Undo',
74
+ Redo: 'Redo',
75
+ Code: 'Code block',
76
+ Quote: 'Block quote',
77
+ Link: 'Add link',
78
+ Image: 'Insert image',
79
+ Video: 'Insert video',
80
+ Dotlist: 'List with dots',
81
+ Numlist: 'List with numbers',
82
+ Indent: 'Indent',
83
+ Outdent: 'Outdent',
84
+ Forecolor: 'Text color',
85
+ Backcolor: 'Background color',
86
+ Select: 'Select',
87
+ Remove: 'Remove',
88
+ Format: 'Format',
89
+ Fontname: 'Font name',
90
+ Fontsize: 'Size',
91
+ Subscript: 'Subscript',
92
+ Superscript: 'Superscript',
93
+ UrlAddress: 'URL Address'
94
+ }
65
95
 
96
+ }, function(module, i18n) {
97
+ if (self[module]) {
98
+ RightJS.$ext(self[module].i18n, i18n);
99
+ }
100
+ });
@@ -3,8 +3,9 @@
3
3
  *
4
4
  * Copyright (C) Nikolay Nemshilov
5
5
  */
6
- if (self.Calendar) {
7
- $ext(Calendar.i18n, {
6
+ RightJS.Object.each({
7
+
8
+ Calendar: {
8
9
  Done: 'Fatto',
9
10
  Now: 'Oggi',
10
11
  NextMonth: 'Mese successivo',
@@ -12,37 +13,29 @@ if (self.Calendar) {
12
13
  NextYear: 'Anno seguente',
13
14
  PrevYear: 'Anno precedente',
14
15
 
15
- dayNames: $w('Domenica Lunedi Martedi Mercoledi Giovedi Venerdi Sabato'),
16
- dayNamesShort: $w('Dom Lun Mar Mer Gio Ven Sab'),
17
- dayNamesMin: $w('Do Lu Ma Me Gi Ve Sa'),
18
- monthNames: $w('Gennaio Febbraio Marzo Aprile Maggio Giugno Luglio Agosto Settembre Ottobre Novembre Dicembre'),
19
- monthNamesShort: $w('Gen Feb Mar Apr Mag Giu Lug Ago Set Ott Nov Dic')
20
- });
21
- }
16
+ dayNames: 'Domenica Lunedi Martedi Mercoledi Giovedi Venerdi Sabato'.split(' '),
17
+ dayNamesShort: 'Dom Lun Mar Mer Gio Ven Sab'.split(' '),
18
+ dayNamesMin: 'Do Lu Ma Me Gi Ve Sa'.split(' '),
19
+ monthNames: 'Gennaio Febbraio Marzo Aprile Maggio Giugno Luglio Agosto Settembre Ottobre Novembre Dicembre'.split(' '),
20
+ monthNamesShort: 'Gen Feb Mar Apr Mag Giu Lug Ago Set Ott Nov Dic'.split(' ')
21
+ },
22
22
 
23
- if (self.Lightbox) {
24
- $ext(Lightbox.i18n, {
23
+ Lightbox: {
25
24
  Close: 'Chiudi',
26
25
  Prev: 'Immagine precedente',
27
26
  Next: 'Immagine seguente'
28
- });
29
- }
27
+ },
30
28
 
31
- if (self.InEdit) {
32
- $ext(InEdit.i18n, {
29
+ InEdit: {
33
30
  Save: "Salva",
34
31
  Cancel: "Abbandona"
35
- });
36
- }
32
+ },
37
33
 
38
- if (self.Colorpicker) {
39
- $ext(Colorpicker.i18n, {
34
+ Colorpicker: {
40
35
  Done: 'Fatto'
41
- });
42
- }
36
+ },
43
37
 
44
- if (self.Dialog) {
45
- $ext(Dialog.i18n, {
38
+ Dialog: {
46
39
  Ok: 'Ok',
47
40
  Close: 'Close',
48
41
  Cancel: 'Cancel',
@@ -53,6 +46,50 @@ if (self.Dialog) {
53
46
  Alert: 'Warning!',
54
47
  Confirm: 'Confirm',
55
48
  Prompt: 'Enter'
56
- })
57
- }
49
+ },
50
+
51
+ Rte: {
52
+ Clear: 'Clear',
53
+ Save: 'Save',
54
+ Source: 'Source',
55
+ Bold: 'Bold',
56
+ Italic: 'Italic',
57
+ Underline: 'Underline',
58
+ Strike: 'Strike through',
59
+ Ttext: 'Typetext',
60
+ Header: 'Header',
61
+ Cut: 'Cut',
62
+ Copy: 'Copy',
63
+ Paste: 'Paste',
64
+ Left: 'Left',
65
+ Center: 'Center',
66
+ Right: 'Right',
67
+ Justify: 'Justify',
68
+ Undo: 'Undo',
69
+ Redo: 'Redo',
70
+ Code: 'Code block',
71
+ Quote: 'Block quote',
72
+ Link: 'Add link',
73
+ Image: 'Insert image',
74
+ Video: 'Insert video',
75
+ Dotlist: 'List with dots',
76
+ Numlist: 'List with numbers',
77
+ Indent: 'Indent',
78
+ Outdent: 'Outdent',
79
+ Forecolor: 'Text color',
80
+ Backcolor: 'Background color',
81
+ Select: 'Select',
82
+ Remove: 'Remove',
83
+ Format: 'Format',
84
+ Fontname: 'Font name',
85
+ Fontsize: 'Size',
86
+ Subscript: 'Subscript',
87
+ Superscript: 'Superscript',
88
+ UrlAddress: 'URL Address'
89
+ }
58
90
 
91
+ }, function(module, i18n) {
92
+ if (self[module]) {
93
+ RightJS.$ext(self[module].i18n, i18n);
94
+ }
95
+ });
@@ -4,11 +4,12 @@
4
4
  * Copyright (C) Nikolay Nemshilov
5
5
  */
6
6
  if (self.Calendar) {
7
- $ext(Calendar.Options, {
8
- format: 'POSIX'
9
- });
7
+ Calendar.Options.format = 'POSIX';
8
+ }
9
+
10
+ RightJS.Object.each({
10
11
 
11
- $ext(Calendar.i18n, {
12
+ Calendar: {
12
13
  Done: 'Done',
13
14
  Now: '今日',
14
15
  NextMonth: '翌月',
@@ -16,37 +17,29 @@ if (self.Calendar) {
16
17
  NextYear: '翌年',
17
18
  PrevYear: '前年',
18
19
 
19
- dayNames: $w('日曜日 月曜日 火曜日 水曜日 木曜日 金曜日 土曜日'),
20
- dayNamesShort: $w('日 月 火 水 木 金 土'),
21
- dayNamesMin: $w('日 月 火 水 木 金 土'),
22
- monthNames: $w('1月 2月 3月 4月 5月 6月 7月 8月 9月 10月 11月 12月'),
23
- monthNamesShort: $w('1月 2月 3月 4月 5月 6月 7月 8月 9月 10月 11月 12月')
24
- });
25
- }
20
+ dayNames: '日曜日 月曜日 火曜日 水曜日 木曜日 金曜日 土曜日'.split(' '),
21
+ dayNamesShort: '日 月 火 水 木 金 土'.split(' '),
22
+ dayNamesMin: '日 月 火 水 木 金 土'.split(' '),
23
+ monthNames: '1月 2月 3月 4月 5月 6月 7月 8月 9月 10月 11月 12月'.split(' '),
24
+ monthNamesShort: '1月 2月 3月 4月 5月 6月 7月 8月 9月 10月 11月 12月'.split(' ')
25
+ },
26
26
 
27
- if (self.Lightbox) {
28
- $ext(Lightbox.i18n, {
27
+ Lightbox: {
29
28
  Close: '閉じる',
30
29
  Prev: '前の画像',
31
30
  Next: '次の画像'
32
- });
33
- }
31
+ },
34
32
 
35
- if (self.InEdit) {
36
- $ext(InEdit.i18n, {
33
+ InEdit: {
37
34
  Save: "保存",
38
35
  Cancel: "キャンセル"
39
- });
40
- }
36
+ },
41
37
 
42
- if (self.Colorpicker) {
43
- $ext(Colorpicker.i18n, {
38
+ Colorpicker: {
44
39
  Done: 'Done'
45
- });
46
- }
40
+ },
47
41
 
48
- if (self.Dialog) {
49
- $ext(Dialog.i18n, {
42
+ Dialog: {
50
43
  Ok: 'Ok',
51
44
  Close: 'Close',
52
45
  Cancel: 'Cancel',
@@ -57,6 +50,50 @@ if (self.Dialog) {
57
50
  Alert: 'Warning!',
58
51
  Confirm: 'Confirm',
59
52
  Prompt: 'Enter'
60
- })
61
- }
53
+ },
54
+
55
+ Rte: {
56
+ Clear: 'Clear',
57
+ Save: 'Save',
58
+ Source: 'Source',
59
+ Bold: 'Bold',
60
+ Italic: 'Italic',
61
+ Underline: 'Underline',
62
+ Strike: 'Strike through',
63
+ Ttext: 'Typetext',
64
+ Header: 'Header',
65
+ Cut: 'Cut',
66
+ Copy: 'Copy',
67
+ Paste: 'Paste',
68
+ Left: 'Left',
69
+ Center: 'Center',
70
+ Right: 'Right',
71
+ Justify: 'Justify',
72
+ Undo: 'Undo',
73
+ Redo: 'Redo',
74
+ Code: 'Code block',
75
+ Quote: 'Block quote',
76
+ Link: 'Add link',
77
+ Image: 'Insert image',
78
+ Video: 'Insert video',
79
+ Dotlist: 'List with dots',
80
+ Numlist: 'List with numbers',
81
+ Indent: 'Indent',
82
+ Outdent: 'Outdent',
83
+ Forecolor: 'Text color',
84
+ Backcolor: 'Background color',
85
+ Select: 'Select',
86
+ Remove: 'Remove',
87
+ Format: 'Format',
88
+ Fontname: 'Font name',
89
+ Fontsize: 'Size',
90
+ Subscript: 'Subscript',
91
+ Superscript: 'Superscript',
92
+ UrlAddress: 'URL Address'
93
+ }
62
94
 
95
+ }, function(module, i18n) {
96
+ if (self[module]) {
97
+ RightJS.$ext(self[module].i18n, i18n);
98
+ }
99
+ });
@@ -1,10 +1,11 @@
1
1
  /**
2
2
  * RightJS UI Internationalization: Dutch module
3
3
  *
4
- * Copyright (C) Douwe Maan
4
+ * Copyright (C) Douwe Maan, Jeffrey Gelens <jeffrey@noppo.pro>
5
5
  */
6
- if (self.Calendar) {
7
- $ext(Calendar.i18n, {
6
+ RightJS.Object.each({
7
+
8
+ Calendar: {
8
9
  Done: 'Klaar',
9
10
  Now: 'Nu',
10
11
  NextMonth: 'Volgende maand',
@@ -12,46 +13,83 @@ if (self.Calendar) {
12
13
  NextYear: 'Volgend jaar',
13
14
  PrevYear: 'Vorig jaar',
14
15
 
15
- dayNames: $w('Zondag Maandag Dinsdag Woensdag Donderdag Vrijdag Zaterdag'),
16
- dayNamesShort: $w('Zo Ma Di Wo Do Vr Za'),
17
- dayNamesMin: $w('Zo Ma Di Wo Do Vr Za'),
18
- monthNames: $w('Januari Februari Maart April Mei Juni Juli Augustus September Oktober November December'),
19
- monthNamesShort: $w('Jan Feb Maa Apr Mei Juni Juli Aug Sept Okt Nov Dec')
20
- });
21
- }
16
+ dayNames: 'zondag maandag dinsdag woensdag donderdag vrijdag zaterdag'.split(' '),
17
+ dayNamesShort: 'zo ma di wo do vr za'.split(' '),
18
+ dayNamesMin: 'zo ma di wo do vr za'.split(' '),
19
+ monthNames: 'januari februari maart april mei juni juli augustus september oktober november december'.split(' '),
20
+ monthNamesShort: 'jan feb maa apr mei juni juli aug sept okt nov dec'.split(' ')
21
+ },
22
22
 
23
- if (self.Lightbox) {
24
- $ext(Lightbox.i18n, {
23
+ Lightbox: {
25
24
  Close: 'Sluiten',
26
25
  Prev: 'Vorige afbeelding',
27
26
  Next: 'Volgende afbeelding'
28
- });
29
- }
27
+ },
30
28
 
31
- if (self.InEdit) {
32
- $ext(InEdit.i18n, {
29
+ InEdit: {
33
30
  Save: "Opslaan",
34
31
  Cancel: "Annuleren"
35
- });
36
- }
32
+ },
37
33
 
38
- if (self.Colorpicker) {
39
- $ext(Colorpicker.i18n, {
34
+ Colorpicker: {
40
35
  Done: 'Klaar'
41
- });
42
- }
36
+ },
43
37
 
44
- if (self.Dialog) {
45
- $ext(Dialog.i18n, {
38
+ Dialog: {
46
39
  Ok: 'Ok',
47
- Close: 'Close',
48
- Cancel: 'Cancel',
40
+ Close: 'Sluiten',
41
+ Cancel: 'Annuleren',
49
42
  Help: 'Help',
50
- Expand: 'Expand',
51
- Collapse: 'Collapse',
43
+ Expand: 'Uitklappen',
44
+ Collapse: 'Inklappen',
52
45
 
53
- Alert: 'Warning!',
54
- Confirm: 'Confirm',
46
+ Alert: 'Let op!',
47
+ Confirm: 'Bevestigen',
55
48
  Prompt: 'Enter'
56
- })
57
- }
49
+ },
50
+
51
+ Rte: {
52
+ Clear: 'Clear',
53
+ Save: 'Bewaar',
54
+ Source: 'Bron',
55
+ Bold: 'Vetgedrukt',
56
+ Italic: 'Schuingedrukt',
57
+ Underline: 'Onderstreept',
58
+ Strike: 'Doorhalen',
59
+ Ttext: 'Typetekst',
60
+ Header: 'Kop',
61
+ Cut: 'Knippen',
62
+ Copy: 'Kopieren',
63
+ Paste: 'Plakken',
64
+ Left: 'Links uitlijnen',
65
+ Center: 'Centreren',
66
+ Right: 'Rechts uitlijnen',
67
+ Justify: 'Uitlijnen',
68
+ Undo: 'Ongedaan maken',
69
+ Redo: 'Opnieuw',
70
+ Code: 'Code block',
71
+ Quote: 'Blokcitaat',
72
+ Link: 'Link toevoegen',
73
+ Image: 'Plaatje toevoegen',
74
+ Video: 'Video toevoegen',
75
+ Dotlist: 'Lijst met punten',
76
+ Numlist: 'Genummerde lijst',
77
+ Indent: 'Inspringen',
78
+ Outdent: 'Uitspringen',
79
+ Forecolor: 'Tekstkleur',
80
+ Backcolor: 'Achtergrond kleur',
81
+ Select: 'Selecteren',
82
+ Remove: 'Verwijderen',
83
+ Format: 'Formaat',
84
+ Fontname: 'Lettertype',
85
+ Fontsize: 'Lettergrootte',
86
+ Subscript: 'Subscript',
87
+ Superscript: 'Superscript',
88
+ UrlAddress: 'URL'
89
+ }
90
+
91
+ }, function(module, i18n) {
92
+ if (self[module]) {
93
+ RightJS.$ext(self[module].i18n, i18n);
94
+ }
95
+ });
@@ -3,8 +3,9 @@
3
3
  *
4
4
  * Copyright (C) Bruno Malvestuto
5
5
  */
6
- if (self.Calendar) {
7
- $ext(Calendar.i18n, {
6
+ RightJS.Object.each({
7
+
8
+ Calendar: {
8
9
  Done: 'Feito',
9
10
  Now: 'Agora',
10
11
  NextMonth: 'Próximo Mês',
@@ -12,37 +13,29 @@ if (self.Calendar) {
12
13
  NextYear: 'Próximo ano',
13
14
  PrevYear: 'Ano anterior',
14
15
 
15
- dayNames: $w('Domingo Segunda Terça Quarta Quinta Sexta Sábado'),
16
- dayNamesShort: $w('Dom Seg Ter Qua Qui Sex Sáb'),
17
- dayNamesMin: $w('D S T Q Q S S'),
18
- monthNames: $w('Janeiro Fevereiro Março Abril Maio Junho Julho Agosto Setembro Outubro Novembro Dezembro'),
19
- monthNamesShort: $w('Jan Fev Mar Abr Mai Jun Jul Ago Set Out Nov Dez')
20
- });
21
- }
16
+ dayNames: 'Domingo Segunda Terça Quarta Quinta Sexta Sábado'.split(' '),
17
+ dayNamesShort: 'Dom Seg Ter Qua Qui Sex Sáb'.split(' '),
18
+ dayNamesMin: 'D S T Q Q S S'.split(' '),
19
+ monthNames: 'Janeiro Fevereiro Março Abril Maio Junho Julho Agosto Setembro Outubro Novembro Dezembro'.split(' '),
20
+ monthNamesShort: 'Jan Fev Mar Abr Mai Jun Jul Ago Set Out Nov Dez'.split(' ')
21
+ },
22
22
 
23
- if (self.Lightbox) {
24
- $ext(Lightbox.i18n, {
23
+ Lightbox: {
25
24
  Close: 'Fechar',
26
25
  Prev: 'Anterior',
27
26
  Next: 'Próxima'
28
- });
29
- }
27
+ },
30
28
 
31
- if (self.InEdit) {
32
- $ext(InEdit.i18n, {
29
+ InEdit: {
33
30
  Save: "Salvar",
34
31
  Cancel: "Cancelar"
35
- });
36
- }
32
+ },
37
33
 
38
- if (self.Colorpicker) {
39
- $ext(Colorpicker.i18n, {
34
+ Colorpicker: {
40
35
  Done: 'Feito'
41
- });
42
- }
36
+ },
43
37
 
44
- if (self.Dialog) {
45
- $ext(Dialog.i18n, {
38
+ Dialog: {
46
39
  Ok: 'Ok',
47
40
  Close: 'Fechar',
48
41
  Cancel: 'Cancelar',
@@ -52,6 +45,51 @@ if (self.Dialog) {
52
45
 
53
46
  Alert: 'Atenção!',
54
47
  Confirm: 'Confirmar',
55
- Prompt: 'Editar'
56
- });
57
- }
48
+ Prompt: 'Editar'
49
+ },
50
+
51
+ Rte: {
52
+ Clear: 'Clear',
53
+ Save: 'Save',
54
+ Source: 'Source',
55
+ Bold: 'Bold',
56
+ Italic: 'Italic',
57
+ Underline: 'Underline',
58
+ Strike: 'Strike through',
59
+ Ttext: 'Typetext',
60
+ Header: 'Header',
61
+ Cut: 'Cut',
62
+ Copy: 'Copy',
63
+ Paste: 'Paste',
64
+ Left: 'Left',
65
+ Center: 'Center',
66
+ Right: 'Right',
67
+ Justify: 'Justify',
68
+ Undo: 'Undo',
69
+ Redo: 'Redo',
70
+ Code: 'Code block',
71
+ Quote: 'Block quote',
72
+ Link: 'Add link',
73
+ Image: 'Insert image',
74
+ Video: 'Insert video',
75
+ Dotlist: 'List with dots',
76
+ Numlist: 'List with numbers',
77
+ Indent: 'Indent',
78
+ Outdent: 'Outdent',
79
+ Forecolor: 'Text color',
80
+ Backcolor: 'Background color',
81
+ Select: 'Select',
82
+ Remove: 'Remove',
83
+ Format: 'Format',
84
+ Fontname: 'Font name',
85
+ Fontsize: 'Size',
86
+ Subscript: 'Subscript',
87
+ Superscript: 'Superscript',
88
+ UrlAddress: 'URL Address'
89
+ }
90
+
91
+ }, function(module, i18n) {
92
+ if (self[module]) {
93
+ RightJS.$ext(self[module].i18n, i18n);
94
+ }
95
+ });