collectiveaccess / providence

Cataloguing and data/media management application
GNU General Public License v3.0
293 stars 167 forks source link

Translation of "form elements for print summary options form" #1620

Open thCAgh opened 1 week ago

thCAgh commented 1 week ago

Issue description: While printing a PDF from summary of an object, after clicking in the upper right corner in the page icon with the adobe pdf (Download summary as PDF) i get the download options windows. After selecting PDF under "Format" combo i get the options extracted from the @params in printTemplates/summary/ca_objects_summary.php.

What i have tried: Obviously without success..

Related support topic: Opened this support topic

As suggested by Seth in the support topic, im opening this issue for the provision of the translation of those terms.

collectiveaccess commented 2 days ago

Just pushed support for localization of print template option labels and list text. For labels the syntax looks like this:

* @param includeLogo {"type": "CHECKBOX", "label": {"en": "Include logo?", "de": "Logo Entschließen?" }, "value": "1", "default": true}

You can use full locale codes or just the language part. Ex. de_DE for real German, de_AT for the Austrian kind. Or just "de" for German in general.

For list options the syntax is:

* @param quantity {"type": "LIST", "label": { "en": "Quantity", "de": "Quantität"}, "options": { "en": {"One": 1, "Two": 2, "Three: 3 }, "de": {"Eins": 1, "Zwei": 2, "Drei": 3 }}}

The locale rules are the same here.