public String getLocalizedComponentProperty(IComponent component, Locale locale, String propertyName) { return getLocalizedSourceForComponent(component).getPropertyValue(propertyName, locale); }
private LocalizedPropertySource getLocalizedSourceForNamespace(INamespace namespace) { Resource key = namespace.getSpecificationLocation(); LocalizedPropertySource result = (LocalizedPropertySource) _localizedNamespaceSources.get(key); if (result == null) { result = new LocalizedPropertySource(getSourceForNamespace(namespace)); _localizedNamespaceSources.put(key, result); } return result; }
private LocalizedPropertySource getLocalizedSourceForNamespace(INamespace namespace) { Resource key = namespace.getSpecificationLocation(); LocalizedPropertySource result = (LocalizedPropertySource) _localizedNamespaceSources.get(key); if (result == null) { result = new LocalizedPropertySource(getSourceForNamespace(namespace)); _localizedNamespaceSources.put(key, result); } return result; }
private LocalizedPropertySource getLocalizedSourceForComponent(IComponent component) { Resource key = component.getSpecification().getSpecificationLocation(); LocalizedPropertySource result = (LocalizedPropertySource) _localizedComponentSources.get(key); if (result == null) { result = new LocalizedPropertySource(getSourceForComponent(component)); _localizedComponentSources.put(key, result); } return result; }
public String getLocalizedNamespaceProperty(INamespace namespace, Locale locale, String propertyName) { return getLocalizedSourceForNamespace(namespace).getPropertyValue(propertyName, locale); }
private LocalizedPropertySource getLocalizedSourceForComponent(IComponent component) { Resource key = component.getSpecification().getSpecificationLocation(); LocalizedPropertySource result = (LocalizedPropertySource) _localizedComponentSources.get(key); if (result == null) { result = new LocalizedPropertySource(getSourceForComponent(component)); _localizedComponentSources.put(key, result); } return result; }
public String getLocalizedComponentProperty(IComponent component, Locale locale, String propertyName) { return getLocalizedSourceForComponent(component).getPropertyValue(propertyName, locale); }
public String getLocalizedNamespaceProperty(INamespace namespace, Locale locale, String propertyName) { return getLocalizedSourceForNamespace(namespace).getPropertyValue(propertyName, locale); }