Ignore:
Timestamp:
2005-06-15T16:17:40+12:00 (19 years ago)
Author:
mdewsnip
Message:

Added support for right-to-left languages (Arabic and Farsi).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/gtiaction.cpp

    r10097 r10118  
    277277  }
    278278
     279  // Display text right to left if target language is Arabic or Farsi
     280  if (target_language_code == "ar" || target_language_code == "fa") {
     281    disp.setmacro("gtitextdirection", "gti", "rtl");
     282  }
     283  else {
     284    disp.setmacro("gtitextdirection", "gti", "ltr");
     285  }
     286
    279287  // Send a request to gti.pl to get the valid translation files
    280288  logout << "Query argument: " << query_string << endl;
     
    329337
    330338  disp.setmacro("gtiformcontent", "gti", "_gti:gticore_");
     339
     340  // Display text right to left if target language is Arabic or Farsi
     341  if (target_language_code == "ar" || target_language_code == "fa") {
     342    disp.setmacro("gtitextdirection", "gti", "rtl");
     343  }
     344  else {
     345    disp.setmacro("gtitextdirection", "gti", "ltr");
     346  }
    331347
    332348  // Send a request to gti.pl to get the first string to translate
Note: See TracChangeset for help on using the changeset viewer.