From 7a6ff28037ef7eb4f7a9d86aa3146b628a118629 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?= Date: Sat, 10 Nov 2001 13:17:18 +0000 Subject: [PATCH] Prepare the use of an Arabic translation (right to left text direction) --- ChangeLog | 4 +++- db_details.php3 | 9 +++---- db_printview.php3 | 4 ++-- db_stats.php3 | 22 ++++++++--------- header.inc.php3 | 10 +++++++- images/{arrow.gif => arrow_ltr.gif} | Bin images/arrow_rtl.gif | Bin 0 -> 91 bytes images/{item.gif => item_ltr.gif} | Bin images/item_rtl.gif | Bin 0 -> 102 bytes index.php3 | 2 +- lang/brazilian_portuguese.inc.php3 | 1 + lang/bulgarian-win1251.inc.php3 | 1 + lang/catala.inc.php3 | 1 + lang/chinese_big5.inc.php3 | 1 + lang/chinese_gb.inc.php3 | 1 + lang/czech-iso.inc.php3 | 1 + lang/czech-win1250.inc.php3 | 1 + lang/danish.inc.php3 | 1 + lang/dutch.inc.php3 | 1 + lang/english.inc.php3 | 1 + lang/finnish.inc.php3 | 1 + lang/french.inc.php3 | 1 + lang/galician.inc.php3 | 1 + lang/german.inc.php3 | 1 + lang/greek.inc.php3 | 1 + lang/italian.inc.php3 | 1 + lang/japanese.inc.php3 | 1 + lang/korean.inc.php3 | 1 + lang/norwegian.inc.php3 | 1 + lang/polish.inc.php3 | 1 + lang/portuguese.inc.php3 | 1 + lang/romanian.inc.php3 | 1 + lang/russian-koi8.inc.php3 | 1 + lang/russian-win1251.inc.php3 | 1 + lang/slovak-iso.inc.php3 | 1 + lang/spanish.inc.php3 | 1 + lang/swedish.inc.php3 | 1 + lang/thai.inc.php3 | 1 + lang/turkish.inc.php3 | 1 + left.php3 | 6 ++--- libraries/common.lib.php3 | 4 ++-- main.php3 | 34 +++++++++++++------------- tbl_dump.php3 | 2 +- tbl_printview.php3 | 4 ++-- tbl_properties.php3 | 10 ++++---- tbl_qbe.php3 | 36 ++++++++++++++-------------- user_details.php3 | 2 +- 47 files changed, 110 insertions(+), 68 deletions(-) rename images/{arrow.gif => arrow_ltr.gif} (100%) create mode 100644 images/arrow_rtl.gif rename images/{item.gif => item_ltr.gif} (100%) create mode 100644 images/item_rtl.gif diff --git a/ChangeLog b/ChangeLog index ec4d56c8d..f835dce14 100755 --- a/ChangeLog +++ b/ChangeLog @@ -7,9 +7,11 @@ $Source$ 2001-11-10 Loïc Chapeaux * lang/italian.inc.php3: updated thanks to Pietro Danesi. + * most of the scripts have been updated in order to prepare the use of an + Arabic translation (right to left text direction). 2001-11-09 Marc Delisle - * Documentation.html: small additions, FAQ sub-sections + * Documentation.html: small additions, FAQ sub-sections. 2001-11-09 Loïc Chapeaux * config.inc.php3; Documentation.html; main.php3; phpinfo.php3; diff --git a/db_details.php3 b/db_details.php3 index 758560d2d..f6ebc035c 100755 --- a/db_details.php3 +++ b/db_details.php3 @@ -266,7 +266,7 @@ else if (MYSQL_INT_VERSION >= 32300) { ?>    - + ' . $unit; ?> = 32300) { echo "\n"; ?> - +   + ' . $unit; ?> = 32300) { - <?php echo $strWithChecked; ?> + <?php echo $strWithChecked; ?>       @@ -395,7 +396,7 @@ else { ?> - <?php echo $strWithChecked; ?> + <?php echo $strWithChecked; ?>       diff --git a/db_printview.php3 b/db_printview.php3 index 31ffe52d7..b9a7ed370 100755 --- a/db_printview.php3 +++ b/db_printview.php3 @@ -172,7 +172,7 @@ else if (MYSQL_INT_VERSION >= 32300) { echo "\n"; ?> -   +  "> ' . $unit . "\n"; ?> = 32300) { echo "\n"; ?> - + "> '. $unit; ?> 0) { - - + + - - + +


@@ -260,9 +260,9 @@ if ($num_dbs > 0) { echo ' ' . "\n"; echo '  ' . htmlentities($db_name) . ' ' . "\n"; echo '  ' . $dbs_array[$db_name][0] . ' ' . "\n"; - echo '  ' . $data_size . ' ' . $data_unit . ' ' . "\n"; - echo '  ' . $idx_size . ' ' . $idx_unit . ' ' . "\n"; - echo '  ' . $tot_size . ' ' . $tot_unit . ' ' . "\n"; + echo '  ' . $data_size . ' ' . $data_unit . ' ' . "\n"; + echo '  ' . $idx_size . ' ' . $idx_unit . ' ' . "\n"; + echo '  ' . $tot_size . ' ' . $tot_unit . ' ' . "\n"; echo ' ' . "\n"; $i++; @@ -278,14 +278,14 @@ if ($num_dbs > 0) { echo '  ' . "\n"; echo '  ' . $strSum . ': ' . $num_dbs . '' . "\n"; echo '  ' . $total_array[0] . ' ' . "\n"; - echo '  ' . $data_size . ' ' . $data_unit . ' ' . "\n"; - echo '  ' . $idx_size . ' ' . $idx_unit . ' ' . "\n"; - echo '  ' . $tot_size . ' ' . $tot_unit . ' ' . "\n"; + echo '  ' . $data_size . ' ' . $data_unit . ' ' . "\n"; + echo '  ' . $idx_size . ' ' . $idx_unit . ' ' . "\n"; + echo '  ' . $tot_size . ' ' . $tot_unit . ' ' . "\n"; echo ' ' . "\n\n"; echo ' ' . "\n"; echo ' ' . "\n"; - echo ' ' . $strWithChecked . '' . "\n"; + echo ' ' . $strWithChecked . '' . "\n"; echo ' ' . $strWithChecked . '  ' . "\n"; echo ' ' . "\n"; echo ' ' . "\n"; diff --git a/header.inc.php3 b/header.inc.php3 index b1453d086..b1497f4e2 100755 --- a/header.inc.php3 +++ b/header.inc.php3 @@ -34,11 +34,19 @@ header('Content-Type: text/html; charset=' . $charset); */ // Gets the font sizes to use set_font_sizes(); +// Defines the cell alignment values depending on text direction +if ($text_dir == 'ltr') { + $cell_align_left = 'left'; + $cell_align_right = 'right'; +} else { + $cell_align_left = 'right'; + $cell_align_right = 'left'; +} ?> - + phpMyAdmin diff --git a/images/arrow.gif b/images/arrow_ltr.gif similarity index 100% rename from images/arrow.gif rename to images/arrow_ltr.gif diff --git a/images/arrow_rtl.gif b/images/arrow_rtl.gif new file mode 100644 index 0000000000000000000000000000000000000000..f4ad5c58f5e90b2883fc72821783b65c7496fd87 GIT binary patch literal 91 zcmZ?wbhEHbRAUfhXkY+=|Ns9h{$ycfU|?j>0r5dH3`|Bn{VPwu^50d7oVEioQ4HoIJBCjx74vkt4#uU=0AmUmp$t literal 0 HcmV?d00001 diff --git a/images/item.gif b/images/item_ltr.gif similarity index 100% rename from images/item.gif rename to images/item_ltr.gif diff --git a/images/item_rtl.gif b/images/item_rtl.gif new file mode 100644 index 0000000000000000000000000000000000000000..4fc9afb4d71a7dec1e9f12608c21731cca8ecec9 GIT binary patch literal 102 zcmZ?wbhEHbWM^P!*v!Dd!o+gr%C$eg{^VrkFc1M0f3h$#FfcOcfYgG_U}h0E@X$OU Vq7-4{I4{b8=dMZH0|plcYXFrf5ikG% literal 0 HcmV?d00001 diff --git a/index.php3 b/index.php3 index 205d777c9..16436ece4 100755 --- a/index.php3 +++ b/index.php3 @@ -35,7 +35,7 @@ $url_query = 'lang=' . $lang - + phpMyAdmin <?php echo PHPMYADMIN_VERSION; ?> - <?php echo $HTTP_HOST; ?>