commit | f3b1654a80d131e5fbc8b7b617d340efddfc0fee | [log] [tgz] |
---|---|---|
author | eneufeld <neufeld.eugen@googlemail.com> | Thu Apr 02 17:29:54 2015 +0200 |
committer | eneufeld <neufeld.eugen@googlemail.com> | Wed Apr 15 11:42:11 2015 +0200 |
tree | e8be559a77c4087b4b42ced59207738cfd10bf3b | |
parent | 4702e3472ae542f0b8ace8b268319206f7d1f23b [diff] |
Bug 461484 - [ViewModel] Internationalize strings used by renderers https://bugs.eclipse.org/bugs/show_bug.cgi?id=461484 property files don't need to have the % anymore Change-Id: I1923a9b01f908caec26ab00e174dc484d662b456 Signed-off-by: eneufeld <neufeld.eugen@googlemail.com>
diff --git a/bundles/org.eclipse.emfforms.view.model.localization/src/org/eclipse/emfforms/internal/view/model/localization/LocalizationViewModelService.java b/bundles/org.eclipse.emfforms.view.model.localization/src/org/eclipse/emfforms/internal/view/model/localization/LocalizationViewModelService.java index c147f8e..a87d7ad 100644 --- a/bundles/org.eclipse.emfforms.view.model.localization/src/org/eclipse/emfforms/internal/view/model/localization/LocalizationViewModelService.java +++ b/bundles/org.eclipse.emfforms.view.model.localization/src/org/eclipse/emfforms/internal/view/model/localization/LocalizationViewModelService.java
@@ -92,7 +92,7 @@ if (vElement.getName() == null) { vElement.setLabel(""); //$NON-NLS-1$ } else if (vElement.getName().startsWith("%") && localizationAdapter != null) { //$NON-NLS-1$ - vElement.setLabel(localizationAdapter.localize(vElement.getName())); + vElement.setLabel(localizationAdapter.localize(vElement.getName().substring(1))); } else { vElement.setLabel(vElement.getName()); }