/[drupal]/contributions/profiles/drupalhe/drupalhe.diff.txt
ViewVC logotype

Contents of /contributions/profiles/drupalhe/drupalhe.diff.txt

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Sat Mar 10 19:10:48 2007 UTC (2 years, 8 months ago) by yhager
Branch: MAIN
CVS Tags: HEAD
File MIME type: text/plain
Added instructions on how to create a full hebrew package
1 diff -Nurp --exclude '*.sw?' --exclude '*~' drupal-5.1/includes/bootstrap.inc drupal-he/includes/bootstrap.inc
2 --- drupal-5.1/includes/bootstrap.inc 2007-01-15 13:52:02.000000000 +0200
3 +++ drupal-he/includes/bootstrap.inc 2007-03-10 18:53:51.000000000 +0200
4 @@ -881,8 +881,8 @@ function drupal_maintenance_theme() {
5 require_once './includes/unicode.inc';
6 require_once './modules/filter/filter.module';
7 unicode_check();
8 - drupal_add_css(drupal_get_path('module', 'system') .'/defaults.css', 'module');
9 - drupal_add_css(drupal_get_path('module', 'system') .'/system.css', 'module');
10 + drupal_add_css(drupal_get_path('module', 'system') .'/defaults-rtl.css', 'module');
11 + drupal_add_css(drupal_get_path('module', 'system') .'/system-rtl.css', 'module');
12 $theme = '';
13 }
14
15 diff -Nurp --exclude '*.sw?' --exclude '*~' drupal-5.1/includes/theme.inc drupal-he/includes/theme.inc
16 --- drupal-5.1/includes/theme.inc 2007-01-11 05:36:06.000000000 +0200
17 +++ drupal-he/includes/theme.inc 2007-03-10 19:46:18.000000000 +0200
18 @@ -425,9 +425,9 @@ function theme_page($content) {
19
20 function theme_maintenance_page($content, $messages = TRUE, $partial = FALSE) {
21 drupal_set_header('Content-Type: text/html; charset=utf-8');
22 - drupal_set_html_head('<style type="text/css" media="all">@import "'. base_path() .'misc/maintenance.css";</style>');
23 - drupal_set_html_head('<style type="text/css" media="all">@import "'. base_path() . drupal_get_path('module', 'system') .'/defaults.css";</style>');
24 - drupal_set_html_head('<style type="text/css" media="all">@import "'. base_path() . drupal_get_path('module', 'system') .'/system.css";</style>');
25 + drupal_set_html_head('<style type="text/css" media="all">@import "'. base_path() .'misc/maintenance-rtl.css";</style>');
26 + drupal_set_html_head('<style type="text/css" media="all">@import "'. base_path() . drupal_get_path('module', 'system') .'/defaults-rtl.css";</style>');
27 + drupal_set_html_head('<style type="text/css" media="all">@import "'. base_path() . drupal_get_path('module', 'system') .'/system-rtl.css";</style>');
28 drupal_set_html_head('<link rel="shortcut icon" href="'. base_path() .'misc/favicon.ico" type="image/x-icon" />');
29
30 $output = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n";
31 @@ -457,7 +457,7 @@ function theme_maintenance_page($content
32
33 function theme_install_page($content) {
34 drupal_set_header('Content-Type: text/html; charset=utf-8');
35 - drupal_add_css('misc/maintenance.css', 'module', 'all', FALSE);
36 + drupal_add_css('misc/maintenance-rtl.css', 'module', 'all', FALSE);
37 drupal_set_html_head('<link rel="shortcut icon" href="'. base_path() .'misc/favicon.ico" type="image/x-icon" />');
38 $output = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n";
39 $output .= '<html xmlns="http://www.w3.org/1999/xhtml">';
40 diff -Nurp --exclude '*.sw?' --exclude '*~' drupal-5.1/install.php drupal-he/install.php
41 --- drupal-5.1/install.php 2007-01-10 12:15:07.000000000 +0200
42 +++ drupal-he/install.php 2007-03-10 19:38:14.000000000 +0200
43 @@ -20,6 +20,8 @@ function install_main() {
44 drupal_bootstrap(DRUPAL_BOOTSTRAP_CONFIGURATION);
45 require_once './modules/system/system.install';
46 require_once './includes/file.inc';
47 + $profile = "drupalhe";
48 + $install_locale = "he";
49
50 // Ensure correct page headers are sent (e.g. caching)
51 drupal_page_header();
52 @@ -50,7 +52,7 @@ function install_main() {
53 if (!empty($_GET['profile'])) {
54 $profile = preg_replace('/[^a-zA-Z_0-9]/', '', $_GET['profile']);
55 }
56 - elseif ($profile = install_select_profile()) {
57 + elseif (!empty($profile) /* $profile == install_select_profile() */ ) {
58 install_goto("install.php?profile=$profile");
59 }
60 else {
61 @@ -61,7 +63,7 @@ function install_main() {
62 if (!empty($_GET['locale'])) {
63 $install_locale = preg_replace('/[^a-zA-Z_0-9]/', '', $_GET['locale']);
64 }
65 - elseif (($install_locale = install_select_locale($profile)) !== FALSE) {
66 + elseif (!empty($install_locale) /* ($install_locale = install_select_locale($profile) ) !== FALSE */) {
67 install_goto("install.php?profile=$profile&locale=$install_locale");
68 }
69
70 diff -Nurp --exclude '*.sw?' --exclude '*~' drupal-5.1/misc/maintenance-rtl.css drupal-he/misc/maintenance-rtl.css
71 --- drupal-5.1/misc/maintenance-rtl.css 1970-01-01 02:00:00.000000000 +0200
72 +++ drupal-he/misc/maintenance-rtl.css 2007-03-10 19:42:38.000000000 +0200
73 @@ -0,0 +1,68 @@
74 +/* $Id: maintenance.css,v 1.6 2006/07/13 13:11:36 dries Exp $ */
75 +
76 +/* rtl */
77 +html {
78 + direction: rtl;
79 +}
80 +
81 +body {
82 + background: url(druplicon.png) 91% 4em no-repeat #fff;
83 + color: #000;
84 + border: 1px solid #bbb;
85 + margin: 3em;
86 + padding: 1em 128px 1em 1em;
87 + line-height: 1.2;
88 +}
89 +h1 {
90 + margin: 1.6em 0 1.1em 0;
91 +}
92 +h1, h2, h3, h4, h5, h6 {
93 + font-family: sans-serif;
94 +}
95 +:link {
96 + color: #0073ba;
97 + font-weight: bold;
98 +}
99 +:visited {
100 + color: #004975;
101 + font-weight: bold;
102 +}
103 +
104 +div.messages {
105 + border: 1px solid #ddd;
106 + padding: 0.4em;
107 + margin-top: 1em;
108 +}
109 +
110 +div.messages li {
111 + margin-top: 0.5em;
112 + margin-bottom: 0.5em;
113 +}
114 +
115 +div.error {
116 + background: #fdd;
117 + border: 1px solid #daa;
118 + color: #400;
119 +}
120 +
121 +/* Update styles */
122 +#update-results {
123 + margin-top: 3em;
124 + padding: 0.25em;
125 + border: 1px solid #ccc;
126 + background: #eee;
127 + font-size: smaller;
128 +}
129 +#update-results h2 {
130 + margin-top: 0.25em;
131 +}
132 +#update-results h4 {
133 + margin-bottom: 0.25em;
134 +}
135 +#update-results li.none {
136 + color: #888;
137 + font-style: italic;
138 +}
139 +#update-results li.failure strong {
140 + color: #b63300;
141 +}
142 diff -Nurp --exclude '*.sw?' --exclude '*~' drupal-5.1/modules/system/defaults-rtl.css drupal-he/modules/system/defaults-rtl.css
143 --- drupal-5.1/modules/system/defaults-rtl.css 1970-01-01 02:00:00.000000000 +0200
144 +++ drupal-he/modules/system/defaults-rtl.css 2007-03-10 19:46:34.000000000 +0200
145 @@ -0,0 +1,53 @@
146 +/* $Id: defaults-rtl.css,v 1.1 2007/03/01 12:00:54 levavie Exp $ */
147 +
148 +/*
149 +** HTML elements
150 +*/
151 +fieldset {
152 + margin-bottom: 1em;
153 + padding: .5em;
154 +}
155 +form {
156 + margin: 0;
157 + padding: 0;
158 +}
159 +hr {
160 + height: 1px;
161 + border: 1px solid gray;
162 +}
163 +img {
164 + border: 0;
165 +}
166 +table {
167 + border-collapse: collapse;
168 +}
169 +th {
170 + text-align: right;
171 + padding-left: 1em;
172 + border-bottom: 3px solid #ccc;
173 +}
174 +
175 +/*
176 +** Markup free clearing
177 +** Details: http://www.positioniseverything.net/easyclearing.html
178 +*/
179 +.clear-block:after {
180 + content: ".";
181 + display: block;
182 + height: 0;
183 + clear: both;
184 + visibility: hidden;
185 +}
186 +
187 +.clear-block {
188 + display: inline-block;
189 +}
190 +
191 +/* Hides from IE-mac \*/
192 +* html .clear-block {
193 + height: 1%;
194 +}
195 +.clear-block {
196 + display: block;
197 +}
198 +/* End hide from IE-mac */
199 diff -Nurp --exclude '*.sw?' --exclude '*~' drupal-5.1/modules/system/system-rtl.css drupal-he/modules/system/system-rtl.css
200 --- drupal-5.1/modules/system/system-rtl.css 1970-01-01 02:00:00.000000000 +0200
201 +++ drupal-he/modules/system/system-rtl.css 2007-03-10 19:46:43.000000000 +0200
202 @@ -0,0 +1,394 @@
203 +/* $Id: system-rtl.css,v 1.1 2007/03/01 12:00:54 levavie Exp $ */
204 +
205 +/*
206 +** HTML elements
207 +*/
208 +th.active img {
209 + display: inline;
210 +}
211 +tr.even, tr.odd {
212 + background-color: #eee;
213 + border-bottom: 1px solid #ccc;
214 + padding: 0.1em 0.6em;
215 +}
216 +td.active {
217 + background-color: #ddd;
218 +}
219 +tbody {
220 + border-top: 1px solid #ccc;
221 +}
222 +tbody th {
223 + border-bottom: 1px solid #ccc;
224 +}
225 +thead th {
226 + text-align: right;
227 + padding-left: 1em;
228 + border-bottom: 3px solid #ccc;
229 +}
230 +
231 +/*
232 +** Other common styles
233 +*/
234 +.breadcrumb {
235 + padding-bottom: .5em
236 +}
237 +.error {
238 + color: #f00;
239 +}
240 +div.error {
241 + border: 1px solid #d77;
242 +}
243 +div.error, tr.error {
244 + background: #fcc;
245 + color: #200;
246 +}
247 +div.warning, tr.warning {
248 + background: #ffd;
249 +}
250 +div.ok, tr.ok {
251 + background: #dfd;
252 +}
253 +.item-list .icon {
254 + color: #555;
255 + float: left;
256 + padding-right: 0.25em;
257 + clear: left;
258 +}
259 +.item-list .title {
260 + font-weight: bold;
261 +}
262 +.item-list ul {
263 + margin: 0 0 0.75em 0;
264 + padding: 0;
265 +}
266 +.item-list ul li {
267 + margin: 0 1.5em 0.25em 0;
268 + padding: 0;
269 + list-style: disc;
270 +}
271 +.form-item {
272 + margin-top: 1em;
273 + margin-bottom: 1em;
274 +}
275 +tr.odd .form-item, tr.even .form-item {
276 + margin-top: 0;
277 + margin-bottom: 0;
278 + white-space: nowrap;
279 +}
280 +tr.merge-down, tr.merge-down td, tr.merge-down th {
281 + border-bottom-width: 0 !important;
282 +}
283 +tr.merge-up, tr.merge-up td, tr.merge-up th {
284 + border-top-width: 0 !important;
285 +}
286 +.form-item input.error, .form-item textarea.error, .form-item select.error {
287 + border: 2px solid red;
288 +}
289 +.form-item .description {
290 + font-size: 0.85em;
291 +}
292 +.form-item label {
293 + display: block;
294 + font-weight: bold;
295 +}
296 +.form-item label.option {
297 + display: inline;
298 + font-weight: normal;
299 +}
300 +.form-checkboxes, .form-radios {
301 + margin: 1em 0;
302 +}
303 +.form-checkboxes .form-item, .form-radios .form-item {
304 + margin-top: 0.4em;
305 + margin-bottom: 0.4em;
306 +}
307 +.marker, .form-required {
308 + color: #f00;
309 +}
310 +.more-link {
311 + text-align: left;
312 +}
313 +.more-help-link {
314 + font-size: 0.85em;
315 + text-align: left;
316 +}
317 +.nowrap {
318 + white-space: nowrap;
319 +}
320 +.pager {
321 + clear: both;
322 + text-align: center;
323 +}
324 +.pager a, .pager strong.pager-current {
325 + padding: 0.5em;
326 +}
327 +.tips {
328 + margin-top: 0;
329 + margin-bottom: 0;
330 + padding-top: 0;
331 + padding-bottom: 0;
332 + font-size: 0.9em;
333 +}
334 +dl.multiselect dd.b, dl.multiselect dd.b .form-item, dl.multiselect dd.b select {
335 + font-family: inherit;
336 + font-size: inherit;
337 + width: 14em;
338 +}
339 +dl.multiselect dd.a, dl.multiselect dd.a .form-item {
340 + width: 8em;
341 +}
342 +dl.multiselect dt, dl.multiselect dd {
343 + float: right;
344 + line-height: 1.75em;
345 + padding: 0;
346 + margin: 0 0 0 1em;
347 +}
348 +dl.multiselect .form-item {
349 + height: 1.75em;
350 + margin: 0;
351 +}
352 +
353 +/*
354 +** Inline items (need to override above)
355 +*/
356 +.container-inline div, .container-inline label {
357 + display: inline;
358 +}
359 +
360 +/*
361 +** Menus
362 +*/
363 +ul.menu {
364 + list-style: none;
365 + border: none;
366 + text-align:right;
367 +}
368 +ul.menu li {
369 + margin: 0 0.5em 0 0;
370 +}
371 +li.expanded {
372 + list-style-type: circle;
373 + list-style-image: url(../../misc/menu-expanded.png);
374 + padding: 0.2em 0 0 0.5em;
375 + margin: 0;
376 +}
377 +li.collapsed {
378 + list-style-type: disc;
379 + list-style-image: url(../../misc/menu-collapsed.png);
380 + padding: 0.2em 0 0 0.5em;
381 + margin: 0;
382 +}
383 +li.leaf {
384 + list-style-type: square;
385 + list-style-image: url(../../misc/menu-leaf.png);
386 + padding: 0.2em 0 0 0.5em;
387 + margin: 0;
388 +}
389 +li a.active {
390 + color: #000;
391 +}
392 +td.menu-disabled {
393 + background: #ccc;
394 +}
395 +ul.links {
396 + margin: 0;
397 + padding: 0;
398 +}
399 +ul.links.inline {
400 + display: inline;
401 +}
402 +ul.links li {
403 + display: inline;
404 + list-style-type: none;
405 + padding: 0 0.5em;
406 +}
407 +.block ul {
408 + margin: 0;
409 + padding: 0 1em 0.25em 0;
410 +}
411 +
412 +/*
413 +** Tab navigation
414 +*/
415 +ul.primary {
416 + border-collapse: collapse;
417 + padding: 0 1em 0 0;
418 + white-space: nowrap;
419 + list-style: none;
420 + margin: 5px;
421 + height: auto;
422 + line-height: normal;
423 + border-bottom: 1px solid #bbb;
424 +}
425 +ul.primary li {
426 + display: inline;
427 +}
428 +ul.primary li a {
429 + background-color: #ddd;
430 + border-color: #bbb;
431 + border-width: 1px;
432 + border-style: solid solid none solid;
433 + height: auto;
434 + margin-left: 0.5em;
435 + padding: 0 1em;
436 + text-decoration: none;
437 +}
438 +ul.primary li.active a {
439 + background-color: #fff;
440 + border: 1px solid #bbb;
441 + border-bottom: #fff 1px solid;
442 +}
443 +ul.primary li a:hover {
444 + background-color: #eee;
445 + border-color: #ccc;
446 + border-bottom-color: #eee;
447 +}
448 +ul.secondary {
449 + border-bottom: 1px solid #bbb;
450 + padding: 0.5em 1em;
451 + margin: 5px;
452 +}
453 +ul.secondary li {
454 + display: inline;
455 + padding: 0 1em;
456 + border-left: 1px solid #ccc;
457 +
458 +}
459 +ul.secondary a {
460 + padding: 0;
461 + text-decoration: none;
462 +}
463 +ul.secondary a.active {
464 + border-bottom: 4px solid #999;
465 +}
466 +
467 +/*
468 +** Autocomplete styles
469 +*/
470 +/* Suggestion list */
471 +#autocomplete {
472 + position: absolute;
473 + border: 1px solid;
474 + overflow: hidden;
475 + z-index: 100;
476 +}
477 +#autocomplete ul {
478 + margin: 0;
479 + padding: 0;
480 + list-style: none;
481 +}
482 +#autocomplete li {
483 + background: #fff;
484 + color: #000;
485 + white-space: pre;
486 + cursor: default;
487 +}
488 +#autocomplete li.selected {
489 + background: #0072b9;
490 + color: #fff;
491 +}
492 +/* Animated throbber */
493 +html.js input.form-autocomplete {
494 + background-image: url(../../misc/throbber.gif);
495 + background-repeat: no-repeat;
496 + background-position: 0% 2px;
497 +}
498 +html.js input.throbbing {
499 + background-position: 0% -18px;
500 +}
501 +
502 +/*
503 +** Collapsing fieldsets
504 +*/
505 +html.js fieldset.collapsed {
506 + border-bottom-width: 0;
507 + border-right-width: 0;
508 + border-left-width: 0;
509 + margin-bottom: 0;
510 + height: 1em;
511 +}
512 +html.js fieldset.collapsed * {
513 + display: none;
514 +}
515 +html.js fieldset.collapsed legend {
516 + display: block;
517 +}
518 +html.js fieldset.collapsible legend a {
519 + padding-right: 15px;
520 + /*background: url(../../misc/menu-expanded.png) 5px 75% no-repeat;*//* LTR version*/
521 + background: url(../../misc/menu-expanded.png) 98% 75% no-repeat;
522 +}
523 +html.js fieldset.collapsed legend a {
524 + background-image: url(../../misc/menu-collapsed.png);
525 + background-position: 98% 50%;
526 +}
527 +/* Note: IE-only fix due to '* html' (breaks Konqueror otherwise). */
528 +* html.js fieldset.collapsed legend,
529 +* html.js fieldset.collapsed legend *,
530 +* html.js fieldset.collapsed table * {
531 + display: inline;
532 +}
533 +html.js fieldset.collapsible legend a {
534 + display: block;
535 +}
536 +/* Avoid jumping around due to margins collapsing into collapsible fieldset border */
537 +html.js fieldset.collapsible .fieldset-wrapper {
538 + overflow: auto;
539 +}
540 +
541 +/*
542 +** Resizable text areas
543 +*/
544 +.resizable-textarea {
545 + width: 95%;
546 +}
547 +.resizable-textarea .grippie {
548 + height: 9px;
549 + overflow: hidden;
550 + background: #eee url(../../misc/grippie.png) no-repeat center 2px;
551 + border: 1px solid #ddd;
552 + border-top-width: 0;
553 + cursor: s-resize;
554 +}
555 +html.js .resizable-textarea textarea {
556 + margin-bottom: 0;
557 + width: 100%;
558 + display: block;
559 +}
560 +
561 +/*
562 +** Progressbar styles
563 +*/
564 +.progress {
565 + font-weight: bold;
566 +}
567 +.progress .bar {
568 + background: #fff url(../../misc/progress.gif);
569 + border: 1px solid #00375a;
570 + height: 1.5em;
571 + margin-top: 0.2em;
572 +}
573 +.progress .filled {
574 + background: #0072b9;
575 + height: 1em;
576 + border-bottom: 0.5em solid #004a73;
577 + width: 0%;
578 +}
579 +.progress .percentage {
580 + float: left;
581 +}
582 +
583 +/*
584 +** Formatting for welcome page
585 +*/
586 +#first-time strong {
587 + display: block;
588 + padding: 1.5em 0 .5em;
589 +}
590 +
591 +/*
592 +** To be used with tableselect.js
593 +*/
594 +tr.selected td {
595 + background: #ffc;
596 +}

  ViewVC Help
Powered by ViewVC 1.1.2