Bug 164749 - Hard-coded string in the "Handle Duplicate Records" dialog
Summary: Hard-coded string in the "Handle Duplicate Records" dialog
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Localization (show other bugs)
Version:
(earliest affected)
25.2.0.1 rc
Hardware: x86-64 (AMD64) All
: medium trivial
Assignee: Not Assigned
URL:
Whiteboard: target:25.8.0 target:25.2.1
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-17 20:22 UTC by Kityn
Modified: 2025-02-07 12:08 UTC (History)
3 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 Kityn 2025-01-17 20:22:49 UTC
Description:
Text string "Compare by:" in the "Handle Duplicate Records" dialog is missing from translation files so LO always displays it in English.

Steps to Reproduce:
1. Go to LO's Weblate
2. Search for "Compare by:"

Actual Results:
The string is missing.

Expected Results:
The string should be available for translation.


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Version: 25.2.0.2 (X86_64) / LibreOffice Community
Build ID: 62af784cc06624122f17ee71c7cf13d906cbaed0
CPU threads: 4; OS: Windows 10 X86_64 (10.0 build 19045); UI render: Skia/Vulkan; VCL: win
Locale: pl-PL (pl_PL); UI: pl-PL
Calc: CL threaded
Comment 1 Julien Nabet 2025-01-18 20:41:55 UTC
The string is indicated as not translatable here:
https://opengrok.libreoffice.org/xref/core/sc/uiconfig/scalc/ui/duplicaterecordsdlg.ui?r=81a6c8704f19a08acb6c56cc39d5f117ee38df75#305

Sahil: thought you might have some thoughts here.
Comment 2 Sahil Gautam (allotropia) 2025-01-18 20:57:57 UTC
(In reply to Julien Nabet from comment #1)
> The string is indicated as not translatable here:
> https://opengrok.libreoffice.org/xref/core/sc/uiconfig/scalc/ui/
> duplicaterecordsdlg.ui?r=81a6c8704f19a08acb6c56cc39d5f117ee38df75#305
> 
> Sahil: thought you might have some thoughts here.

that's a mistake on my side, it should be translatable.
Comment 3 Sahil Gautam (allotropia) 2025-01-18 21:03:21 UTC
patch: https://gerrit.libreoffice.org/c/core/+/180470
Comment 4 Commit Notification 2025-01-19 10:25:04 UTC
Sahil Gautam committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/e46f1c492a3ef9727f2d671ae68a646f9b04a639

tdf#164749 make "Compare by: " label in Duplicates dialog translatable

It will be available in 25.8.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 5 Julien Nabet 2025-01-19 10:28:31 UTC
Thank you Sahil for the quick feedback.

Let's put this one to RESOLVED/FIXED since it can't be cherry-picked for 25.2 anyway (see https://wiki.documentfoundation.org/ReleasePlan/25.2).

Kityn: it'll be ok on the next major release 25.8.0 (so in August).
Comment 6 Kityn 2025-01-19 14:26:01 UTC
(In reply to Julien Nabet from comment #5)
> Thank you Sahil for the quick feedback.
> 
> Let's put this one to RESOLVED/FIXED since it can't be cherry-picked for
> 25.2 anyway (see https://wiki.documentfoundation.org/ReleasePlan/25.2).
> 
> Kityn: it'll be ok on the next major release 25.8.0 (so in August).

Thanks!
Comment 7 Gabor Kelemen (allotropia) 2025-01-24 13:56:53 UTC
(In reply to Julien Nabet from comment #5)
> Thank you Sahil for the quick feedback.
> 
> Let's put this one to RESOLVED/FIXED since it can't be cherry-picked for
> 25.2 anyway (see https://wiki.documentfoundation.org/ReleasePlan/25.2).

Yes it can. The string was pre-existing so only marking it as translatable for point releases is fine.

And while we are at it, let's do this one as well:

sc/uiconfig/scalc/ui/duplicaterecordsdlg.ui:                <property name="label" translatable="no" context="duplicaterecordsdialog|includesheaders">Data contains row/col headers</property>

-> https://gerrit.libreoffice.org/c/core/+/180707
Comment 8 Sahil Gautam (allotropia) 2025-01-24 14:08:13 UTC
(In reply to Gabor Kelemen (allotropia) from comment #7)
> (In reply to Julien Nabet from comment #5)
> > Thank you Sahil for the quick feedback.
> > 
> > Let's put this one to RESOLVED/FIXED since it can't be cherry-picked for
> > 25.2 anyway (see https://wiki.documentfoundation.org/ReleasePlan/25.2).
> 
> Yes it can. The string was pre-existing so only marking it as translatable
> for point releases is fine.
> 
> And while we are at it, let's do this one as well:
> 
> sc/uiconfig/scalc/ui/duplicaterecordsdlg.ui:                <property
> name="label" translatable="no"
> context="duplicaterecordsdialog|includesheaders">Data contains row/col
> headers</property>
> 
> -> https://gerrit.libreoffice.org/c/core/+/180707

strings.hrc
```
#define STR_DUPLICATERECORDS_DATACONATINSROWHEADERS    NC_("STR_DUPLICATERECORDS_DATACONATINSROWHEADERS", "Data contains row headers")
#define STR_DUPLICATERECORDS_DATACONATINSCOLUMNHEADERS NC_("STR_DUPLICATERECORDS_DATACONATINSCOLUMNHEADERS", "Data contains column headers")
```
includeheaders is dynamically changed, and is already localized.
Comment 9 Julien Nabet 2025-01-24 14:53:53 UTC
(In reply to Gabor Kelemen (allotropia) from comment #7)
> ...
> Yes it can. The string was pre-existing so only marking it as translatable
> for point releases is fine.

I didn't know this specific case, great! :-)
Comment 10 Gabor Kelemen (allotropia) 2025-01-24 21:07:10 UTC
(In reply to Sahil Gautam (Allotropia) from comment #8)
> strings.hrc
> ```
> #define STR_DUPLICATERECORDS_DATACONATINSROWHEADERS   
> NC_("STR_DUPLICATERECORDS_DATACONATINSROWHEADERS", "Data contains row
> headers")
> #define STR_DUPLICATERECORDS_DATACONATINSCOLUMNHEADERS
> NC_("STR_DUPLICATERECORDS_DATACONATINSCOLUMNHEADERS", "Data contains column
> headers")
> ```
> includeheaders is dynamically changed, and is already localized.

Oh great, thanks for the info :). Did not look into the code.

Unfortunately there is no practical way to mark such strings in ui files as intentionally not marked for translation - Glade removes the translatable="no" flag, so something more future-proof needs to be invented.
Comment 11 Commit Notification 2025-02-07 12:08:00 UTC
Sahil Gautam committed a patch related to this issue.
It has been pushed to "libreoffice-25-2":

https://git.libreoffice.org/core/commit/6b67e477cffdffc3689a05d91392d4ce12ad9b9a

tdf#164749 make "Compare by: " label in Duplicates dialog translatable

It will be available in 25.2.1.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.