Because the list of Langauges is so very very long, I think Doitsu's idea might be useful to people who use Sigil a lot with a specific set of language codes.
So I found a place in Language.cpp to easily restrict language codes used in Sigil by an environment variable.
The new environment variable is:
Code:
QString codes = Utility::GetEnvironmentVar("SIGIL_ONLY_USE_LANGCODES");
Its value is a valid list of iso 639 lanugage codes separated by commas "," with *no* extra spaces allowed.
Note: this is generally not a "feature" that we are going to publicize but perhaps you can convince BeckyEbook to add this env variable to her nice plugin.
For example, the way to limit to these language codes would be:
export SIGIL_ONLY_USE_LANGCODES=en,fr,de,es,it,ja,en-US,en-GB
I have pushed this to Sigil master.
Please give this a try if you build your own.
Quote:
Originally Posted by Doitsu
Remember h* selections
Allow advanced users to customize the book language dropdown list
Most book producers probably only use the usual EFIGS languages and their local language, but the language list is very long and contains several languages that are highly unlikely to be ever used in an epub. For example, Middle High German.
I realize that creating another settings dialog would be a lot of work, but you could have Sigil check for a lang_codes ini entry that advanced users would have to manually add.
For example:
Code:
lang_codes = en-US, fr-FR, it-IT, de-DE, es-ES
Sigil would then only display the languages defined via lang_codes, provided that all language codes are valid.
Alternatively, you could reorder the language list to prioritize languages the app is fully translated for.
Chinese (China) (zh-CN)
French (fr)
German (de)
Korean (ko)
Polish (pl)
Portuguese (Brazil) (pt-BR)
Russian (ru)
Serbian (sr)
Spanish (es)
Ukrainian (Ukraine) (uk-UA)
|