summaryrefslogtreecommitdiff
path: root/accessibility
diff options
context:
space:
mode:
authorMuhammet Kara <muhammet.kara@pardus.org.tr>2016-12-27 00:04:44 +0200
committerAndras Timar <andras.timar@collabora.com>2017-01-06 23:12:37 +0000
commit92a1ad1f36b6d3cc13135a8c0805508933011577 (patch)
tree1f9aea49e5a4ef58528b62e38c5bbfb0bbcbd943 /accessibility
parentade1d4c36053c2a7aed959e3dd09ebc1b8430ea8 (diff)
Localize return value of EditBrowseBoxTableCell::getAccessibleName
Change-Id: I040c1b9b8680a366819254e1d44b80115a339bbf Reviewed-on: https://gerrit.libreoffice.org/32441 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'accessibility')
-rw-r--r--accessibility/inc/helper/accessiblestrings.hrc23
-rw-r--r--accessibility/source/extended/accessibleeditbrowseboxcell.cxx7
-rw-r--r--accessibility/source/helper/accessiblestrings.src10
3 files changed, 28 insertions, 12 deletions
diff --git a/accessibility/inc/helper/accessiblestrings.hrc b/accessibility/inc/helper/accessiblestrings.hrc
index 60c4392a7562..f957ab93bfe3 100644
--- a/accessibility/inc/helper/accessiblestrings.hrc
+++ b/accessibility/inc/helper/accessiblestrings.hrc
@@ -30,21 +30,24 @@
#define RID_STR_ACC_ACTION_DECLINE ( RID_TK_ACC_START + 4 )
#define RID_STR_ACC_ACTION_INCBLOCK ( RID_TK_ACC_START + 5 )
#define RID_STR_ACC_ACTION_DECBLOCK ( RID_TK_ACC_START + 6 )
-#define RID_STR_ACC_NAME_PREVIEW ( RID_TK_ACC_START + 7 )
+#define RID_STR_ACC_NAME_PREVIEW ( RID_TK_ACC_START + 7 )
#define STR_SVT_ACC_ACTION_EXPAND ( RID_TK_ACC_START + 8 )
#define STR_SVT_ACC_ACTION_COLLAPSE ( RID_TK_ACC_START + 9 )
-#define STR_SVT_ACC_LISTENTRY_SELCTED_STATE ( RID_TK_ACC_START + 10 )
+#define STR_SVT_ACC_LISTENTRY_SELCTED_STATE ( RID_TK_ACC_START + 10 )
-#define RID_STR_ACC_ACTION_CHECK ( RID_TK_ACC_START + 11 )
-#define RID_STR_ACC_ACTION_UNCHECK ( RID_TK_ACC_START + 12 )
-#define RID_STR_ACC_ACTION_DOUBLE_CLICK ( RID_TK_ACC_START + 13 )
-#define RID_STR_ACC_SCROLLBAR_NAME_VERTICAL ( RID_TK_ACC_START + 14 )
-#define RID_STR_ACC_SCROLLBAR_NAME_HORIZONTAL ( RID_TK_ACC_START + 15 )
-#define RID_STR_ACC_PANEL_DESCRIPTION ( RID_TK_ACC_START + 16 )
+#define RID_STR_ACC_ACTION_CHECK ( RID_TK_ACC_START + 11 )
+#define RID_STR_ACC_ACTION_UNCHECK ( RID_TK_ACC_START + 12 )
+#define RID_STR_ACC_ACTION_DOUBLE_CLICK ( RID_TK_ACC_START + 13 )
+#define RID_STR_ACC_SCROLLBAR_NAME_VERTICAL ( RID_TK_ACC_START + 14 )
+#define RID_STR_ACC_SCROLLBAR_NAME_HORIZONTAL ( RID_TK_ACC_START + 15 )
+#define RID_STR_ACC_PANEL_DESCRIPTION ( RID_TK_ACC_START + 16 )
-#define RID_STR_ACC_NAME_BROWSEBUTTON ( RID_TK_ACC_START + 100 )
-#define RID_STR_ACC_DESC_PANELDECL_TABBAR ( RID_TK_ACC_START + 101 )
+#define RID_STR_ACC_COLUMN_NUM ( RID_TK_ACC_START + 17 )
+#define RID_STR_ACC_ROW_NUM ( RID_TK_ACC_START + 18 )
+
+#define RID_STR_ACC_NAME_BROWSEBUTTON ( RID_TK_ACC_START + 100 )
+#define RID_STR_ACC_DESC_PANELDECL_TABBAR ( RID_TK_ACC_START + 101 )
#endif // ACCESSIBILITY_HELPER_ACCESSIBLESTRINGS_HRC_
diff --git a/accessibility/source/extended/accessibleeditbrowseboxcell.cxx b/accessibility/source/extended/accessibleeditbrowseboxcell.cxx
index 7344acf3edce..d816176d8347 100644
--- a/accessibility/source/extended/accessibleeditbrowseboxcell.cxx
+++ b/accessibility/source/extended/accessibleeditbrowseboxcell.cxx
@@ -17,6 +17,9 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <helper/accresmgr.hxx>
+#include <helper/accessiblestrings.hrc>
+
#include <extended/accessibleeditbrowseboxcell.hxx>
#include <svtools/editbrowsebox.hxx>
#include <comphelper/processfactory.hxx>
@@ -103,8 +106,8 @@ namespace accessibility
{
SolarMethodGuard aGuard( *this );
- // TODO: localize this!
- return "Column " + OUString::number(getColumnPos()-1) + ", Row " + OUString::number(getRowPos());
+ return TK_RES_STRING(RID_STR_ACC_COLUMN_NUM).replaceAll("%COLUMNNUMBER", OUString::number(getColumnPos()-1)) + ", "
+ + TK_RES_STRING(RID_STR_ACC_ROW_NUM).replaceAll("%ROWNUMBER", OUString::number(getRowPos()));
}
css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL EditBrowseBoxTableCell::getAccessibleRelationSet() throw ( RuntimeException, std::exception )
diff --git a/accessibility/source/helper/accessiblestrings.src b/accessibility/source/helper/accessiblestrings.src
index 63e30670df76..1a82275f19ec 100644
--- a/accessibility/source/helper/accessiblestrings.src
+++ b/accessibility/source/helper/accessiblestrings.src
@@ -106,6 +106,16 @@ String RID_STR_ACC_PANEL_DESCRIPTION
Text [ en-US ] = "Please press enter to go into child control for more operations";
};
+String RID_STR_ACC_COLUMN_NUM
+{
+ Text [ en-US ] = "Column %COLUMNNUMBER";
+};
+
+String RID_STR_ACC_ROW_NUM
+{
+ Text [ en-US ] = "Row %ROWNUMBER";
+};
+
String RID_STR_ACC_DESC_PANELDECL_TABBAR
{
Text [ en-US ] = "Panel Deck Tab Bar";