diff --git a/resources/translations/qcma_es.ts b/resources/translations/qcma_es.ts index 0601fc0..28edd18 100644 --- a/resources/translations/qcma_es.ts +++ b/resources/translations/qcma_es.ts @@ -105,27 +105,32 @@ Agregadas %1 entradas a la base de datos - + Added %1 items to the database Agregadas %1 entradas a la base de datos - + Database indexing aborted by user Actualización de la base de datos cancelada por el usuario - + Cannot initialize VitaMTP library No se pudo inicializar VitaMTP - + + You must enable at least USB or Wireless monitoring + Debe habilitar por lo menos el monitoreo USB o inalámbrico + + + Cannot refresh the database while is in use No se puede actualizar la base de datos mientras se encuentre en uso - + No PS Vita system has been registered Nigún sistema PS Vita ha sido registrado @@ -251,7 +256,7 @@ Update database automatically when files on the PC are changed - Actualizar la base de datos automaticamente + Actualizar la base de datos automaticamente @@ -342,33 +347,33 @@ Deteniendo QCMA... - + Stopping QCMA (disconnect your PS Vita) Deteniendo QCMA (desconecte su PS Vita) - - + + Disconnected Desconectado - + The device has been disconnected El dispositivo se ha desconectado - + About QCMA Acerca de QCMA - + Copyright (C) 2013 Codestation Copyright (C) 2013 Codestation - + Copyright (C) 2013 Codestation build hash: %1 @@ -379,12 +384,12 @@ Hash de compilación: %1 Rama de compilación: %2 - + &About QCMA &Acerca de QCMA - + Qcma - Information Qcma - Información @@ -394,7 +399,7 @@ Rama de compilación: %2 Copyright (C) 2013 Codestation\n - + &Backup Manager &Gestor de Respaldos @@ -403,7 +408,7 @@ Rama de compilación: %2 &Acerca de - + Abou&t Qt A&cerca de Qt @@ -412,12 +417,12 @@ Rama de compilación: %2 PIN recibido: %1 - + &Settings &Ajustes - + &Refresh database &Refrescar base de datos @@ -426,17 +431,17 @@ Rama de compilación: %2 Gestor de Respaldos - + &Quit &Salir - + Qcma status Estado de Qcma - + Information Información @@ -539,7 +544,7 @@ Rama de compilación: %2 QObject - + A instance of QCMA is already running Otra instancia de QCMA ya se encuentra en ejecución diff --git a/resources/translations/qcma_ja.ts b/resources/translations/qcma_ja.ts index 9c9e8c7..c8b871d 100644 --- a/resources/translations/qcma_ja.ts +++ b/resources/translations/qcma_ja.ts @@ -105,27 +105,32 @@ %1個の項目をデータベースに追加しました - + Added %1 items to the database %1個の項目をデータベースに追加しました - + Database indexing aborted by user データベース構築がユーザーにより中止されました - + Cannot initialize VitaMTP library - + + You must enable at least USB or Wireless monitoring + + + + Cannot refresh the database while is in use 使用中にはデータベースを更新できません - + No PS Vita system has been registered @@ -343,33 +348,33 @@ QCMAを停止しています... - + Stopping QCMA (disconnect your PS Vita) - - + + Disconnected 切断されました - + The device has been disconnected デバイスが切断されました - + About QCMA - + Copyright (C) 2013 Codestation - + Copyright (C) 2013 Codestation build hash: %1 @@ -377,22 +382,22 @@ build branch: %2 - + &Backup Manager - + &About QCMA - + Abou&t Qt - + Qcma - Information @@ -401,12 +406,12 @@ build branch: %2 受信したPIN: %1 - + &Settings &設定 - + &Refresh database &データベースを更新する @@ -415,17 +420,17 @@ build branch: %2 バックアップマネージャー - + &Quit &終了 - + Qcma status - + Information 情報 @@ -528,7 +533,7 @@ build branch: %2 QObject - + A instance of QCMA is already running QCMAのプロセスがすでに実行しています diff --git a/src/main.cpp b/src/main.cpp index 7c805ca..1ebebe5 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -81,7 +81,7 @@ int main(int argc, char *argv[]) QTranslator translator; QString locale = QLocale().system().name(); - qDebug("Current locale: %s", locale.toUtf8().data()); + qDebug() << "Current locale:" << locale; if(app.arguments().contains("--set-locale")) { int index = app.arguments().indexOf("--set-locale"); @@ -91,8 +91,10 @@ int main(int argc, char *argv[]) } } - if(translator.load("qcma_" + locale, ":/translations")) { + if(translator.load("qcma_" + locale, ":/resources/translations")) { app.installTranslator(&translator); + } else { + qDebug() << "Cannot load translation for locale:" << locale; } QTranslator system_translator; diff --git a/translations.qrc b/translations.qrc index 858fe59..8fb55b9 100644 --- a/translations.qrc +++ b/translations.qrc @@ -1,5 +1,5 @@ - + resources/translations/qcma_es.qm resources/translations/qcma_ja.qm