|
|
#1 |
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 577
Karma: 2268308
Join Date: Nov 2015
Device: none
|
De-hardcode the language names
Right now, Sigil has a hardcoded list of languages, which is somewhat childish. It would be much better to have it externalized in a data file, supporting all 4 components of a language tag, so the proper language support would be available. It would allow the end user to customize their working set of languages. Also, it would allow the reuse of translations instead of them polluting the main app domain.
|
|
|
|
|
|
#2 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,282
Karma: 7640672
Join Date: Nov 2009
Device: many
|
We are not yet accepting new feature requests but instead focusing on bug fixes and stability.
That said, the language codes are determined by the epub spec requiring BCP-47 language codes which are based on ISO 639 language codes focusing on all languages with two letter and if needed 3 letter codes and any area/country/subgroup specifier if needed. This is part of the original spec for epub2 and epub3. Made up codes are not legal according to the spec. If you have a specific dialect in mind that fits that spec that is not already included, I can add it to the list. But unless the region or subgroup is radically different, most commercial publishers recommend going broader to gain larger potential audiences. Plus you can already use an environment var to limit the set of language codes to a more manageable size. Check out our Sigil User Guide for more information. Last edited by KevinH; Yesterday at 07:59 PM. |
|
|
|
|
|
#3 |
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 577
Karma: 2268308
Join Date: Nov 2015
Device: none
|
Well, the current state, is (as I said) childish. All versions of EPUB use language tags conforming to BCP-47 or RFC4646, which define four-part tags, all combinations of which are meaningful. The random and meager selection of language/country combinations does not correspond to reality. The only reasonable way is to have it conforming to the spec and customizable by the end user, and a environment variable which subtracts (!) from the meager selection of inadequate choices is not a solution.
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| folder names corrupt when author/language in Hebrew? | sabri | Library Management | 6 | 08-12-2020 02:59 PM |
| Q:font-size -- hardcode or percent? | phossler | Sigil | 7 | 09-09-2013 01:00 PM |
| Newbie question - Hardcode values on RegEx on import | PeterSm | Library Management | 1 | 10-04-2011 11:55 AM |
| File names in other language | doremifaso | PocketBook | 9 | 06-18-2010 01:09 PM |
| How to file authors with language-dependent names? | Jellby | Workshop | 6 | 01-24-2010 06:21 PM |