View Single Post
Old 07-09-2022, 03:05 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,449
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Wiggo View Post
It's not a problem for me I only noticed that switching calibre's language causes problems.

My native language is german and switching to english doesn't translate ja/yes, nein/no in the template.
No it doesn't, and it never will. Working out what requires auto-translation in a template is a nightmare.

In this case you can use the check_yes_no() function. It doesn't depend on language.
Code:
{:'if check_yes_no('#read', 1, 1, 0) then 'Nicht Gelesen' else 'Gelesen' fi'}
You could also use a column "Text but with a fixed set of permitted values" with "Show Checkmarks" checked. In this case calibre knows to look at translations to choose the checkmark icon but the values remain unchanged for the template.
chaley is offline   Reply With Quote