Apache OpenOffice (AOO) Bugzilla – Issue 52818
translated string containing space gets truncated after compilation
Last modified: 2017-05-20 11:13:32 UTC
If string "Untitled" is translated to something containing space (in my case it was "Без назвы"), then after compilation second word gets truncated, in combolist (tools-customize-macros-save to file) only first word shows. The identity of string is: sfx2 source\appl\sfx.src 0 string STR_NONAME 0
This looks to me like an How-To for developper, not a proper OOo issue (other languages already include spaces exactly for this string: "Sans nom", "Sin nome"...). Please ask the dev mailing list. Thanx!
closed
reopening. This is valid issue.
confirmed. In cs we have: pavel@paveljanik:~> bzcat .ooo/build/Files/2.0/GSI_cs.sdf.bz2 |grep STR_NONAME|grep sfx2 sfx2 source\appl\sfx.src 0 string STR_NONAME 0en-US Untitled 20050802 18:44:04 sfx2 source\appl\sfx.src 0 string STR_NONAME 0cs Bez názvu But in the UI dialog Tools - Configure - Events, I see only "Bez" in the listbox. See attached screenshot.
Created attachment 28529 [details] Sample screenshot from cs version
The string was merged correctly into localize.sdf file as" source/appl/localize.sdf:sfx2 source\appl\sfx.src 0 string STR_NONAME 0 cs Bez názvu 2002-02-02 02:02:02
Looks like the problem is in the function void SvxScriptSelectorDialog::GetDocTitle( const Reference< frame::XModel >& xModel, OUString& rTitle ) in svx/source/dialog/selector.cxx. This function is eventdlg.cxx as: OUString aTitle; SvxScriptSelectorDialog::GetDocTitle( xModel, aTitle ); nPos = aSaveInListBox.InsertEntry( aTitle ); to add the title of the document. Because the new document is not yet saved, this part of GetDocTitle is used: if ( xModel->getURL().getLength() == 0 ) { // process "UntitledX - YYYYYYYY" // to get UntitledX sal_Int32 pos = 0; aResult = tmp.getToken(0, ' ', pos); } Only the first word of the document name is used. Reassigning to tbe because he was probably the last one who touched this code.
set target OOo Later
TBE->AB: As discussed to you.
STARTED
Reset assigne to the default "issues@openoffice.apache.org".