From 6f5f225d6659b0c5d23c133c9a4c1b892a903d89 Mon Sep 17 00:00:00 2001 From: Nicolas Micoud Date: Tue, 17 Apr 2018 09:26:12 +0200 Subject: [PATCH] IDEMPIERE-3691 "Row" tooltip is not translated --- migration/i5.1/oracle/201804170900_IDEMPIERE-3691.sql | 10 ++++++++++ .../i5.1/postgresql/201804170900_IDEMPIERE-3691.sql | 7 +++++++ .../adempiere/webui/adwindow/GridTabRowRenderer.java | 2 +- 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 migration/i5.1/oracle/201804170900_IDEMPIERE-3691.sql create mode 100644 migration/i5.1/postgresql/201804170900_IDEMPIERE-3691.sql diff --git a/migration/i5.1/oracle/201804170900_IDEMPIERE-3691.sql b/migration/i5.1/oracle/201804170900_IDEMPIERE-3691.sql new file mode 100644 index 0000000000..f9fcf03b7b --- /dev/null +++ b/migration/i5.1/oracle/201804170900_IDEMPIERE-3691.sql @@ -0,0 +1,10 @@ +SET SQLBLANKLINES ON +SET DEFINE OFF + +-- IDEMPIERE-3691 "Row" tooltip is not translated +-- Apr 17, 2018 9:04:04 AM CEST +INSERT INTO AD_Message (MsgType,MsgText,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Message_ID,Value,EntityType,AD_Message_UU) VALUES ('I','Row',0,0,'Y',TO_DATE('2018-04-17 09:04:03','YYYY-MM-DD HH24:MI:SS'),0,TO_DATE('2018-04-17 09:04:03','YYYY-MM-DD HH24:MI:SS'),0,200452,'Row','D','df5d9baf-0fd2-477c-aa27-da90069bbd07') +; + +SELECT register_migration_script('201804170900_IDEMPIERE-3691.sql') FROM dual +; \ No newline at end of file diff --git a/migration/i5.1/postgresql/201804170900_IDEMPIERE-3691.sql b/migration/i5.1/postgresql/201804170900_IDEMPIERE-3691.sql new file mode 100644 index 0000000000..09ca4426ce --- /dev/null +++ b/migration/i5.1/postgresql/201804170900_IDEMPIERE-3691.sql @@ -0,0 +1,7 @@ +-- IDEMPIERE-3691 "Row" tooltip is not translated +-- Apr 17, 2018 9:04:04 AM CEST +INSERT INTO AD_Message (MsgType,MsgText,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Message_ID,Value,EntityType,AD_Message_UU) VALUES ('I','Row',0,0,'Y',TO_TIMESTAMP('2018-04-17 09:04:03','YYYY-MM-DD HH24:MI:SS'),0,TO_TIMESTAMP('2018-04-17 09:04:03','YYYY-MM-DD HH24:MI:SS'),0,200452,'Row','D','df5d9baf-0fd2-477c-aa27-da90069bbd07') +; + +SELECT register_migration_script('201804170900_IDEMPIERE-3691.sql') FROM dual +; \ No newline at end of file diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/GridTabRowRenderer.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/GridTabRowRenderer.java index 39a8f79726..a31c5c69eb 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/GridTabRowRenderer.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/GridTabRowRenderer.java @@ -587,7 +587,7 @@ public class GridTabRowRenderer implements RowRenderer, RowRendererExt row.setStyle("cursor:pointer"); row.addEventListener(Events.ON_CLICK, rowListener); row.addEventListener(Events.ON_OK, rowListener); - row.setTooltiptext("Row " + (rowIndex+1)); + row.setTooltiptext(Msg.getMsg(Env.getCtx(), "Row") + " " + (rowIndex+1)); if (isActive == null) { Object isActiveValue = gridTab.getValue(rowIndex, "IsActive");