diff --git a/framework/example/config/ExampleEntityLabels.xml b/framework/example/config/ExampleEntityLabels.xml index 8acde54931..ab02887ab2 100644 --- a/framework/example/config/ExampleEntityLabels.xml +++ b/framework/example/config/ExampleEntityLabels.xml @@ -69,6 +69,22 @@ สภาพที่เป็นจริง 真实世界 + + + + Example Entity + + + + A unique Example ID. If you don't assign an ID, one will be generated automatically Une réf. unique d'exemple. Si vous n'entrez pas de réf., elle sera générée automatiquement @@ -134,12 +150,6 @@ ตัวอย่างวันที่ 样例日期 - Example ID Réf. d'exemple diff --git a/framework/example/entitydef/entitymodel.xml b/framework/example/entitydef/entitymodel.xml index d1f0a7da33..fd46394dcd 100644 --- a/framework/example/entitydef/entitymodel.xml +++ b/framework/example/entitydef/entitymodel.xml @@ -39,11 +39,7 @@ under the License. - + primary sequenced ID diff --git a/framework/webtools/src/org/ofbiz/webtools/WebToolsServices.java b/framework/webtools/src/org/ofbiz/webtools/WebToolsServices.java index ea3634fd51..cf12036616 100644 --- a/framework/webtools/src/org/ofbiz/webtools/WebToolsServices.java +++ b/framework/webtools/src/org/ofbiz/webtools/WebToolsServices.java @@ -663,6 +663,15 @@ public class WebToolsServices { Debug.logInfo(exception.getMessage(), module); } } + String entityDescription = null; + if (bundle != null) { + try { + entityDescription = bundle.getString("EntityDescription." + entity.getEntityName()); + } catch (Exception exception) {} + } + if (UtilValidate.isEmpty(entityDescription)) { + entityDescription = entity.getDescription(); + } // fields list List> javaNameList = FastList.newInstance(); @@ -754,7 +763,7 @@ public class WebToolsServices { entityMap.put("groupName", groupName); entityMap.put("plainTableName", entity.getPlainTableName()); entityMap.put("title", entity.getTitle()); - entityMap.put("description", entity.getDescription()); + entityMap.put("description", entityDescription); String entityLocation = entity.getLocation(); entityLocation = entityLocation.replaceFirst(System.getProperty("ofbiz.home") + "/", ""); entityMap.put("location", entityLocation);