speedata / publisher

speedata Publisher - a professional database Publishing system
https://www.speedata.de/
GNU Affero General Public License v3.0
292 stars 36 forks source link

handle `/Lang` #440

Closed pr-apes closed 1 year ago

pr-apes commented 1 year ago

This pull request fixes #434.

I'm afraid I don't know how to read get the value from --mainlanguage option without creating the sp_mainlanguage variable.

pr-apes commented 1 year ago

This comes from a previous pull request.

IIRC you just need to put the /Lang field into the catalog with the field 'locale' of the lang object which you get with get_language(defaultlanguage) I think for a start it would be enough to have the first locale part.

No need to have an extra sp_mainlanguage or any other code in the commands.lua file (I might be wrong though).

Sorry, I don't know how to achieve that.

The pull request may be unnecessarily complex, but it works as described.

pgundlach commented 1 year ago

Included in 4.12.0 (now available)