Bugzilla – Attachment 40892 Details for
Bug 32209
Untranslated string "New Record" in Data Form dialog
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to make the string localizable
0001-Make-the-string-New-Record-localizable.-fdo-32209.patch (text/plain), 1.72 KB, created by
Kohei Yoshida
on 2010-12-07 20:08:58 UTC
(
hide
)
Description:
patch to make the string localizable
Filename:
MIME Type:
Creator:
Kohei Yoshida
Created:
2010-12-07 20:08:58 UTC
Size:
1.72 KB
patch
obsolete
>From 1fa92708d5aa67b3df3b962e9fc45e48bd9c2c3e Mon Sep 17 00:00:00 2001 >From: Kohei Yoshida <kyoshida@novell.com> >Date: Tue, 7 Dec 2010 23:02:02 -0500 >Subject: [PATCH] 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. >--- > 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 deletions(-) > >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 >-- >1.7.3.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 32209
: 40892