View Single Post
Old 10-16-2025, 04:11 PM   #138
BeckyEbook
Guru
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 899
Karma: 3501166
Join Date: Jan 2017
Location: Poland
Device: Various
@KevinH: I would like to return to the issue SIGIL_ONLY_USE_LANGCODES described in post #120.
The current implementation has a side effect, which is that the UI language list is missing information, because when we limit the list of languages, it is done globally – for the entire Sigil.

Screenshot:
Click image for larger version

Name:	sigil-langs-ui-before.png
Views:	21
Size:	17.8 KB
ID:	218666

So I suggest partially incorporating Doitsu's latest suggestion from post #6 and meeting halfway: let's add at least those languages that have translations for the Sigil interface to the list of languages declared in the environment variable.

I have a working solution that you can certainly optimize.
The result is an expanded list of languages, which of course also appears in the metadata editing window:
Click image for larger version

Name:	sigil-langs-ui-after.png
Views:	20
Size:	20.6 KB
ID:	218667
Click image for larger version

Name:	sigil-langs-metadata-editor-after.png
Views:	21
Size:	19.5 KB
ID:	218668

I already have an updated EnvVarEditor plugin that supports the new environment variable, but I want to test it a little more before the official release. The language validation function will not allow duplicates or incorrectly written language codes. IMVHO – it works great and really makes my life easier.
Click image for larger version

Name:	sigil-environment-variables-019.png
Views:	18
Size:	26.6 KB
ID:	218669
Attached Files
File Type: txt lang1.txt (1.6 KB, 8 views)
File Type: txt lang2.txt (510 Bytes, 8 views)
BeckyEbook is offline   Reply With Quote