Bug 360897 - When burning a DVD+RW, which should be overwritten, then "Ersetzen" is displayed
Summary: When burning a DVD+RW, which should be overwritten, then "Ersetzen" is displayed
Status: RESOLVED FIXED
Alias: None
Product: k3b
Classification: Applications
Component: Burning/Hardware (show other bugs)
Version: 2.0.3
Platform: openSUSE Linux
: NOR minor
Target Milestone: ---
Assignee: k3b developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-23 11:51 UTC by Armin Mohring
Modified: 2018-05-10 11:07 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
part of screenshot (17.98 KB, image/png)
2016-03-25 12:22 UTC, Armin Mohring
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Armin Mohring 2016-03-23 11:51:42 UTC
When I want to burn a DVD+RW, which needs to be overwritten, then "ersetzen" is displayed.
It should be "Überschreiben".


Reproducible: Always

Steps to Reproduce:
1. Start K3B
2. Use DVD+RW, which contains data
3. Begin data project
4. Start burning
5. It is displayed "Ersetzen" and should be "Überschreiben"

Actual Results:  
It is displayed "Ersetzen" and should be "Überschreiben"

Expected Results:  
It is should be displayed "Überschreiben"
Comment 1 Armin Mohring 2016-03-23 11:52:22 UTC
No multi session DVD+RW.
Comment 2 Burkhard Lück 2016-03-25 11:26:01 UTC
I can't find a translation "Ersetzen" in the k3b translation catalogs in the context of burning DVD+RW.

Please provide a screenshot of the dialog and your distribution
Comment 3 Armin Mohring 2016-03-25 12:22:53 UTC
Created attachment 98071 [details]
part of screenshot
Comment 4 Burkhard Lück 2016-03-25 14:00:38 UTC
Thanks for the screenshot, got it now. 
But this seems to be not just a simple translation error:

In k3b the translation is in k3b/src/k3bemptydiscwaiter.cpp:
There are 3 dialogs KMessageBox::warningContinueCancel calls with argument KStandardGuiItem::overwrite()

The catalog kdelibs4 has the correct translation:
kdelibs4.po-7130-#: kdeui/util/kstandardguiitem.cpp:306
kdelibs4.po:7131:msgid "&Overwrite"
kdelibs4.po-7132-msgstr "Ü&berschreiben"

But the same string is in the catalog kio4 as well:
kio4.po-5907-#: kio/renamedialog.cpp:153
kio4.po:5908:msgid "&Overwrite"
kio4.po-5909-msgstr "&Ersetzen"

Both msgids have no context

xgettext has the first-come-first-serve rule and the catalog kio4 is loaded before the catalog kdelibs4, therefore the translation  "&Ersetzen" is used in k3b
klocale_kde.cpp:318:        m_catalogNames.append(KCatalogName(QString::fromLatin1("kio4")));
klocale_kde.cpp:319:        m_catalogNames.append(KCatalogName(QString::fromLatin1("kdelibs4")));

Possible solutions:

1) Change german translation in kio4 for the renamedialog to "Überschreiben", but that has probably side effects, therefore cc'ing the german translations list to discuss the change on list

2) Add context to one or both messages to allow different translations of Overwrite in different contexts 

No 2) is my preferred solution, because some languages need to distinguish the translation of "Overwrite"
Comment 5 Burkhard Lück 2016-03-25 17:50:56 UTC
The german team discussed this issue in 2011 and changed this translation on purpose, see 
http://lists.kde.org/?t=132261355300002&r=1&w=2

So the solution no 1) is no option any more
Comment 6 Burkhard Lück 2016-04-05 19:56:14 UTC
kde-i18n-de@kde.org ping?
Comment 7 Frederik Schwarzer 2016-04-06 00:10:22 UTC
I am not quite sure what to add to the discussion at this point. The 2011 one seems still legit but the issue discussed back then is a different one than in this report. So translation context seems like the only way to solve this.