diff --git a/framework/webtools/config/WebtoolsUiLabels.xml b/framework/webtools/config/WebtoolsUiLabels.xml index 1d1046a408..2f00f567ed 100644 --- a/framework/webtools/config/WebtoolsUiLabels.xml +++ b/framework/webtools/config/WebtoolsUiLabels.xml @@ -5981,9 +5981,13 @@ 本页面用于导入导出的实体引擎XML文档。这些文档都有一个根标签 "<entity-engine-xml>". 本頁面用於匯入匯出的資料實體引擎XML檔.這些檔都有一個根標簽 "<entity-engine-xml>".</entity-engine-xml> - - Beware, if you are using tenant this acts as the "loadAll" Gradle task that says: "Load default data; meant for OFBiz development, testing, and demo purposes". - Attention, si vous utilisez la fonctionnalité "tenant", cela agit comme la tâche Gradle "loadAll" : "Charger les données par défaut ; destiné au développement, aux tests et à la démonstration OFBiz". + + Beware, you are using tenant, import acts as the "loadAll" Gradle task that says: "Load default data; meant for OFBiz development, testing, and demo purposes". + Attention, vous utilisez la fonctionnalité "tenant", l'import agit comme la tâche Gradle "loadAll" : "Charger les données par défaut ; destiné au développement, aux tests et à la démonstration OFBiz". + + + You should use the "loadTenant" Gradle task to load tenant specific data. + Vous devez utiliser la tâche Gradle "loadTenant" pour charger des données spécifiques à un tenant. You may create an Entity ${entityName} by entering the values you want, and clicking Create. diff --git a/framework/webtools/template/entity/EntityImport.ftl b/framework/webtools/template/entity/EntityImport.ftl index e4ef0bd23d..c99dff2457 100644 --- a/framework/webtools/template/entity/EntityImport.ftl +++ b/framework/webtools/template/entity/EntityImport.ftl @@ -19,7 +19,11 @@ under the License.
${uiLabelMap.WebtoolsImportToDataSource}

${uiLabelMap.WebtoolsXMLImportInfo}

-

${uiLabelMap.WebtoolsXMLImportInfoBewareTenant}

+<#assign tenantUsed = Static["org.apache.ofbiz.entity.util.EntityUtilProperties"].getPropertyValue("general", "multitenant", "N", delegator)> +<#if tenantUsed=="Y"> +

${uiLabelMap.WebtoolsXMLImportInfoBewareTenant1}

+

${uiLabelMap.WebtoolsXMLImportInfoBewareTenant2}

+
diff --git a/framework/webtools/template/entity/EntityImportDir.ftl b/framework/webtools/template/entity/EntityImportDir.ftl index b3c411c930..d78235ab0a 100644 --- a/framework/webtools/template/entity/EntityImportDir.ftl +++ b/framework/webtools/template/entity/EntityImportDir.ftl @@ -19,7 +19,11 @@ under the License.
${uiLabelMap.WebtoolsImportToDataSource}

${uiLabelMap.WebtoolsXMLImportInfo}

-

${uiLabelMap.WebtoolsXMLImportInfoBewareTenant}

+<#assign tenantUsed = Static["org.apache.ofbiz.entity.util.EntityUtilProperties"].getPropertyValue("general", "multitenant", "N", delegator)> +<#if tenantUsed=="Y"> +

${uiLabelMap.WebtoolsXMLImportInfoBewareTenant1}

+

${uiLabelMap.WebtoolsXMLImportInfoBewareTenant2}

+
diff --git a/framework/webtools/template/entity/EntityImportReaders.ftl b/framework/webtools/template/entity/EntityImportReaders.ftl index 8627a5d3b4..2e193b67a8 100644 --- a/framework/webtools/template/entity/EntityImportReaders.ftl +++ b/framework/webtools/template/entity/EntityImportReaders.ftl @@ -19,7 +19,11 @@ under the License.
${uiLabelMap.WebtoolsImportToDataSource}

${uiLabelMap.WebtoolsXMLImportInfo}

-

${uiLabelMap.WebtoolsXMLImportInfoBewareTenant}

+<#assign tenantUsed = Static["org.apache.ofbiz.entity.util.EntityUtilProperties"].getPropertyValue("general", "multitenant", "N", delegator)> +<#if tenantUsed=="Y"> +

${uiLabelMap.WebtoolsXMLImportInfoBewareTenant1}

+

${uiLabelMap.WebtoolsXMLImportInfoBewareTenant2}

+