Bug 146674 - Duplex dropdown list in the Generic Printer's Paper tab is not translatable
Summary: Duplex dropdown list in the Generic Printer's Paper tab is not translatable
Status: RESOLVED NOTOURBUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
7.2.4.1 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Not-Localizable
  Show dependency treegraph
 
Reported: 2022-01-10 04:07 UTC by Kevin Suo
Modified: 2022-12-05 01:57 UTC (History)
4 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 Kevin Suo 2022-01-10 04:07:55 UTC
Steps to Reproduce:
1. Switch to a non-English UI.
2. Go to File > Printer Settings > Properties
3. Click the Duplex dropdown in the Paper tab.

Current Result:
Simplex, Off, Short Edge, Long Edge. They are not translatable on the UI.

Expected:
These strings in the dropdown should be translatable on the UI.

Version: 7.2.4.1 / LibreOffice Community
Build ID: 27d75539669ac387bb498e35313b970b7fe9c4f9
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: zh-CN (zh_CN.UTF-8); UI: zh-CN
Calc: threaded
Comment 1 Jean-Baptiste Faure 2022-01-21 21:27:40 UTC
Already reproducible in Version : 6.4.7.2
Build ID : 1:6.4.7-0ubuntu0.20.04.2
Threads CPU : 8; OS : Linux 5.13; UI Render : par défaut; VCL: gtk3; 
Locale : fr-FR (fr_FR.UTF-8); Langue IHM : fr-FR
Calc: threaded

Not sure if these strings are provided by LibreOffice or by the printer driver.
There is the same problem with the paper tray dropdown list.

Best regards. JBF
Comment 2 Buovjaga 2022-12-02 13:08:43 UTC
(In reply to Jean-Baptiste Faure from comment #1)
> Not sure if these strings are provided by LibreOffice or by the printer
> driver.
> There is the same problem with the paper tray dropdown list.

Indeed, grepping through the codebase I find no UI strings as such.
Comment 3 Aron Budea 2022-12-03 12:07:29 UTC
As I can see, this is the function where the printer info is gathered from CUPS:
https://opengrok.libreoffice.org/xref/core/vcl/unx/generic/printer/printerinfomanager.cxx?r=85c2ed8d#176

If you have a lozalized distro setup, you could check printer settings there, in an Ubuntu 22.04 I do see Settings -> Printers; <cog> -> Printing Options; Page Setup -> Two-sided (this is more or less the same as Duplex in LO) and Paper Source (Paper tray in LO).
Comment 4 Aron Budea 2022-12-05 01:57:25 UTC
I managed to check this in a localized Ubuntu setup with stock LO, and while I didn't see the Duplex option for the random printer I installed there, I found paper source, and it was in English even in the OS.

Based on that experience, closing as NOTOURBUG, but if someone finds contradicting evidence, feel free to reopen after adding further details.