[Libreoffice-commits] core.git: accessibility/inc accessibility/source

Muhammet Kara muhammet.kara at pardus.org.tr
Fri Jan 6 23:13:01 UTC 2017


 accessibility/inc/helper/accessiblestrings.hrc                |   23 +++++-----
 accessibility/source/extended/accessibleeditbrowseboxcell.cxx |    7 ++-
 accessibility/source/helper/accessiblestrings.src             |   10 ++++
 3 files changed, 28 insertions(+), 12 deletions(-)

New commits:
commit 92a1ad1f36b6d3cc13135a8c0805508933011577
Author: Muhammet Kara <muhammet.kara at pardus.org.tr>
Date:   Tue Dec 27 00:04:44 2016 +0200

    Localize return value of EditBrowseBoxTableCell::getAccessibleName
    
    Change-Id: I040c1b9b8680a366819254e1d44b80115a339bbf
    Reviewed-on: https://gerrit.libreoffice.org/32441
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Andras Timar <andras.timar at collabora.com>

diff --git a/accessibility/inc/helper/accessiblestrings.hrc b/accessibility/inc/helper/accessiblestrings.hrc
index 60c4392..f957ab9 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 7344acf..d816176 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 63e3067..1a82275 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";


More information about the Libreoffice-commits mailing list