[Libreoffice-bugs] [Bug 141954] New: Some Default Character Styles not translated in Customize Toobar dialog

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Apr 28 23:42:59 UTC 2021


https://bugs.documentfoundation.org/show_bug.cgi?id=141954

            Bug ID: 141954
           Summary: Some Default Character Styles not translated in
                    Customize Toobar dialog
           Product: LibreOffice
           Version: 7.2.0.0.alpha0+ Master
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: olivier.hallot at libreoffice.org

Step to reproduce

1) on a non English user interface, have a text document open.
2) open Tools - Customize - Toolbar
3) Select Formatting (styles) toolbar on the right
4) Notice some English names in styles

Some character style name hard coded in toolbar and not localizable. File to
touch seems to be 
sw/uiconfig/swriter/toolbar/textstylebar.xml 
and 
sw/uiconfig/sglobal/toolbar/textstylebar.xml

The untranslatable strings seems to have toolbar:text= attribute non empty. The
attribute value is the name seen in the Customize dialog right pane.

grep 'toolbar:text=' sw/uiconfig/swriter/toolbar/textstylebar.xml

<toolbar:toolbaritem xlink:href=".uno:DefaultParaStyle"
toolbar:text="Default"/>
 <toolbar:toolbaritem xlink:href=".uno:Heading1ParaStyle" toolbar:text="H1"/>
 <toolbar:toolbaritem xlink:href=".uno:Heading2ParaStyle" toolbar:text="H2"/>
 <toolbar:toolbaritem xlink:href=".uno:Heading3ParaStyle" toolbar:text="H3"/>
 <toolbar:toolbaritem xlink:href=".uno:Heading4ParaStyle" toolbar:text="H4"
toolbar:visible="false"/>
 <toolbar:toolbaritem xlink:href=".uno:Heading5ParaStyle" toolbar:text="H5"
toolbar:visible="false"/>
 <toolbar:toolbaritem xlink:href=".uno:Heading6ParaStyle" toolbar:text="H6"
toolbar:visible="false"/>
 <toolbar:toolbaritem xlink:href=".uno:TextBodyParaStyle" toolbar:text="Text"/>
 <toolbar:toolbaritem xlink:href=".uno:QuoteParaStyle" toolbar:text="Quote"/>
 <toolbar:toolbaritem xlink:href=".uno:PreformattedParaStyle"
toolbar:text="Pre"/>
 <toolbar:toolbaritem xlink:href=".uno:StyleApply" toolbar:text="Character
Styles" toolbar:visible="false"/>
 <toolbar:toolbaritem xlink:href=".uno:SourceCharStyle" toolbar:text="Code"/>
 <toolbar:toolbaritem xlink:href=".uno:StyleApply?Style:string=User
Entry&FamilyName:string=CharacterStyles" toolbar:text="User"
toolbar:visible="false"/>
 <toolbar:toolbaritem xlink:href=".uno:StyleApply" toolbar:text="List Styles"
toolbar:visible="false"/>

Which seems to correspond to the untranslatable character style in the
customize dialog.

Possibly, removing the attribute "toolbar:text" above, and the l10n cycle can
pick the right translation.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210428/87cfa176/attachment.htm>


More information about the Libreoffice-bugs mailing list