Bug 498968

Summary: Showing diff in string where no diff is
Product: [Applications] lokalize Reporter: Freek de Kruijf <freekdekruijf>
Component: editorAssignee: Simon Depiets <sdepiets>
Status: REPORTED ---    
Severity: normal CC: aacid, fin-w, shafff
Priority: NOR    
Version First Reported In: 24.12.1   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Screencopy

Description Freek de Kruijf 2025-01-21 15:43:06 UTC
Created attachment 177567 [details]
Screencopy

SUMMARY
Alternative translations and TM show differences where no differences are present

STEPS TO REPRODUCE
1. Open in kf5 trunk nl/docmessages/kmymoney/kmymoney_details-database.po
2. Select item 101
3. Look at subwindow Alternative translations

OBSERVED RESULT
See screencopy

EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Albert Astals Cid 2025-01-21 22:09:38 UTC
But is is different?

One has a comma after views the other doesn't
Comment 2 Freek de Kruijf 2025-01-22 13:03:11 UTC
I see differences in spaces (some are green) and indeed a comma, but not in guimenuitem>. In fact only a comma is added?
Comment 3 Albert Astals Cid 2025-01-22 16:34:04 UTC
(In reply to Freek de Kruijf from comment #2)
> I see differences in spaces (some are green) and indeed a comma, but not in
> guimenuitem>. In fact only a comma is added?

Yes, there is a change there too.

<menuchoice><guimenu>Tools</guimenu><guimenuitem>Generate Database SQL</guimenuitem></menuchoice> menu item. This will present the following dialog:

to

<menuchoice> <guimenu>Tools</guimenu> <guimenuitem>Generate "
"Database SQL</guimenuitem> </menuchoice> menu item. This will present the "
"following dialog:

So there is more spaces and that makes it show the diff.

Anyhow you said no differences and there's differences, why are we discussing where the differences are?
Comment 4 Freek de Kruijf 2025-01-23 15:45:32 UTC
Showing the strings "guimenuitem>" and "menuchoice> " as diffs, while there are no diffs in these strings, distracts from where the real diffs are.
Comment 5 Finley Watson 2025-02-05 02:24:23 UTC
> #. Tag: para
> #: details-database.docbook:474
> #, no-c-format
> msgid ""
> "If this fails, it is possible to generate the basic SQL commands needed to "
> "create the various tables, views and indexes required by the application. "
> "Select the <menuchoice><guimenu>Tools</guimenu><guimenuitem>Generate "
> "Database SQL</guimenuitem></menuchoice> menu item. This will present the "
> "following dialog:"
> msgstr ""
> "Als dit mislukt is het mogelijk om de basis SQL-commando's nodig voor het "
> "aanmaken van de verschillende tabellen, views en indexen vereist door de "
> "toepassing. Selecteer het menu-item <menuchoice><guimenu>Hulpmiddelen</"
> "guimenu><guimenuitem>Database SQL genereren</guimenuitem></menuchoice>. Dit "
> "geeft de volgende dialoog:"

This is the current entry, correct? https://websvn.kde.org/branches/stable/l10n-kf5/nl/docmessages/kmymoney/kmymoney_details-database.po?revision=1597235&pathrev=1626280&view=markup

What do you have in the Alternative translations view? Can you copy and share the text it is comparing to the string above?