Page 3 of 5 FirstFirst 12345 LastLast
Results 21 to 30 of 45
  1. #21
    Join Date
    May 2006
    Posts
    64
    Plugin Contributions
    3

    Default Re: Change FORM Direction ?

    web broswers are not the same when they read html and php and css, there are diferences.

    however, if Internet Explorer is not smart enough, you must tell him using rtl template, use the template I attached before in the thread.

    chech the demo site I made using different broswers, IE, FireFox, Opera, what do you see?

  2. #22
    Join Date
    Nov 2007
    Posts
    433
    Plugin Contributions
    1

    Default Re: Change FORM Direction ?

    Quote Originally Posted by yabora View Post
    web broswers are not the same when they read html and php and css, there are diferences.

    however, if Internet Explorer is not smart enough, you must tell him using rtl template, use the template I attached before in the thread.

    chech the demo site I made using different broswers, IE, FireFox, Opera, what do you see?
    OK, I downloaded the Arabic language pack and uploaded it to my website server but I'm countering a few problems with the Arabic fonts and the rtl code as it doesn't work by me! I presume that you set the language incoding to" Arabic windows " instead of the utf-8! may I know why ?I have the same problem with both sides " admin & frontside ", on the folowing link you can see a live demo for your Arabic pack on my website:

    http://www.arab-broker.com/orientals

  3. #23
    Join Date
    May 2006
    Posts
    64
    Plugin Contributions
    3

    Default Re: Change FORM Direction ?

    alhakeem2001,

    if your db is utf-8 then you should use utf-8 charset in arabic.php in both store side, and admin side, do not use windows-1256

    but, I m still not sure your db format is utf-8.

    open your db using phpmyadmin, check db default coolect type? , open the table "category descriptions", and click structure, what is the collection types, is it utf-8 general?

    yet one more point, I am not sure, but I think this might has an effect:

    the language files are saved in ASNI encoding, not in utf-8 encoding, do the following for both:

    1. open new blank txt file.
    2. File -> save as.. , chang encoding type to utf-8
    3. save this blank txt document.
    4. rename this text file to arabic.php, are you sure (yes)
    5. in the arabic language pack, open includes/languages/arabic.php
    6. select all text, then copy.
    7. paste it in the blank utf-8 encoding arabic.php file, and then save.
    8. do the same thing for admin/includes/languages/arabic.php file
    9. in both files, open, chang

    define('CHARSET', 'windows-1256');
    to
    define('CHARSET', 'utf-8');

    and save

    uplaod these 2 files to their right locations (overwrite existing)

    I have prepared the 2 files for you, they are attached.

    after upload, do the following:
    1. login to your admin area.
    2. select arabic language from language selection drop-down menu.
    3. go to catalog -> Categories/Products
    4. click e sign and re-type category name, and save.

    check your store now?
    Attached Files Attached Files

  4. #24
    Join Date
    Nov 2007
    Posts
    433
    Plugin Contributions
    1

    Default Re: Change FORM Direction ?

    OK, I think now is much better although I think there are a few glitches from my side that need to be tuned !

    if your db is utf-8 then you should use utf-8 charset in arabic.php in both store side, and admin side, do not use windows-1256
    I checked the db, it's utf8_unicode_C and I can change it to utf8_bin if you say so !! I don't know what's the difference though!



    but, I m still not sure your db format is utf-8.
    open your db using phpmyadmin, check db default coolect type? , open the table "category descriptions", and click structure, what is the collection types, is it utf-8 general?
    well, I changed it to utf8_unicode_C , it was utf_swedish_ci

    yet one more point, I am not sure, but I think this might has an effect:

    the language files are saved in ASNI encoding, not in utf-8 encoding, do the following for both:

    1. open new blank txt file.
    2. File -> save as.. , chang encoding type to utf-8
    3. save this blank txt document.
    4. rename this text file to arabic.php, are you sure (yes)
    5. in the arabic language pack, open includes/languages/arabic.php
    6. select all text, then copy.
    7. paste it in the blank utf-8 encoding arabic.php file, and then save.
    8. do the same thing for admin/includes/languages/arabic.php file
    9. in both files, open, chang

    define('CHARSET', 'windows-1256');
    to
    define('CHARSET', 'utf-8');

    and save

    uplaod these 2 files to their right locations (overwrite existing)

    I have prepared the 2 files for you, they are attached.

    after upload, do the following:
    1. login to your admin area.
    2. select arabic language from language selection drop-down menu.
    3. go to catalog -> Categories/Products
    4. click e sign and re-type category name, and save.

    check your store now?
    I didn't do this as I am on my work now, I will do this later today, but would that fix the writing direction and will flip around the boxes for the Arabic language?

    One more remark here, is the Arabic fonts look ok in the admin side when I use the Arabic language, but when I use any other language English… the fonts turn to funny symbols ! how can I avoid that ?
    Last edited by alhakeem2001; 14 Dec 2009 at 12:36 PM.

  5. #25
    Join Date
    May 2006
    Posts
    64
    Plugin Contributions
    3

    Default Re: Change FORM Direction ?

    alhakeem2001,

    your db is utf-8 swedish_ca , I have asked you to check, I did't ask you to change it.

    if you change the general db collection type, that will not change your db collection type., it will change it for future created tables only, you will have to go table by table, and field by field in each existing table and change the collection type, our use SQL commands to do this.

    this maybe not cause damages with english data characters, but for sure it will corrupt your arabic inserted data, so you have to be carfull when do this things and you must know what you are doing, it might look easy to you to change the collection type, and hit go, but sometimes, it has many unexpected consequnces.

    I think you need to leave your db collection type as it is, utf-8 swedish ca for everything table feilds and the db default collection type, and change other things accordingly.

    or ( do not do this now )

    -----------
    delete your db, create new db, set the defalut db collection type to utf-8_general_ca before the installation.

    re-install zen-cart, with option of inserting sample data.
    ------------

    didn't do this as I am on my work now, I will do this later today, but would that fix the writing direction and will flip around the boxes for the Arabic language?
    no it will not, language pack got thing to do with page layout direction, you Must use rtl template, use the one i sent to you before.

    One more remark here, is the Arabic fonts look ok in the admin side when I use the Arabic language, but when I use any other language English… the fonts turn to funny symbols ! how can I avoid that ?
    becuase when you choose english in admin area, charset reading is getting changed according to the admin/includes/languages/english.php

    check charset parameter in admin/includes/languages/english.php file, and make sure it is the same charset as admin/includes/languages/arabic.php.

  6. #26
    Join Date
    Nov 2007
    Posts
    433
    Plugin Contributions
    1

    Default Re: Change FORM Direction ?

    yabora,

    I did a few changes to my zen cart, but still there are things need to be re-configured..
    http://www.arab-broker.com/orientals/

    your db is utf-8 swedish_ca , I have asked you to check, I did't ask you to change it.
    Well, I think it's different, please check attachment.

    if you change the general db collection type, that will not change your db collection type., it will change it for future created tables only, you will have to go table by table, and field by field in each existing table and change the collection type, our use SQL commands to do this.

    this maybe not cause damages with english data characters, but for sure it will corrupt your arabic inserted data, so you have to be carfull when do this things and you must know what you are doing, it might look easy to you to change the collection type, and hit go, but sometimes, it has many unexpected consequnces.

    I think you need to leave your db collection type as it is, utf-8 swedish ca for everything table feilds and the db default collection type, and change other things accordingly.

    or ( do not do this now )

    -----------
    delete your db, create new db, set the defalut db collection type to utf-8_general_ca before the installation.

    re-install zen-cart, with option of inserting sample data.
    ------------
    I'm not sure if I'm ready for that, as I'm far behind now !


    no it will not, language pack got thing to do with page layout direction, you Must use rtl template, use the one i sent to you before.
    I used from the begining and nothing changed .


    becuase when you choose english in admin area, charset reading is getting changed according to the admin/includes/languages/english.php

    check charset parameter in admin/includes/languages/english.php file, and make sure it is the same charset as admin/includes/languages/arabic.php.
    I fixed it.

    can you just please viste my zin cart and tell me what needs to be done!
    http://www.arab-broker.com/orientals/
    Last edited by alhakeem2001; 14 Dec 2009 at 12:36 PM.

  7. #27
    Join Date
    Nov 2007
    Posts
    433
    Plugin Contributions
    1

    Default Re: Change FORM Direction ?

    I think I fixed the arabic language pack ! by changing all *.php to utf8.. but the Arabic template doesn't work with me yet, I don't know why! and there are few things I may need your help to fix like having the text like that :
    تقييم المنتجات [المزيد]
    العروض الخاصة [المزيد]
    المنتجات الجديدة [المزيد]
    المنتجات الجديدة لشهر December

    Would that be reset correctly in the right order whenever the arabic template works ? and how ?

  8. #28
    Join Date
    Nov 2007
    Posts
    433
    Plugin Contributions
    1

    Default Re: Change FORM Direction ?

    Hi yabora,

    I know you are too busy these days, but I hope you will have time to visit my webesite to see how things worked out with me as the revised version of the zc “Arabic language” vary when I view it in different browsers like IE . & Opera , the template looks almost fine in Opera while in IE. not! Do you have any clue ?

    Many thanks again

  9. #29
    Join Date
    May 2006
    Posts
    64
    Plugin Contributions
    3

    Default Re: Change FORM Direction ?

    I don't know how come my arabic template did not work for you, it should work for all browers, However, maybe I have attached a wrong one, let me download the one I am currently using.

    I am at work now, when I go home, I will download it and attach it for you, it should work perfectly for you.

    and solve the text direction problem for you.

    take care.

  10. #30
    Join Date
    May 2006
    Posts
    64
    Plugin Contributions
    3

    Default Re: Change FORM Direction ?

    as promissed, this is my beta classic green arabic template version 1.0

    there are some minor problems which I m working on, I will solve them and release my final one later on.

    but you can use this template as a GOOD starting point.

    now,

    1. upload the whole classic_arabic folder to your templates folder
    2. assign this template to the arabic language

    I assume you know how to do these 2 steps.

    it show solve your arabic direction problem.
    Attached Files Attached Files
    Last edited by yabora; 5 Dec 2007 at 02:52 PM. Reason: edited the attachment

 

 
Page 3 of 5 FirstFirst 12345 LastLast

Similar Threads

  1. v151 Change direction of header drop down
    By barendfaber in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 21 Nov 2013, 03:12 PM
  2. How Can I change the Direction of the Store?
    By shabizon in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 7 Nov 2010, 12:32 PM
  3. Change Form Field
    By nelly7 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 26 Mar 2009, 01:44 PM
  4. change login direction
    By rando84 in forum Basic Configuration
    Replies: 3
    Last Post: 7 Sep 2007, 11:24 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg