diff options
author | Ariel Constenla-Haile <arielch@apache.org> | 2012-07-23 01:05:37 +0000 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2013-03-26 21:55:20 +0100 |
commit | eec63d5e1d82c7809e14e46aa7cc9d9f71d2f2fa (patch) | |
tree | 95c9e2f4cdbe90d3ee99f472500fcfa76a8c4f97 /sc/source | |
parent | 3b42b4442e7749fe93807ab9fa8e3f5f29ba0566 (diff) |
i#120341# - Make SCSTR_FIELDSEP less translation-error-prone
(cherry picked from commit 30441cd652260941ade8f3e6898205ab2a1d0cdf)
Conflicts:
sc/inc/sc.hrc
Change-Id: Ia306ca5b791504590657fcb8b6e404a75f8a4c79
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/ui/dbgui/scuiimoptdlg.cxx | 6 | ||||
-rw-r--r-- | sc/source/ui/src/scstring.src | 12 |
2 files changed, 16 insertions, 2 deletions
diff --git a/sc/source/ui/dbgui/scuiimoptdlg.cxx b/sc/source/ui/dbgui/scuiimoptdlg.cxx index 0b63c33cd7f9..1c231bf1e340 100644 --- a/sc/source/ui/dbgui/scuiimoptdlg.cxx +++ b/sc/source/ui/dbgui/scuiimoptdlg.cxx @@ -133,8 +133,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(); diff --git a/sc/source/ui/src/scstring.src b/sc/source/ui/src/scstring.src index 7154ec5fab2c..23ee913d1500 100644 --- a/sc/source/ui/src/scstring.src +++ b/sc/source/ui/src/scstring.src @@ -512,7 +512,17 @@ String SCSTR_COLUMN_USER String SCSTR_FIELDSEP { - Text [ en-US ] = ",\t44\t;\t59\t:\t58\t{Tab}\t9\t{space}\t32 " ; + Text = ",\t44\t;\t59\t:\t58\t{%TAB}\t9\t{%SPACE}\t32 " ; +}; + +String SCSTR_FIELDSEP_TAB +{ + Text [ en-US ] = "Tab" ; +}; + +String SCSTR_FIELDSEP_SPACE +{ + Text [ en-US ] = "space" ; }; String SCSTR_TEXTSEP |