Bug 66320 - Fix RTF Redundant Acronym Syndrome syndrome
Summary: Fix RTF Redundant Acronym Syndrome syndrome
Status: RESOLVED DUPLICATE of bug 66274
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: Other All
: low trivial
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: difficultyBeginner, easyHack, skillCpp, topicUI
Depends on:
Blocks:
 
Reported: 2013-06-28 13:30 UTC by Björn Michaelsen
Modified: 2015-12-16 00:04 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Björn Michaelsen 2013-06-28 13:30:26 UTC
This:

 https://twitter.com/dchest/status/350284236403662848

has a point -- the "RTF is a lossy format"-dialog shouldnt say "Rich Text Format Format" as one format is enough here (or it should say "RTF Format").
Comment 1 Julien Nabet 2013-06-29 08:21:26 UTC
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?
Comment 2 Julien Nabet 2013-06-30 21:03:14 UTC

*** This bug has been marked as a duplicate of bug 66274 ***
Comment 3 Robinson Tryon (qubit) 2015-12-16 00:04:54 UTC
Migrating Whiteboard tags to Keywords: (EasyHack SkillCpp DifficultyBeginner TopicUI)
[NinjaEdit]