diff --git a/backupitem.ui b/backupitem.ui
index b0a5755..28d89db 100644
--- a/backupitem.ui
+++ b/backupitem.ui
@@ -11,7 +11,7 @@
- Form
+
diff --git a/main.cpp b/main.cpp
index 1f8825e..65100de 100644
--- a/main.cpp
+++ b/main.cpp
@@ -22,7 +22,9 @@
#endif
#include
+#include
#include
+#include
#include "singleapplication.h"
#include "mainwidget.h"
@@ -39,6 +41,16 @@ void noMessageOutput(QtMsgType type, const char *msg)
Q_UNUSED(msg);
}
+void loadTranslation(QApplication &app)
+{
+ QTranslator* translator = new QTranslator();
+ QString locale = QLocale().system().name();
+ qDebug() << "Current locale:" << locale;
+ if(translator->load("qcma." + locale, ":/main/resources/translations")) {
+ app.installTranslator(translator);
+ }
+}
+
int main(int argc, char *argv[])
{
if(SingleApplication::sendMessage(QObject::tr("A instance of QCMA is already running"))) {
@@ -47,6 +59,8 @@ int main(int argc, char *argv[])
SingleApplication app(argc, argv);
+ loadTranslation(app);
+
#ifndef Q_OS_WIN32
// FIXME: libmtp sends SIGPIPE if a socket write fails crashing the whole app
// the proper fix is to libmtp to handle the cancel properly or ignoring
diff --git a/qcma.desktop b/qcma.desktop
index f14a650..66cdeb5 100755
--- a/qcma.desktop
+++ b/qcma.desktop
@@ -8,8 +8,9 @@ Comment[es]=Asistente del Gestor de Contenido para PS Vita
Icon=qcma.png
Name=QCMA
Path=
-StartupNotify=true
+StartupNotify=false
Terminal=false
Type=Application
Version=1.0
X-KDE-SubstituteUID=false
+Categories=Qt;Utility;
diff --git a/qcma.pro b/qcma.pro
index 4c3664b..2d9e852 100644
--- a/qcma.pro
+++ b/qcma.pro
@@ -73,9 +73,11 @@ FORMS += \
backupitem.ui \
confirmdialog.ui
+TRANSLATIONS += resources/translations/qcma.es.ts
+
unix {
isEmpty(PREFIX) {
- PREFIX = /usr/local
+ PREFIX = /usr/local
}
BINDIR = $$PREFIX/bin
diff --git a/qcmares.qrc b/qcmares.qrc
index 54fcc53..d49c186 100644
--- a/qcmares.qrc
+++ b/qcmares.qrc
@@ -2,5 +2,6 @@
resources/psp2-updatelist.xmlresources/psv_icon.png
+ resources/translations/qcma.es.qm
diff --git a/resources/translations/qcma.es.ts b/resources/translations/qcma.es.ts
new file mode 100644
index 0000000..d2653ad
--- /dev/null
+++ b/resources/translations/qcma.es.ts
@@ -0,0 +1,268 @@
+
+
+
+
+ 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>
+
+
+
+
+ Delete entry
+ Borrar entrada
+
+
+
+ Open folder
+ Abrir directorio
+
+
+
+ BackupManagerForm
+
+
+ Backup Manager
+ Gestor de Respaldos
+
+
+
+ Online ID / Username
+ ID Online / Nombre de usuario
+
+
+
+ Backup Type
+ Tipo de respaldo
+
+
+
+ PS Vita Games
+ Juegos PS Vita
+
+
+
+ PSP Games
+ Juegos PSP
+
+
+
+ PSM Games
+ Juegos PSM
+
+
+
+ PSOne Games
+ Juegos PSOne
+
+
+
+ PSP Savedatas
+ Salvados PSP
+
+
+
+ Backups
+ Respaldos
+
+
+
+ Backup disk usage
+ Uso de disco en respaldos
+
+
+
+ Default account
+ Cuenta por defecto
+
+
+
+ Are you sure to remove the backup of the following entry?
+ ¿Estas seguro de borrar la siguiente entrada?
+
+
+
+ Backup disk usage: %1
+ Uso de disco en respaldos: %1
+
+
+
+ - (Launcher only)
+ - (Solo lanzador LiveArea)
+
+
+
+ ClientManager
+
+
+ Added %1 entries to the database
+ Agregadas %1 entradas a la base de datos
+
+
+
+ CmaClient
+
+
+ Connected to
+ Conectado a
+
+
+
+ ConfigWidget
+
+
+ QCMA Settings
+ Ajustes QCMA
+
+
+
+ Folders
+ Directorios
+
+
+
+ Specify the folders that the PS Vita will access for each content type
+ Especificar los directorios que el sistema PS Vita accederá para cada tipo de contenido
+
+
+
+ Photo Folder
+ Directorio de Fotos
+
+
+
+
+
+
+
+ Browse...
+ Buscar...
+
+
+
+ Video Folder
+ Directorio de Videos
+
+
+
+ Music Folder
+ Directorio de Música
+
+
+
+ Applications / Backups
+ Aplicaciones / Juegos / Respaldos
+
+
+
+ Updates / Web content
+ Actualizaciones / Contenido Web
+
+
+
+ Other
+ Otros
+
+
+
+ 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
+
+
+
+ ConfirmDialog
+
+
+ Confirmation Message
+ Mensaje de confirmación
+
+
+
+ <html><head/><body><p><span style=" font-size:10pt;">Are you sure to delete the backup of the following game?</span></p><p><span style=" font-size:12pt; font-weight:600;">Game Name</span></p></body></html>
+
+
+
+
+
+ MainWidget
+
+
+ Shutting down...
+ Cerrando...
+
+
+
+ Stopping QCMA...
+ Deteniendo QCMA...
+
+
+
+ Disconnected
+ Desconectado
+
+
+
+ The device has been disconnected
+ El dispositivo se ha desconectado
+
+
+
+ Received PIN: %1
+ PIN recibido: %1
+
+
+
+ &Settings
+ &Ajustes
+
+
+
+ &Refresh database
+ &Refrescar base de datos
+
+
+
+ Backup Manager
+ Gestor de Respaldos
+
+
+
+ &Quit
+ &Salir
+
+
+
+ Information
+ Información
+
+
+
+ QObject
+
+
+ A instance of QCMA is already running
+ Otra instancia de QCMA ya se encuentra en ejecución
+
+
+