diff --git a/.gitignore b/.gitignore index 222fba6..9841584 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ qcma.pro.user* +*.o *.qm org.qcma.*.xml diff --git a/README.md b/README.md index f239865..64949fd 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,11 @@ dbus-monitor "type='signal',sender='org.qcma.HeadlessManager',member='databaseUp * [VitaMTP fork](https://github.com/codestation/VitaMTP) -* [FFmpeg](hhttp://www.ffmpeg.org/) +* [FFmpeg](http://www.ffmpeg.org/) + +* [libnotify](http://library.gnome.org/devel/notification-spec/) + +* [libappindicator](https://launchpad.net/libappindicator) #### Where do I get the source code? @@ -69,6 +73,8 @@ the reference implementation of OpenCMA. [Xian Nox] (https://github.com/xiannox) - for the Wiki and various contributions. +[173210] (https://github.com/173210) - japanese translations. + #### License GPL v3: since some parts of QCMA are based on the reference implementation of OpenCMA. diff --git a/resources/translations/qcma_es.ts b/resources/translations/qcma_es.ts index 2a60c35..430ac4b 100644 --- a/resources/translations/qcma_es.ts +++ b/resources/translations/qcma_es.ts @@ -3,21 +3,6 @@ BackupItem - - - <p><span style=" font-size:12pt; font-weight:600;">Game Name</span></p> - - - - - <p><span style=" font-size:10pt;">0.00 GiB</span></p> - - - - - <html><head/><body><p><span style=" font-size:9pt;">[APP] [SAVE] [UPDATE] [DLC]</span></p></body></html> - - Delete entry @@ -105,34 +90,26 @@ [GAME] - + [JUEGO] [SAVE] - + [SALVADO] [UPDATE] - + [ACTUALIZACIÓN] [DLC] - - - - - (Launcher only) - - (Solo lanzador LiveArea) + [DLC] ClientManager - - Added %1 entries to the database - Agregadas %1 entradas a la base de datos - Added %1 items to the database @@ -153,10 +130,6 @@ 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 @@ -165,10 +138,6 @@ CmaClient - - Connected to - Conectado a - @@ -210,7 +179,7 @@ - + Browse... Buscar... @@ -263,7 +232,7 @@ Esta es la ubicación donde el sistema PS Vita leerá los contenidos que intente descargar. - + Packages Archivos PKG @@ -293,25 +262,35 @@ Actualizar la base de datos automaticamente - + SQLite SQLite - + Skip photo scanning Omitir el escaneo de fotos - + Skip video scanning Omitir el escaneo de vídeos - + Skip music scanning Omitir el escaneo de música + + + CMA Protocol version + Versión del protocolo CMA + + + + Reset to default + Valor por defecto + Disable USB monitoring @@ -323,42 +302,42 @@ Deshabilitar monitoreo WiFi - + Database backend Almacenaje de base de datos - + In Memory En memoria - + Select the folder to be used as a photo source Seleccione el directorio a ser utilizado como origen de fotos - + Select the folder to be used as a music source Seleccione el directorio a ser utilizado como origen de música - + Select the folder to be used as a video source Seleccione el directorio a ser utilizado como origen de videos - + Select the folder to be used to save PS Vita games and backups Seleccione el directorio a ser utilizado para guardar juegos y respaldos - + Select the folder to be used to fetch software updates Seleccione el directorio a ser utilizado para extraer actualizaciones de software - + Select the folder to be used to software packages Seleccione el directorio a ser utilizado para almacenar archivos pkg @@ -395,44 +374,82 @@ - MainWidget + KDENotifierTray - - Shutting down... - Cerrando... + + Settings + Ajustes - Stopping QCMA... - Deteniendo QCMA... + + Refresh database + Refrescar base de datos - - Stopping QCMA (disconnect your PS Vita) - Deteniendo QCMA (desconecte su PS Vita) + + Backup Manager + Gestor de Respaldos - - - Disconnected - Desconectado - - - - The device has been disconnected - El dispositivo se ha desconectado - - - + About QCMA Acerca de QCMA - + + About Qt + Acerca de Qt + + + + Quit + Salir + + + + Qcma status + Estado de Qcma + + + + Disconnected + Desconectado + + + + MainWidget + + + Shutting down... + Cerrando... + + + + 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) 2014 Codestation Copyright (C) 2014 Codestation - + Copyright (C) 2014 Codestation build hash: %1 @@ -443,88 +460,13 @@ Hash de compilación: %1 Rama de compilación: %2 - Copyright (C) 2013 Codestation - Copyright (C) 2013 Codestation - - - Copyright (C) 2013 Codestation - -build hash: %1 -build branch: %2 - Copyright (C) 2013 Codestation - -Hash de compilación: %1 -Rama de compilación: %2 - - - - &About QCMA - &Acerca de QCMA - - - - Qcma - Information - Qcma - Información - - - Copyright (C) 2013 Codestation - - Copyright (C) 2013 Codestation\n - - - - &Backup Manager - &Gestor de Respaldos - - - &About - &Acerca de - - - - Abou&t Qt - A&cerca de Qt - - - Received PIN: %1 - PIN recibido: %1 - - - - &Settings - &Ajustes - - - - &Refresh database - &Refrescar base de datos - - - Backup Manager - Gestor de Respaldos - - - - &Quit - &Salir - - - - Qcma status - Estado de Qcma - - - + Information Información PinForm - - Form - Registro de PIN - Device pairing @@ -623,4 +565,70 @@ Rama de compilación: %2 Otra instancia de QCMA ya se encuentra en ejecución + + QTrayIcon + + + Settings + Ajustes + + + + Refresh database + Refrescar base de datos + + + + Backup Manager + Gestor de Respaldos + + + + About QCMA + Acerca de QCMA + + + + About Qt + Acerca de Qt + + + + Quit + Salir + + + + UnityIndicator + + + Settings + Ajustes + + + + Refresh database + Refrescar base de datos + + + + Backup Manager + Gestor de Respaldos + + + + About QCMA + Acerca de QCMA + + + + About Qt + Acerca de Qt + + + + Quit + Salir + + diff --git a/resources/translations/qcma_ja.ts b/resources/translations/qcma_ja.ts index 08ddd7f..69c2388 100644 --- a/resources/translations/qcma_ja.ts +++ b/resources/translations/qcma_ja.ts @@ -3,25 +3,6 @@ BackupItem - - <html><head/><body><p><span style=" font-size:12pt; font-weight:600;">Game Name</span></p><p><span style=" font-size:10pt;">0.00 GiB</span></p></body></html> - <html><head/><body><p><span style=" font-size:12pt; font-weight:600;">ゲーム名</span></p><p><span style=" font-size:10pt;">0.00 GiB</span></p></body></html> - - - - <p><span style=" font-size:12pt; font-weight:600;">Game Name</span></p> - - - - - <p><span style=" font-size:10pt;">0.00 GiB</span></p> - - - - - <html><head/><body><p><span style=" font-size:9pt;">[APP] [SAVE] [UPDATE] [DLC]</span></p></body></html> - - Delete entry @@ -89,7 +70,7 @@ Filter - + フィルタ @@ -109,34 +90,26 @@ [GAME] - + [ゲーム] [SAVE] - + [セーブ] [UPDATE] - + [アップデート] [DLC] - - - - - (Launcher only) - - (LiveArea専用) + [DLC] ClientManager - - Added %1 entries to the database - %1個の項目をデータベースに追加しました - Added %1 items to the database @@ -150,34 +123,26 @@ Cannot initialize VitaMTP library - + VitaMTPライブラリを初期化できません You must enable at least USB or Wireless monitoring - - - - Cannot refresh the database while is in use - 使用中にはデータベースを更新できません + 少なくともUSBと無線のどちらかの監視を有効にする必要があります No PS Vita system has been registered - + PS Vitaが登録されていません CmaClient - - Connected to - 次のデバイスに接続しました - Connected to %1 (PS Vita) - + %1 (PS Vita) に接続されました @@ -201,7 +166,7 @@ This is the location your Screenshots and Pictures are Saved to/Imported from. - + スクリーンショットや画像を保存/インポートする場所です。 @@ -214,7 +179,7 @@ - + Browse... 参照... @@ -222,7 +187,7 @@ This is the location your Videos are Saved to/Imported from. - + ビデオを保存/インポートする場所です。 @@ -233,7 +198,7 @@ This is the location your Music is Saved to/Imported from. - + ミュージックを保存/インポートする場所です。 @@ -244,7 +209,7 @@ This is the location your Games, Apps, Savegames, and System Backups are Saved to/Imported from. - + ゲームやアプリ、セーブデータ、システムバックアップを保存/インポートする場所です。 @@ -254,7 +219,7 @@ This is the location your Software Updates and Browser Data is Saved to/Imported from. - + ソフトウェアアップデートとブラウザデータをを保存/インポートする場所です。 @@ -264,12 +229,12 @@ This is the location your PS Vita system will read all the content that it tries to download. - + この場所の全てのコンテンツをPS Vitaシステムが読み込み、ダウンロードを試みます。 - + Packages - + パッケージ @@ -297,24 +262,34 @@ PCのファイルが変更された際にデータベースを自動的に更新する - + SQLite - + SQLite - + Skip photo scanning - + フォトのスキャンをスキップする - + Skip video scanning - + ビデオのスキャンをスキップする - + Skip music scanning - + ミュージックのスキャンをスキップする + + + + CMA Protocol version + CMAプロトコルバージョン + + + + Reset to default + 既定値にリセット @@ -327,44 +302,44 @@ Wi-Fiの監視を無効にする - + Database backend データベース保存 - + In Memory メモリ内 - + Select the folder to be used as a photo source フォトの参照先として使用されるフォルダを選択してください - + Select the folder to be used as a music source ミュージックの参照先として使用されるフォルダを選択してください - + Select the folder to be used as a video source ビデオの参照先として使用されるフォルダを選択してください - + Select the folder to be used to save PS Vita games and backups PS Vitaのゲームとバックアップの保存に使用されるフォルダを選択してください - + Select the folder to be used to fetch software updates ソフトウェアアップデートの取得に使用されるフォルダを選択してください - + Select the folder to be used to software packages - + ソフトウェアパッケージに使うフォルダを選択してください @@ -388,7 +363,7 @@ Filter - + フィルタ @@ -396,114 +371,103 @@ Network error: %1 - + ネットワークエラー: %1 + + + + KDENotifierTray + + + Settings + 設定 + + + + Refresh database + データベースを更新する + + + + Backup Manager + バックアップマネージャー + + + + About QCMA + QCMAについて + + + + About Qt + Qtについて + + + + Quit + 終了 + + + + Qcma status + QCMAステータス + + + + Disconnected + 切断されました MainWidget - + Shutting down... 終了しています... - Stopping QCMA... - QCMAを停止しています... - - - + Stopping QCMA (disconnect your PS Vita) - + QCMAを停止しています (PS Vitaとの接続を切断してください) - - + Disconnected 切断されました - + The device has been disconnected デバイスが切断されました - + About QCMA - + QCMAについて - + Copyright (C) 2014 Codestation - + Copyright (C) 2014 Codestation - + Copyright (C) 2014 Codestation build hash: %1 build branch: %2 - + Copyright (C) 2014 Codestation + +ビルドハッシュ: %1 +ビルドブランチ: %2 - - &Backup Manager - - - - - &About QCMA - - - - - Abou&t Qt - - - - - Qcma - Information - - - - Received PIN: %1 - 受信したPIN: %1 - - - - &Settings - &設定 - - - - &Refresh database - &データベースを更新する - - - Backup Manager - バックアップマネージャー - - - - &Quit - &終了 - - - - Qcma status - - - - + Information 情報 PinForm - - Form - 入力フォーム - Device pairing @@ -602,4 +566,70 @@ build branch: %2 QCMAのプロセスがすでに実行しています + + QTrayIcon + + + Settings + 設定 + + + + Refresh database + データベースを更新する + + + + Backup Manager + バックアップマネージャー + + + + About QCMA + QCMAについて + + + + About Qt + Qtについて + + + + Quit + 終了 + + + + UnityIndicator + + + Settings + 設定 + + + + Refresh database + データベースを更新する + + + + Backup Manager + バックアップマネージャー + + + + About QCMA + QCMAについて + + + + About Qt + Qtについて + + + + Quit + 終了 + + diff --git a/src/capability.cpp b/src/capability.cpp index d409370..027d8c2 100644 --- a/src/capability.cpp +++ b/src/capability.cpp @@ -21,6 +21,7 @@ #include #include +#include DeviceCapability::DeviceCapability() : vita_info() @@ -40,7 +41,9 @@ bool DeviceCapability::exchangeInfo(vita_device_t *device) } QString hostname = QHostInfo::localHostName(); - const initiator_info_t *pc_info = VitaMTP_Data_Initiator_New(hostname.toUtf8().data(), VITAMTP_PROTOCOL_MAX_VERSION); + int protocol_version = QSettings().value("protocolVersion", VITAMTP_PROTOCOL_MAX_VERSION).toInt(); + protocol_version = qMax(protocol_version, VITAMTP_PROTOCOL_MAX_VERSION); + const initiator_info_t *pc_info = VitaMTP_Data_Initiator_New(hostname.toUtf8().data(), protocol_version); // Next, we send the client's (this program) info (discard the const here) if(VitaMTP_SendInitiatorInfo(device, (initiator_info_t *)pc_info) != PTP_RC_OK) { diff --git a/src/forms/backupitem.ui b/src/forms/backupitem.ui index aa87741..0197067 100644 --- a/src/forms/backupitem.ui +++ b/src/forms/backupitem.ui @@ -37,7 +37,7 @@ - + true @@ -55,7 +55,7 @@ - <p><span style=" font-size:12pt; font-weight:600;">Game Name</span></p> + <p><span style=" font-size:12pt; font-weight:600;">Game Name</span></p> @@ -76,7 +76,7 @@ - <p><span style=" font-size:10pt;">0.00 GiB</span></p> + <p><span style=" font-size:10pt;">0.00 GiB</span></p> @@ -89,7 +89,7 @@ - <html><head/><body><p><span style=" font-size:9pt;">[APP] [SAVE] [UPDATE] [DLC]</span></p></body></html> + <html><head/><body><p><span style=" font-size:9pt;">[APP] [SAVE] [UPDATE] [DLC]</span></p></body></html> Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter diff --git a/src/forms/configwidget.cpp b/src/forms/configwidget.cpp index 1ae0c46..73ed2db 100644 --- a/src/forms/configwidget.cpp +++ b/src/forms/configwidget.cpp @@ -100,7 +100,10 @@ void ConfigWidget::setDefaultData() ui->videoSkipCheck->setChecked(settings.value("videoSkip", false).toBool()); ui->musicSkipCheck->setChecked(settings.value("musicSkip", false).toBool()); - ui->protocolEdit->setText(settings.value("protocolVersion", VITAMTP_PROTOCOL_MAX_VERSION).toString()); + int protocol_version = settings.value("protocolVersion", VITAMTP_PROTOCOL_MAX_VERSION).toInt(); + protocol_version = qMax(protocol_version, VITAMTP_PROTOCOL_MAX_VERSION); + + ui->protocolEdit->setText(QString::number(protocol_version)); } ConfigWidget::~ConfigWidget() diff --git a/src/forms/configwidget.ui b/src/forms/configwidget.ui index e46b33f..2637d24 100644 --- a/src/forms/configwidget.ui +++ b/src/forms/configwidget.ui @@ -19,7 +19,7 @@ - 1 + 0 @@ -361,7 +361,7 @@ - 9999999 + 9999999 diff --git a/src/gui/mainwidget.cpp b/src/gui/mainwidget.cpp index 69b73b2..ea71f68 100644 --- a/src/gui/mainwidget.cpp +++ b/src/gui/mainwidget.cpp @@ -222,7 +222,7 @@ TrayIndicator *MainWidget::createTrayObject(QWidget *parent) if(desktop.toLower() == "kde") { // KDENotifier - QLibrary library("/usr/share/qcma/qcma_kdenotifier.so"); + QLibrary library("/usr/lib/qcma/qcma_kdenotifier.so"); if(library.load()) create_tray = reinterpret_cast(library.resolve("createTrayIndicator")); else @@ -233,7 +233,7 @@ TrayIndicator *MainWidget::createTrayObject(QWidget *parent) // if(desktop.toLower() == "unity") { // AppIndicator - QLibrary library("/usr/share/qcma/qcma_appindicator.so"); + QLibrary library("/usr/lib/qcma/qcma_appindicator.so"); if(library.load()) create_tray = reinterpret_cast(library.resolve("createTrayIndicator")); else