Re: [Printing-architecture] PAPPL 1.2.0

Michael Sweet <[email protected]>
Newsgroups dev.linux.lists.printing-architecture
Message-ID <[email protected]>
Till,

> On May 15, 2022, at 3:01 PM, Till Kamppeter <[email protected]> wrote:
> 
> On 15/05/2022 17:42, Michael Sweet wrote:
>> Till,
>> You will need to maintain a single strings file for each language that is localized, among all of the added printers.  Then make sure to remove any existing resource file before re-adding it, otherwise the resource will not be added:
>>     // Update LOCALE.strings file
>>     papplSystemRemoveResource(system, "/LOCALE.strings");
>>     papplSystemAddStringsData/File(system, "/LOCALE.strings", "LOCALE", ...);
> 
> So it needs to be a single file for all printers set up? Or can it be one per printer and per language (4 printers, each printer's PPD has 3 languages -> 12 files)?

A single file for all printers.

Normally a printer application has a closed set of drivers, options, and choices, but in your case the PPD files work against that assumption.  I don't know that I want to change PAPPL just to accommodate ps-printer-app when there is an easy enough workaround.

> And the localization for PAPPL's UI has to be in the same file as the localization for the vendor options?

Yes, though most of that (if not all) is options/attributes and values anyways.

Anything provided by PAPPL is localized for you, you just provide strings for anything specific/unique to your application.  Right now PAPPL has built-in localizations for English, French, German, Italian, Japanese, and Spanish.  I want to add more, obviously, but that will depend on contributions...

________________________
Michael Sweet
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEkIbDzcZsP1Y8+PQFvmfHXsgfMkQFAmKBVbAACgkQvmfHXsgf
MkSqTBAAuwotyPrhTznhZdKLkdPgfWtwSaAl/0yUb6vvIRvYwMcPs9g4pLMXRxID
A3gbX9Rvk1j2M82IJgsVknEdjpb5a0Oax0/2jqbHzcd3E+7OnARkXAnurfFuhMRu
huu7Y35bnvVw/ZpmKU89wAHzU9NoleA8Gu8E1rRMdyustMMIL7d/O1whsw27DhoD
ATYK5jUBtzDYfkoTpvdzEf4ojJwmEf31VRaKrhc3SbSembC70wAALfnYI4vJeaJA
5s1DUXurdZK+rqpU0QGCJlua9OBedZP5G2upjkOPQdqETE+kdw2FFM/2V+nBeIOo
ZbQUeWfBE8qYQaXhwazr7QEx5sC5aaYVB12YAZqz/zmClFUKUjBkIVNvk7F8w295
tRt0Ay7D4+l+QOAHEu+Y0Mw/8WvuoEPhkD/AiSL2hVtevmC2TaMOU3OBh9fF/K0L
3jmRKbB5j/pkqEGG63d4b8zVLik4x71nhdeoT0DFx4A2mzAkB0gTtc0VqW4EAibo
860j5gwhGRFUf+FJmERrgZdSY4ULKG4KGc8NOAzAv48UDD+XCko1+t1AJ7O1yts1
o12jqP35p9H6Y6tyjxTPftbnypxq4A7cCs6VizD94xHIHyRre19xke0y//OjvSME
MNLoAqoRjSZeclkrMNBoS0q4C2XH5PEWgVB/TN90WXm8l26jKdk=
=ICh1
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.