summaryrefslogtreecommitdiff
path: root/sc/source/ui/dbgui
diff options
context:
space:
mode:
authorAriel Constenla-Haile <arielch@apache.org>2012-07-23 01:05:37 +0000
committerAriel Constenla-Haile <arielch@apache.org>2012-07-23 01:05:37 +0000
commit30441cd652260941ade8f3e6898205ab2a1d0cdf (patch)
tree1cfae80a5aacca74dad04927d34fd75df0854092 /sc/source/ui/dbgui
parentc931d7f1910a40d70bc96f4bdd3a7de0acd012f4 (diff)
#i120341# - Make SCSTR_FIELDSEP less translation-error-prone
Notes
Notes: merged as: eec63d5e1d82c7809e14e46aa7cc9d9f71d2f2fa
Diffstat (limited to 'sc/source/ui/dbgui')
-rw-r--r--sc/source/ui/dbgui/scuiasciiopt.cxx1
-rw-r--r--sc/source/ui/dbgui/scuiimoptdlg.cxx6
2 files changed, 5 insertions, 2 deletions
diff --git a/sc/source/ui/dbgui/scuiasciiopt.cxx b/sc/source/ui/dbgui/scuiasciiopt.cxx
index c22b1d937fd6..ba5eae5afa25 100644
--- a/sc/source/ui/dbgui/scuiasciiopt.cxx
+++ b/sc/source/ui/dbgui/scuiasciiopt.cxx
@@ -245,7 +245,6 @@ ScImportAsciiDlg::ScImportAsciiDlg( Window* pParent,String aDatName,
aCharSetUser( ScResId( SCSTR_CHARSET_USER ) ),
aColumnUser ( ScResId( SCSTR_COLUMN_USER ) ),
- aFldSepList ( ScResId( SCSTR_FIELDSEP ) ),
aTextSepList( ScResId( SCSTR_TEXTSEP ) ),
mcTextSep ( ScAsciiOptions::cDefaultTextSep ),
maStrTextToColumns( ScResId( STR_TEXTTOCOLUMNS ) ),
diff --git a/sc/source/ui/dbgui/scuiimoptdlg.cxx b/sc/source/ui/dbgui/scuiimoptdlg.cxx
index f38e00fa9197..18c6b645034a 100644
--- a/sc/source/ui/dbgui/scuiimoptdlg.cxx
+++ b/sc/source/ui/dbgui/scuiimoptdlg.cxx
@@ -135,8 +135,12 @@ ScImportOptionsDlg::ScImportOptionsDlg(
aBtnCancel ( this, ScResId( BTN_CANCEL ) ),
aBtnHelp ( this, ScResId( BTN_HELP ) )
{
+ String sFieldSep( ScResId( SCSTR_FIELDSEP ) );
+ sFieldSep.SearchAndReplaceAscii( "%TAB", String(ScResId(SCSTR_FIELDSEP_TAB)) );
+ sFieldSep.SearchAndReplaceAscii( "%SPACE", String(ScResId(SCSTR_FIELDSEP_SPACE)) );
+
// im Ctor-Initializer nicht moeglich (MSC kann das nicht):
- pFieldSepTab = new ScDelimiterTable( String(ScResId(SCSTR_FIELDSEP)) );
+ pFieldSepTab = new ScDelimiterTable( sFieldSep );
pTextSepTab = new ScDelimiterTable( String(ScResId(SCSTR_TEXTSEP)) );
String aStr = pFieldSepTab->FirstDel();