Opened 6 weeks ago

Last modified 2 weeks ago

#30 new defect

CUPS wizard doesn't parse localhost CUPS printer list

Reported by: ydario Owned by:
Priority: major Milestone:
Component: wizzard Version:
Severity: high Keywords:


When selecting 'Existing CUPS printer' in the 'Network printer' dialog, I see code invokes

lpstat -h localhost -p -c

to get printer list: this list is showed using current NLS settings, so 'printer' word is not present:

E:\>lpstat -h localhost -p -c la stampante Cups-PDF è inattiva. è stata abilitata da mer 12 dic 17.08.53 2018

Setting 'LANG=en' before starting cupswiz from command line works.

Change History (1)

comment:1 Changed 2 weeks ago by lewisr

These localized strings are stored in %UNIXROOT%\usr\share\locale\XX\cups_XX.po. The format of a .po file is fairly straightforward, so selecting the right string to match from that shouldn't be too difficult. If the .po file for the given LANG is missing, CUPS and friends fall back to EN, anyway.

Note: See TracTickets for help on using tickets.