https://bugs.freedesktop.org/show_bug.cgi?id=66320

Julien Nabet <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from Julien Nabet <[email protected]> ---
Bjoern:
I see 3 possibilities:
1) replace "Rich Text Format" by "Rich Text"
diff --git a/filter/source/config/fragments/filters/Rich_Text_Format.xcu
b/filter/source/config/fragments/filters/Rich_Text_Format.xcu
index 4bb6a82..602ca42 100644
--- a/filter/source/config/fragments/filters/Rich_Text_Format.xcu
+++ b/filter/source/config/fragments/filters/Rich_Text_Format.xcu
@@ -21,7 +21,7 @@
         <prop
oor:name="FilterService"><value>com.sun.star.comp.Writer.RtfFilter</value></prop>
         <prop oor:name="UserData"><value>RTF</value></prop>
         <prop oor:name="UIName">
-            <value xml:lang="x-default">Rich Text Format</value>
+            <value xml:lang="x-default">Rich Text</value>
         </prop>
         <prop oor:name="FileFormatVersion"><value>0</value></prop>
         <prop oor:name="Type"><value>writer_Rich_Text_Format</value></prop>

fixes the problem but before this, when you select the format, you can read
"Rich Text (.rtf)"

2) we could remove "Format" from this line
     53         Text [ en-US ] = "~Use %FORMATNAME Format";
in sfx2/source/dialog/alienwarn.src
but we lose "Format" for every format file (except RTF) and I suppose it
doesn't correspond to what we want

3) we could remove Format when it appears twice.
sfx2/source/dialog/alienwarn.cxx

     56     // replace formatname (button)
     57     sInfoText = m_aKeepCurrentBtn.GetText();
     58     sInfoText = sInfoText.replaceAll( "%FORMATNAME", _rFormatName );
     59     m_aKeepCurrentBtn.SetText( sInfoText );
add this line after line 58
sInfoText = sInfoText.replaceAll( "Format Format", "Format");
A bit ugly hack but I don't have a better idea

Do you think about something better?

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to