Ignore:
Timestamp:
2010-07-13T13:21:10+12:00 (14 years ago)
Author:
kjdon
Message:

hack to make right to left languages look proper. new parameter to phind - textorientation. if set to rtl, set righttoleft to true. If this is true, then when making a new result item phrase, swap suffix and prefix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/runtime-src/src/java/org/nzdl/gsdl/Phind/ResultBox.java

    r2507 r22384  
    546546   
    547547    // Create a new ResultItem and add it to the display
    548     ResultItemPhrase ri = new ResultItemPhrase(idStr, tfStr, dfStr, prefix, body, suffix);
    549    
     548    ResultItemPhrase ri;
     549    if (phind.righttoleft) {
     550      // swap suffix and prefix
     551      ri = new ResultItemPhrase(idStr, tfStr, dfStr, suffix, body, prefix);
     552    } else {
     553      ri = new ResultItemPhrase(idStr, tfStr, dfStr, prefix, body, suffix);
     554    }
    550555    if (c.addResultItem(ri)) {
    551556        expansionsRetrieved++;
Note: See TracChangeset for help on using the changeset viewer.