Commit b5383ca3 authored by Ilia Ryabokon's avatar Ilia Ryabokon

Keyboard layout translations

parent 2ab3471c
......@@ -1661,6 +1661,29 @@ Do you want to ignore these errors for this host?</source>
<translation>لم يستطع Sankore الدخول الى سجل الوثيقة &apos;1%&apos;. للأسف، يجب اغلاق التطبيق لتفادي فساد البيانات. يمكن أيضا فقدان التغييرات الأخيرة.</translation>
</message>
</context>
<context>
<name>UBPlatformUtils</name>
<message>
<source>English</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Russian</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>German</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>French</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Swiss French</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>UBPodcastController</name>
<message>
......
......@@ -1660,6 +1660,29 @@ Do you want to ignore these errors for this host?</source>
<translation>Санкоре изгуби достъп до хранилището за докумети &apos;%1&apos;. За съжаление приложението ще се затвори, за да не се повредят файловете. Последните промени могат да бъдат изгубени.</translation>
</message>
</context>
<context>
<name>UBPlatformUtils</name>
<message>
<source>English</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Russian</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>German</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>French</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Swiss French</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>UBPodcastController</name>
<message>
......
......@@ -1658,6 +1658,29 @@ Do you want to ignore these errors for this host?</source>
<translation>Sankore har mistet adgangen til dokumentdepotet &apos;%1&apos;. Desværre må applikationen lukke ned for at undgå, at data mistes. De seneste ændringer kan være gået tabt.</translation>
</message>
</context>
<context>
<name>UBPlatformUtils</name>
<message>
<source>English</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Russian</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>German</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>French</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Swiss French</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>UBPodcastController</name>
<message>
......
......@@ -1658,6 +1658,29 @@ Möchten Sie diese Fehler auf diesem Computer ignorieren?</translation>
<translation>Sankore hat den Zugang zum Dokumentenarchiv &apos;%1&apos; verloren. Die Anwendung muss leider beendet werden, um Datenkorruption zu vermeiden. Der Verlust kürzlich vorgenommener Änderungen ist möglich.</translation>
</message>
</context>
<context>
<name>UBPlatformUtils</name>
<message>
<source>English</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Russian</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>German</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>French</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Swiss French</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>UBPodcastController</name>
<message>
......
......@@ -1650,6 +1650,29 @@ Do you want to ignore these errors for this host?</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>UBPlatformUtils</name>
<message>
<source>English</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Russian</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>German</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>French</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Swiss French</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>UBPodcastController</name>
<message>
......
......@@ -1650,6 +1650,29 @@ Do you want to ignore these errors for this host?</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>UBPlatformUtils</name>
<message>
<source>English</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Russian</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>German</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>French</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Swiss French</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>UBPodcastController</name>
<message>
......
......@@ -1652,6 +1652,29 @@ Do you want to ignore these errors for this host?</source>
<translation>Sankore ha perdido acceso al depósito de documentos &apos;%1&apos;. Desafortunadamente la aplicación debe cerrarse para evitar daños en los datos. También se podrían perder los últimos cambios.</translation>
</message>
</context>
<context>
<name>UBPlatformUtils</name>
<message>
<source>English</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Russian</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>German</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>French</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Swiss French</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>UBPodcastController</name>
<message>
......
......@@ -1658,6 +1658,29 @@ Voulez-vous ignorer les erreurs pour ce serveur ?</translation>
<translation>Open-Sankoré a perdu l&apos;accès au répertoire des documents &apos;%1&apos;. L&apos;application doit malheureusement être fermée pour éviter tout risque de corruption de vos fichiers. Les dernières modifications effectuées risquent d&apos;être perdues.</translation>
</message>
</context>
<context>
<name>UBPlatformUtils</name>
<message>
<source>English</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Russian</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>German</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>French</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Swiss French</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>UBPodcastController</name>
<message>
......
......@@ -1658,6 +1658,29 @@ Voulez-vous ignorer les erreurs pour ce serveur ?</translation>
<translation>Open-Sankoré a perdu l&apos;accès au répertoire des documents &apos;%1&apos;. L&apos;application doit malheureusement être fermée pour éviter tout risque de corruption de vos fichiers. Les dernières modifications effectuées risquent d&apos;être perdues.</translation>
</message>
</context>
<context>
<name>UBPlatformUtils</name>
<message>
<source>English</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Russian</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>German</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>French</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Swiss French</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>UBPodcastController</name>
<message>
......
......@@ -1658,6 +1658,29 @@ Vuoi ignorare gli errori per questo host?</translation>
<translation>Sankore ha perso l&apos;accesso all&apos;archivio dei documenti &apos;%1&apos;. Purtroppo l&apos;applicazione deve chiudere per evitare la corruzione dei dati. Potrebbero essere andate perse anche le ultime modifiche.</translation>
</message>
</context>
<context>
<name>UBPlatformUtils</name>
<message>
<source>English</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Russian</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>German</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>French</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Swiss French</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>UBPodcastController</name>
<message>
......
......@@ -1653,6 +1653,29 @@ Do you want to ignore these errors for this host?</source>
<translation>Sakomeאיבד את הגישה למקום אכסון המסמך %1 : לצערנו היישום צריך להסגר כדי למנוע השחתת נתונים. ייתכן שגם השינויים האחרונים יאבדו.</translation>
</message>
</context>
<context>
<name>UBPlatformUtils</name>
<message>
<source>English</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Russian</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>German</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>French</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Swiss French</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>UBPodcastController</name>
<message>
......
......@@ -1657,6 +1657,29 @@ Do you want to ignore these errors for this host?</source>
<translation>Sankoreはドキュメント・リポジトリ&apos;%1&apos;へのアクセスを失いました。データ崩壊を避けるために残念ながらアプリケーションはシャットダウンします。したがって最後の変更は失われます。</translation>
</message>
</context>
<context>
<name>UBPlatformUtils</name>
<message>
<source>English</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Russian</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>German</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>French</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Swiss French</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>UBPodcastController</name>
<message>
......
......@@ -1656,6 +1656,29 @@ Do you want to ignore these errors for this host?</source>
<translation>Sankore &apos;%1&apos; 문서 저장소에 액세스할 없습니다. 데이터 손상을 방지하기 위해 응용 프로그램을 종료해야 합니다. 최종 변경된 내용도 손실되었을 있습니다.</translation>
</message>
</context>
<context>
<name>UBPlatformUtils</name>
<message>
<source>English</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Russian</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>German</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>French</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Swiss French</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>UBPodcastController</name>
<message>
......
......@@ -857,7 +857,7 @@
<name>UBAbstractWidget</name>
<message>
<source>Cannot load content</source>
<translation>Kan ikke laste innhold</translation>
<translation type="obsolete">Kan ikke laste innhold</translation>
</message>
<message>
<source>Loading ...</source>
......@@ -1660,6 +1660,29 @@ Do you want to ignore these errors for this host?</source>
<translation>Sankore har mistet tilgangen til dokumentdatabasen &quot;%1%. Dessverre må applikasjonen avsluttes for å unngå korrupte data. De siste endringene kan også gå tapt.</translation>
</message>
</context>
<context>
<name>UBPlatformUtils</name>
<message>
<source>English</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Russian</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>German</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>French</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Swiss French</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>UBPodcastController</name>
<message>
......
......@@ -1650,6 +1650,29 @@ Do you want to ignore these errors for this host?</source>
<translation>Sankore geen toegang meer tot documentopslag &quot;%1&quot;. De applicatie moet sluiten om data schade te voorkomen. De laatste wijzigingen kunnen eveneens verloren gaan.</translation>
</message>
</context>
<context>
<name>UBPlatformUtils</name>
<message>
<source>English</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Russian</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>German</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>French</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Swiss French</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>UBPodcastController</name>
<message>
......
......@@ -1665,6 +1665,29 @@ Czy chcesz ignorować te błędy dla tego hosta?</translation>
<translation>Sankore utraciło dostęp do repozytorium dokumentów %1. Niestety aplikacja musi zostać zamknięta, aby uniknąć uszkodzenia danych. Najnowsze zmiany mogą zostać utracone.</translation>
</message>
</context>
<context>
<name>UBPlatformUtils</name>
<message>
<source>English</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Russian</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>German</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>French</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Swiss French</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>UBPodcastController</name>
<message>
......
......@@ -1650,6 +1650,29 @@ Do you want to ignore these errors for this host?</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>UBPlatformUtils</name>
<message>
<source>English</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Russian</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>German</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>French</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Swiss French</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>UBPodcastController</name>
<message>
......
......@@ -1650,6 +1650,29 @@ Do you want to ignore these errors for this host?</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>UBPlatformUtils</name>
<message>
<source>English</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Russian</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>German</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>French</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Swiss French</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>UBPodcastController</name>
<message>
......
......@@ -1658,6 +1658,29 @@ Doriţi să ignoraţi aceste erori pentru acest host?</translation>
<translation>Sankore a pierdut accesul la depozitul de documente &apos;%1&apos;. Din păcate, aplicaţia trebuie închisă pentru a evita coruperea datelor. Este posibil şi ca ultimele modificări să fie pierdute.</translation>
</message>
</context>
<context>
<name>UBPlatformUtils</name>
<message>
<source>English</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Russian</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>German</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>French</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Swiss French</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>UBPodcastController</name>
<message>
......
......@@ -1658,6 +1658,29 @@ Do you want to ignore these errors for this host?</source>
<translation>Sankore потерял соединение с репозиторием документов &apos;%1&apos;. Приложение должно завершить работу, чтобы избежать повреждения данных. Также могут быть потеряны последние изменения.</translation>
</message>
</context>
<context>
<name>UBPlatformUtils</name>
<message>
<source>English</source>
<translation>Английский</translation>
</message>
<message>
<source>Russian</source>
<translation>Русский</translation>
</message>
<message>
<source>German</source>
<translation>Немецкий</translation>
</message>
<message>
<source>French</source>
<translation>Французский</translation>
</message>
<message>
<source>Swiss French</source>
<translation>Шв. французский</translation>
</message>
</context>
<context>
<name>UBPodcastController</name>
<message>
......
......@@ -1662,6 +1662,29 @@ Chcete ignorovať tieto chyby na tomto serveri?</translation>
<translation>Strata depozitára s dokumentami</translation>
</message>
</context>
<context>
<name>UBPlatformUtils</name>
<message>
<source>English</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Russian</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>German</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>French</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Swiss French</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>UBPodcastController</name>
<message>
......
......@@ -1658,6 +1658,29 @@ Vill du ignorera felen för den här värden?</translation>
<translation>Sankore har förlorat access till dokumentarkiv &apos;%1&apos;. Tyvärr måste programmet stängas ner för att undvika korruption av data. De senaste ändringarna kan gå förlorade.</translation>
</message>
</context>
<context>
<name>UBPlatformUtils</name>
<message>
<source>English</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Russian</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>German</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>French</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Swiss French</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>UBPodcastController</name>
<message>
......
......@@ -1656,6 +1656,29 @@ Do you want to ignore these errors for this host?</source>
<translation>Sankore无法进入文档库。为避免数据出错,应用程序须立即关闭,最近所做的修改也可能丢失。</translation>
</message>
</context>
<context>
<name>UBPlatformUtils</name>
<message>
<source>English</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Russian</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>German</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>French</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Swiss French</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>UBPodcastController</name>
<message>
......
......@@ -128,7 +128,7 @@ UBApplication::UBApplication(const QString &id, int &argc, char **argv) : QtSing
|| args.contains("-log")
|| args.contains("log");
UBPlatformUtils::init();
UBResources::resources();
if (!undoStack)
......@@ -154,6 +154,8 @@ UBApplication::UBApplication(const QString &id, int &argc, char **argv) : QtSing
QLocale::setDefault(QLocale(localString));
qDebug() << "Running application in:" << localString;
UBPlatformUtils::init();
UBSettings *settings = UBSettings::settings();
connect(settings->appToolBarPositionedAtTop, SIGNAL(changed(QVariant)), this, SLOT(toolBarPositionChanged(QVariant)));
......
......@@ -160,6 +160,8 @@ struct KEYBT
class UBPlatformUtils
{
Q_DECLARE_TR_FUNCTIONS(UBPlatformUtils)
private:
UBPlatformUtils();
virtual ~UBPlatformUtils();
......@@ -169,7 +171,7 @@ class UBPlatformUtils
static int nKeyboardLayouts;
static UBKeyboardLocale** keyboardLayouts;
public:
public:
static void init();
static void destroy();
static QString applicationResourcesDirectory();
......
......@@ -382,11 +382,11 @@ void UBPlatformUtils::initializeKeyboardLayouts()
{
nKeyboardLayouts = 5;
keyboardLayouts = new UBKeyboardLocale*[nKeyboardLayouts];
keyboardLayouts[0] = new UBKeyboardLocale("English", "en", "", new QIcon(":/images/flags/en.png"), ENGLISH_LOCALE);
keyboardLayouts[1] = new UBKeyboardLocale("Russian", "ru", "", new QIcon(":/images/flags/ru.png"),RUSSIAN_LOCALE);
keyboardLayouts[2] = new UBKeyboardLocale("German", "de", "", new QIcon(":/images/flags/de.png"), GERMAN_LOCALE);
keyboardLayouts[3] = new UBKeyboardLocale("French", "fr", "", new QIcon(":/images/flags/fr.png"), FRENCH_LOCALE);
keyboardLayouts[4] = new UBKeyboardLocale("Swiss French", "fr-CH", "", new QIcon(":/images/flags/fr.png"), SWISS_FRENCH_LOCALE);
keyboardLayouts[0] = new UBKeyboardLocale(tr("English"), "en", "", new QIcon(":/images/flags/en.png"), ENGLISH_LOCALE);
keyboardLayouts[1] = new UBKeyboardLocale(tr("Russian"), "ru", "", new QIcon(":/images/flags/ru.png"),RUSSIAN_LOCALE);
keyboardLayouts[2] = new UBKeyboardLocale(tr("German"), "de", "", new QIcon(":/images/flags/de.png"), GERMAN_LOCALE);
keyboardLayouts[3] = new UBKeyboardLocale(tr("French"), "fr", "", new QIcon(":/images/flags/fr.png"), FRENCH_LOCALE);
keyboardLayouts[4] = new UBKeyboardLocale(tr("Swiss French"), "fr-CH", "", new QIcon(":/images/flags/fr.png"), SWISS_FRENCH_LOCALE);
}
void UBPlatformUtils::destroyKeyboardLayouts()
......
......@@ -398,11 +398,11 @@ void UBPlatformUtils::initializeKeyboardLayouts()
{
nKeyboardLayouts = 5;
keyboardLayouts = new UBKeyboardLocale*[nKeyboardLayouts];
keyboardLayouts[0] = new UBKeyboardLocale("English", "en", "", new QIcon(":/images/flags/en.png"), ENGLISH_LOCALE);
keyboardLayouts[1] = new UBKeyboardLocale("Russian", "ru", "", new QIcon(":/images/flags/ru.png"),RUSSIAN_LOCALE);
keyboardLayouts[2] = new UBKeyboardLocale("French", "fr", "", new QIcon(":/images/flags/fr.png"), FRENCH_LOCALE);
keyboardLayouts[3] = new UBKeyboardLocale("Swiss French", "fr-CH", "", new QIcon(":/images/flags/fr.png"), SWISS_FRENCH_LOCALE);
keyboardLayouts[4] = new UBKeyboardLocale("German", "de", "", new QIcon(":/images/flags/de.png"), GERMAN_LOCALE);
keyboardLayouts[0] = new UBKeyboardLocale(tr("English"), "en", "", new QIcon(":/images/flags/en.png"), ENGLISH_LOCALE);
keyboardLayouts[1] = new UBKeyboardLocale(tr("Russian"), "ru", "", new QIcon(":/images/flags/ru.png"),RUSSIAN_LOCALE);
keyboardLayouts[2] = new UBKeyboardLocale(tr("French"), "fr", "", new QIcon(":/images/flags/fr.png"), FRENCH_LOCALE);
keyboardLayouts[3] = new UBKeyboardLocale(tr("Swiss French"), "fr-CH", "", new QIcon(":/images/flags/fr.png"), SWISS_FRENCH_LOCALE);
keyboardLayouts[4] = new UBKeyboardLocale(tr("German"), "de", "", new QIcon(":/images/flags/de.png"), GERMAN_LOCALE);
}
void UBPlatformUtils::destroyKeyboardLayouts()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment