Changeset 31420


Ignore:
Timestamp:
2017-02-16T14:37:29+13:00 (7 years ago)
Author:
kjdon
Message:

lookup_string with extra '1' arg returns perl internal unicode aware text, so we use add_utf8_text so no encoding is done on it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/plugins/BasePlugin.pm

    r30358 r31420  
    11181118    # add NoText metadata so we can hide this dummy text in format statements
    11191119    $doc_obj->add_metadata($section, "NoText", "1");
    1120     $doc_obj->add_text($section, &gsprintf::lookup_string("{BasePlugin.dummy_text}",1));
     1120
     1121    # lookup_string with extra '1' arg returns perl internal unicode aware text, so we use add_utf8_text so no encoding is done on it.
     1122    $doc_obj->add_utf8_text($section, &gsprintf::lookup_string("{BasePlugin.dummy_text}",1));
     1123    #$doc_obj->add_text($section, &gsprintf::lookup_string("{BasePlugin.dummy_text}",1));
     1124   
    11211125   
    11221126}
Note: See TracChangeset for help on using the changeset viewer.