View Single Post
Old 02-06-2023, 04:29 PM   #2
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,465
Karma: 8025600
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by quinta@ebf.cz View Post
Seems template expression {languages} returns (ISO 639.2) 3-characters language code (actually "terminology" variant).
fra for French, deu for German, ces for Czech, etc.

Is there a way how to get (ISO 639.1) 2-characters code?
fr, de, cs, ...
No, there isn't, in the template languge. It might be possible in a python template. I would need to check the calibre API, which I can't do at the moment.
chaley is offline   Reply With Quote