[Libreoffice-commits] .: Branch 'libreoffice-3-3' - sc/source
Kohei Yoshida
kohei at kemper.freedesktop.org
Wed Dec 8 06:11:31 PST 2010
sc/source/ui/inc/datafdlg.hrc | 2 ++
sc/source/ui/miscdlgs/datafdlg.cxx | 2 +-
sc/source/ui/src/datafdlg.src | 4 ++++
3 files changed, 7 insertions(+), 1 deletion(-)
New commits:
commit a0bdbcf6481ab9176a7c763284991887d00161ff
Author: Kohei Yoshida <kyoshida at novell.com>
Date: Tue Dec 7 23:02:02 2010 -0500
Make the string 'New Record' localizable. (fdo#32209)
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 at redhat.com>
diff --git a/sc/source/ui/inc/datafdlg.hrc b/sc/source/ui/inc/datafdlg.hrc
index eb6b3fe..b32e0a9 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 50503e2..3e859e9 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 2c07a70..1cb3578 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
More information about the Libreoffice-commits
mailing list