summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kyoshida@novell.com>2010-12-07 23:02:02 -0500
committerKohei Yoshida <kyoshida@novell.com>2010-12-08 09:09:50 -0500
commita0bdbcf6481ab9176a7c763284991887d00161ff (patch)
tree0a9a84fbb48df857340f3553ba65d502ed26123d
parent9e338f0677ab068e1bf792db11123b646938edbc (diff)
Make the string 'New Record' localizable. (fdo#32209)feature/winshrink
This string was hard-coded in the code to be always in English. This change makes it localizable. Signed-off-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sc/source/ui/inc/datafdlg.hrc2
-rw-r--r--sc/source/ui/miscdlgs/datafdlg.cxx2
-rw-r--r--sc/source/ui/src/datafdlg.src4
3 files changed, 7 insertions, 1 deletions
diff --git a/sc/source/ui/inc/datafdlg.hrc b/sc/source/ui/inc/datafdlg.hrc
index eb6b3fe96..b32e0a9a2 100644
--- a/sc/source/ui/inc/datafdlg.hrc
+++ b/sc/source/ui/inc/datafdlg.hrc
@@ -38,3 +38,5 @@
#define FT_DATAFORM_FIXEDTEXT1 2001
#define ED_DATAFORM_EDIT1 2002
+
+#define STR_NEW_RECORD 2003
diff --git a/sc/source/ui/miscdlgs/datafdlg.cxx b/sc/source/ui/miscdlgs/datafdlg.cxx
index 50503e26f..3e859e967 100644
--- a/sc/source/ui/miscdlgs/datafdlg.cxx
+++ b/sc/source/ui/miscdlgs/datafdlg.cxx
@@ -286,7 +286,7 @@ void ScDataFormDlg::FillCtrls(SCROW /*nCurrentRow*/)
aFixedText.SetText(aBuf.makeStringAndClear());
}
else
- aFixedText.SetText(String::CreateFromAscii("New Record"));
+ aFixedText.SetText(String(ScResId(STR_NEW_RECORD)));
aSlider.SetThumbPos(aCurrentRow-nStartRow-1);
}
diff --git a/sc/source/ui/src/datafdlg.src b/sc/source/ui/src/datafdlg.src
index 2c07a704d..1cb3578f4 100644
--- a/sc/source/ui/src/datafdlg.src
+++ b/sc/source/ui/src/datafdlg.src
@@ -91,5 +91,9 @@ ModalDialog RID_SCDLG_DATAFORM
HScroll = FALSE ;
TabStop = FALSE ;
};
+ String STR_NEW_RECORD
+ {
+ Text [ en-US ] = "New Record" ;
+ };
};
//end