mirror of
https://github.com/parchlinux/calamares.git
synced 2025-07-01 19:35:36 -04:00
[keyboard] Re-jig translation extraction
- Use classes to prompt lupdate to extract with a better context (e.g. the class name, rather than plain "QObject") so that the translation-lookup can use the named context. - Add hard-coded "default" variant - Add totally bogus Tajik translations, for testing purposes
This commit is contained in:
parent
1a5fa36fb6
commit
f088efdf84
7 changed files with 4379 additions and 4323 deletions
|
@ -20,6 +20,18 @@
|
|||
|
||||
static QTranslator* s_kbtranslator = nullptr;
|
||||
|
||||
void
|
||||
retranslateKeyboardModels()
|
||||
{
|
||||
cqDeleter< QTranslator > d{ s_kbtranslator };
|
||||
if ( !s_kbtranslator )
|
||||
{
|
||||
s_kbtranslator = new QTranslator;
|
||||
}
|
||||
d.preserve = CalamaresUtils::loadTranslator( QLocale(), QStringLiteral("kb_"), s_kbtranslator );
|
||||
}
|
||||
|
||||
|
||||
XKBListModel::XKBListModel( QObject* parent )
|
||||
: QAbstractListModel( parent )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue