public static String translateToLocal(String unlocalizedString,Object... params){
  if (I18n.hasKey(unlocalizedString))   return I18n.format(unlocalizedString,params);
 else {
    if (UNLOCALIZED_STRINGS.size() < 100 && !UNLOCALIZED_STRINGS.contains(unlocalizedString))     UNLOCALIZED_STRINGS.add(unlocalizedString);
    return unlocalizedString;
  }
}

public static String translateToLocal ( String unlocalizedString , Object ... params ) { if ( I18n . hasKey ( unlocalizedString ) ) return I18n . format ( unlocalizedString , params ) ; else { if ( UNLOCALIZED_STRINGS . size ( ) < 100 && ! UNLOCALIZED_STRINGS . contains ( unlocalizedString ) ) UNLOCALIZED_STRINGS . add ( unlocalizedString ) ; return unlocalizedString ; } }
use this function if you want the string to be logged in debug mode
