void readTranslations(WebSession session,String language){
  Properties text=new Properties();
  try {
    trace("translation: " + language);
    byte[] trans=getFile("_text_" + language + ".prop");
    trace("  " + new String(trans));
    text=SortedProperties.fromLines(new String(trans,Constants.UTF8));
    for (    Entry<Object,Object> entry : text.entrySet()) {
      String value=(String)entry.getValue();
      if (value.startsWith("#")) {
        entry.setValue(value.substring(1));
      }
    }
  }
 catch (  IOException e) {
    DbException.traceThrowable(e);
  }
  session.put("text",new HashMap<Object,Object>(text));
}

void readTranslations ( WebSession session , String language ) { Properties text = new Properties ( ) ; try { trace ( "translation: " + language ) ; byte [ ] trans = getFile ( "_text_" + language + ".prop" ) ; trace ( "  " + new String ( trans ) ) ; text = SortedProperties . fromLines ( new String ( trans , Constants . UTF8 ) ) ; for ( Entry < Object , Object > entry : text . entrySet ( ) ) { String value = ( String ) entry . getValue ( ) ; if ( value . startsWith ( "#" ) ) { entry . setValue ( value . substring ( 1 ) ) ; } } } catch ( IOException e ) { DbException . traceThrowable ( e ) ; } session . put ( "text" , new HashMap < Object , Object > ( text ) ) ; }
read the translation for this language and save them in the ' text ' property of this session .
