Apache OpenOffice (AOO) Bugzilla – Issue 84546
Modification of List Styles shows a wrong string the undo menu
Last modified: 2013-08-07 14:43:03 UTC
The fix of issue 82689 lets a wrong string in the undo menu appear. - open the "Styles and Formatting" window (if not already open) - switch to "List Styles" - right-click "Numbering 1" "Modify..." - change anything here, for example apply a bullet -> The undo menu shows "Insert Numbering". It should be "Change numbering style: <style_name>"
Created attachment 51601 [details] patchfile
liuy->ama: Please have a look at the patch, I don't know how to modify the localize.sdf file, so I have not added other languages source of the STR_CHGNUM.
ama->liuyu: You do not need to change the localize.sdf. It sufficient to insert English text into resources. The localization process will be started automatically by inserting your text into a database which will be translated later on. But two other remarks: You can simply replace UNDO_REPLACE_DUMMY_6 with your new STR_CHGNUM and leave the other dummies (UNDO_REPLACE_DUMMY_7 .. _9 ) unchanged. You can insert a placeholder ($1) into the string to be able to display the name of the style in the undo string.
Created attachment 51620 [details] patch file
liuy->ama: Please have a look at the new patch file.
ama->liuyu: There are some minor things like use of "22" instead of UNDO_INSNUM and a virtual method declared as inline. But nevertheless I will integrate your patch with a few changes in one of our next CWS. Thank you for your patch!
Fixed in CWS sw30bf02 undo.hrc undo.src undobj.hxx swundo.hxx unnum.cxx docnum.cxx
I've reworked the fix a little bit to avoid resource changes. Undo display: "Change style: <NameOfStyle>" Fixed in CWS sw30bf02.
Ready for QA
Verified in cws sw30bf02
Verified in DEV300_m40 .deb version - closing - Sophie