protected String getLocalizedString(File featureManifest, String value) {
        if (value != null && value.startsWith("%")) {
            ResourceBundle res = CustomUtils.getResourceBundle(new File(featureManifest.getParentFile(), "l10n"), featureSymbolicName, Locale.getDefault());
            if (res != null) {
                String loc = res.getString(value.substring(1));
                if (loc != null) {
                    value = loc;
                }
            }
        }
        return value;
    }
protected String getLocalizedString ( File featureManifest , String value ) { if ( value != null && value . startsWith ( "%" ) ) { ResourceBundle res = CustomUtils . getResourceBundle ( new File ( featureManifest . getParentFile ( ) , "l10n" ) , featureSymbolicName , Locale . getDefault ( ) ) ; if ( res != null ) { String loc = res . getString ( value . substring ( 1 ) ) ; if ( loc != null ) { value = loc ; } } } return value ; }
returns the localized string of specified value.
the localization file supposes to be located the l10n directory of the location
where the feature manifest file exists, and the name of the resource file is
feature symbolic name + _ + locale + .properties.
prior to call this method, featureSymbolicName field needs to be set.