From 58cd62b11516686165b33b0f0927aa34780fea55 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Wed, 11 Oct 2006 02:51:40 +0000 Subject: [PATCH] r1240: Working to get a lot of templates fixed for RTL fun --- includes/init.php | 2 ++ templates/editattach.tpl | 6 +++--- templates/editcomment.tpl | 8 ++++---- templates/newattach.tpl | 10 +++++----- templates/newreport.tpl | 2 +- templates/quicksearch.tpl | 6 +++--- templates/register.tpl | 2 +- templates/search_results.tpl | 2 +- templates/showreport_comment.tpl | 8 ++++---- templates/std_error.tpl | 4 ++-- templates/std_message.tpl | 4 ++-- templates/std_redirect.tpl | 4 ++-- templates/trackerhome.tpl | 2 +- templates/userctrl.tpl | 24 ++++++++++++------------ 14 files changed, 43 insertions(+), 41 deletions(-) diff --git a/includes/init.php b/includes/init.php index e190961..b790cc3 100755 --- a/includes/init.php +++ b/includes/init.php @@ -137,6 +137,8 @@ $language = fetch_user_language(); $stylevar['lang'] = $language['langcode']; $stylevar['lang_dir'] = $language['direction']; $stylevar['charset'] = $language['charset']; +$stylevar['left'] = ($language['direction'] == 'ltr' ? 'left' : 'right'); +$stylevar['right'] = ($language['direction'] == 'ltr' ? 'right' : 'left'); // start gettext engine putenv("LANG=$language[langcode]"); diff --git a/templates/editattach.tpl b/templates/editattach.tpl index 2777107..b3689b0 100644 --- a/templates/editattach.tpl +++ b/templates/editattach.tpl @@ -16,15 +16,15 @@ $header
-
+
{@"Attachment #%1$s for Bug #%2$s %3$s"}
-
+
{@"Attachment"}: {@"View"} [$attachment[filename]]
-
+
{@"Description"}:
{@"Obsolete"}: checked="checked" />
diff --git a/templates/editcomment.tpl b/templates/editcomment.tpl index 8ce31c2..7b2e20c 100644 --- a/templates/editcomment.tpl +++ b/templates/editcomment.tpl @@ -11,7 +11,7 @@ $headinclude $header -
+
{@"The following errors occurred"}: {$message->process}
@@ -22,13 +22,13 @@ $header
-
+
{@"Comment #%1$s in bug #%2$s %3$s"}
-
{@"Posted on %1$s by %2$s"}
+
{@"Posted on %1$s by %2$s"}
-
+
style="color: red">{@"Hidden"}: checked="checked" />
diff --git a/templates/newattach.tpl b/templates/newattach.tpl index aa2015c..5a200b3 100644 --- a/templates/newattach.tpl +++ b/templates/newattach.tpl @@ -11,7 +11,7 @@ $headinclude $header -
+
{@"The following errors occurred"}: {$message->process}
@@ -24,15 +24,15 @@ $header
-
{@"New Attachment for Bug #%1$s %2$s"}
+
{@"New Attachment for Bug #%1$s %2$s"}
-
+
{@"Description"}:
-
+
{@"Mark the Following Attachments Obsolete"}: $obsoletes
@@ -40,7 +40,7 @@ $header -
+
{@"Add Comment"}:
diff --git a/templates/newreport.tpl b/templates/newreport.tpl index 12411e6..ae41b4d 100644 --- a/templates/newreport.tpl +++ b/templates/newreport.tpl @@ -12,7 +12,7 @@ $headinclude $header -
+
{@"The following errors occurred"}: {$message->process}
diff --git a/templates/quicksearch.tpl b/templates/quicksearch.tpl index a4bbf94..d9226b5 100644 --- a/templates/quicksearch.tpl +++ b/templates/quicksearch.tpl @@ -12,11 +12,11 @@ $header
-
{@"Quick Search"}
+
{@"Quick Search"}
-
+
-
$error
+
$error
diff --git a/templates/register.tpl b/templates/register.tpl index 846612f..58c5a96 100644 --- a/templates/register.tpl +++ b/templates/register.tpl @@ -11,7 +11,7 @@ $headinclude $header -
+
{@"The following errors occurred"}: {$message->process}
diff --git a/templates/search_results.tpl b/templates/search_results.tpl index 79d86d6..8a780f6 100644 --- a/templates/search_results.tpl +++ b/templates/search_results.tpl @@ -29,7 +29,7 @@ $bugs -
+
$pagenav
diff --git a/templates/showreport_comment.tpl b/templates/showreport_comment.tpl index 57f2457..ea2de6c 100644 --- a/templates/showreport_comment.tpl +++ b/templates/showreport_comment.tpl @@ -1,8 +1,8 @@
-
- $comment[posttime] +
+ $comment[posttime] $comment[postby]
@@ -11,8 +11,8 @@
-
- +
+ [{@"Delete"}] [{@"Edit Comment"}] diff --git a/templates/std_error.tpl b/templates/std_error.tpl index 810843c..98595ce 100644 --- a/templates/std_error.tpl +++ b/templates/std_error.tpl @@ -12,9 +12,9 @@ $header
-
{@"Error"}
+
{@"Error"}
-
+
{$this->process}
diff --git a/templates/std_message.tpl b/templates/std_message.tpl index 36e38ef..f8d8996 100644 --- a/templates/std_message.tpl +++ b/templates/std_message.tpl @@ -18,9 +18,9 @@ $extra
-
{@"Confirm"}{@"Notice"}
+
{@"Confirm"}{@"Notice"}
-
+
{$this->process} diff --git a/templates/std_redirect.tpl b/templates/std_redirect.tpl index 0083da8..fd9e227 100644 --- a/templates/std_redirect.tpl +++ b/templates/std_redirect.tpl @@ -13,9 +13,9 @@ $header
-
{@"Redirect..."}
+
{@"Redirect..."}
-
+
{$this->process}
diff --git a/templates/trackerhome.tpl b/templates/trackerhome.tpl index 0802aa6..382ef35 100644 --- a/templates/trackerhome.tpl +++ b/templates/trackerhome.tpl @@ -23,7 +23,7 @@ $bugs -
+
$pagenav
diff --git a/templates/userctrl.tpl b/templates/userctrl.tpl index 3424a5b..95ee97d 100644 --- a/templates/userctrl.tpl +++ b/templates/userctrl.tpl @@ -15,7 +15,7 @@ $header -
+
{@"The following errors occurred"}: {$message->process}
@@ -26,7 +26,7 @@ $header
-
{@"User Options"}
+
{@"User Options"}
@@ -70,7 +70,7 @@ $header
-
+
{@"Please enter your password to change these fields"}:
@@ -109,7 +109,7 @@ $header
-
{@"Email Options"}
+
{@"Email Options"}
@@ -123,17 +123,17 @@ $header - + - + - + @@ -142,7 +142,7 @@ $header - + @@ -151,7 +151,7 @@ $header - + @@ -160,7 +160,7 @@ $header - + @@ -169,7 +169,7 @@ $header - + @@ -185,7 +185,7 @@ $header
{@"New bug is added"}{@"New bug is added"}
{@"I am made the assignee"}{@"I am made the assignee"}
{@"Status or resolution changes"}{@"Status or resolution changes"}
{@"'Duplicates' field is changed"}{@"'Duplicates' field is changed"}
{@"A new comment is added"}{@"A new comment is added"}
{@"A new attachment is added"}{@"A new attachment is added"}
{@"Any other field changes"}{@"Any other field changes"}
-
{@"Bug List Display Options"}
+
{@"Bug List Display Options"}
-- 2.43.5