From c3c7d5748578d268ae2b8cc076bc5a87479fc768 Mon Sep 17 00:00:00 2001
From: Simon Rettberg
Date: Tue, 5 Dec 2017 11:29:26 +0100
Subject: Fix translations on Qt5
---
CMakeLists.txt | 83 ++++++------
gui/server_normal/mainwindow.ui | 24 +++-
gui/server_normal/numerickeyboard.ui | 20 +--
i18n/client/pvsclient_ar_JO.ts | 52 +++----
i18n/client/pvsclient_de_DE.ts | 52 +++----
i18n/client/pvsclient_es_MX.ts | 52 +++----
i18n/client/pvsclient_fr_FR.ts | 52 +++----
i18n/client/pvsclient_pl_PL.ts | 52 +++----
i18n/server/pvsmgr_ar_JO.ts | 231 +++++++-------------------------
i18n/server/pvsmgr_de_DE.ts | 219 ++++++++++++------------------
i18n/server/pvsmgr_es_MX.ts | 219 ++++++++++++------------------
i18n/server/pvsmgr_fr_FR.ts | 219 ++++++++++++------------------
i18n/server/pvsmgr_pl_PL.ts | 219 ++++++++++++------------------
pvsmgr.qrc | 19 +--
sample_configuration/switchToManager.sh | 2 +-
src/server/serverapp/serverapp.cpp | 6 +-
16 files changed, 588 insertions(+), 933 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 97116b0..a3a0b2b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -3,15 +3,15 @@
################################################################################
PROJECT(pvs2)
-CMAKE_MINIMUM_REQUIRED(VERSION 2.8.0)
+CMAKE_MINIMUM_REQUIRED(VERSION 2.8.12 FATAL_ERROR)
# set compiler optimizations for debug and release
-SET(CMAKE_BUILD_TYPE Debug)
SET(CMAKE_C_FLAGS_DEBUG "-O0 -g -Wall -Wunused -Wunreachable-code -pedantic")
SET(CMAKE_C_FLAGS_RELEASE "-O2")
SET(CMAKE_CXX_FLAGS_DEBUG "-O0 -g -Wall -Wextra -Wpedantic -std=c++0x -Wcast-align -Wcast-qual -Wchar-subscripts -Wcomment -Wconversion -Wdisabled-optimization -Wfloat-equal -Wformat -Wformat=2 -Wformat-nonliteral -Wformat-security -Wformat-y2k -Wimport -Winit-self -Winline -Winvalid-pch -Wunsafe-loop-optimizations -Wlong-long -Wmissing-braces -Wmissing-field-initializers -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wpacked -Wparentheses -Wpointer-arith -Wredundant-decls -Wreturn-type -Wsequence-point -Wsign-compare -Wstack-protector -Wstrict-aliasing -Wstrict-aliasing=2 -Wswitch -Wswitch-default -Wswitch-enum -Wtrigraphs -Wuninitialized -Wunknown-pragmas -Wunreachable-code -Wunused -Wunused-function -Wunused-label -Wunused-parameter -Wunused-value -Wunused-variable -Wvariadic-macros -Wvolatile-register-var -Wwrite-strings")
# -Wshadow spams too much :/
-SET(CMAKE_CXX_FLAGS_RELEASE "-O2 -std=c++0x" )
+SET(CMAKE_CXX_STANDARD 11)
+SET(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} -std=c++11)
# local cmake modules
SET(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
@@ -21,15 +21,14 @@ FIND_PACKAGE(Qt5 COMPONENTS Widgets Network X11Extras LinguistTools Svg REQUIRED
FIND_PACKAGE(X11 REQUIRED)
FIND_PACKAGE(VNC REQUIRED)
+SET(CMAKE_INCLUDE_CURRENT_DIR ON)
SET(CMAKE_AUTOMOC ON)
# some includes
INCLUDE_DIRECTORIES(
- ${CMAKE_SOURCE_DIR}
- ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
${X11_INCLUDE_DIR}
-# ${X11_XTest_INCLUDE_PATH}
-# ${X11_Xinput_INCLUDE_PATH}
)
IF(X11_Xscreensaver_FOUND)
@@ -91,17 +90,6 @@ FILE(GLOB PVSCLIENT_RC_SRCS
pvsclient.qrc
)
-# includes all header files that should be treated with moc
-#FILE(GLOB PVSMGR_MOC_HDRS
-# src/server/*/*.h
-#)
-
-#FILE(GLOB PVSCLIENT_MOC_HDRS
-# src/client/*.h
-# src/client/*/*.h
-# src/client/*/*/*.h
-#)
-
# i18n
FILE(GLOB PVSMGR_TSS
i18n/server/*.ts
@@ -112,21 +100,6 @@ FILE(GLOB PVSCLIENT_TSS
)
-# include Qt modules
-#SET(QT_USE_QTDBUS TRUE)
-#SET(QT_USE_QTNETWORK TRUE)
-#SET(QT_USE_QTSVG TRUE)
-#SET(QT_USE_QTWEBKIT TRUE)
-
-# add some useful macros and variables
-# (QT_USE_FILE is a variable defined by FIND_PACKAGE( Qt4 ) that contains
-# a path to CMake script)
-#INCLUDE(${QT_USE_FILE})
-
-# this will run rcc on .qrc files
-QT5_ADD_RESOURCES(PVSMGR_RCS ${PVSMGR_RC_SRCS})
-QT5_ADD_RESOURCES(PVSCLIENT_RCS ${PVSCLIENT_RC_SRCS})
-
# this will run uic on .ui files
QT5_WRAP_UI(PVSMGR_UI_HDRS ${PVSMGR_UIS})
QT5_WRAP_UI(PVSCLIENT_UI_HDRS ${PVSCLIENT_UIS})
@@ -135,24 +108,54 @@ QT5_WRAP_UI(PVSCLIENT_UI_HDRS ${PVSCLIENT_UIS})
#QT4_WRAP_CPP(PVSMGR_MOC_SRCS ${PVSMGR_MOC_HDRS})
#QT4_WRAP_CPP(PVSCLIENT_MOC_SRCS ${PVSCLIENT_MOC_HDRS})
-option(UPDATE_TRANSLATIONS "Update .ts files (WARNING: make clean will delete the .ts files!)")
+option(UPDATE_TRANSLATIONS "Update .ts files (WARNING: make clean will delete the .ts files!)" OFF)
+
if(PVSMGR_TSS)
+
if (UPDATE_TRANSLATIONS)
- QT5_CREATE_TRANSLATION(PVSMGR_QMS ${PVSMGR_SRCS} ${PVSMGR_UI_HDRS} ${PVSMGR_TSS} OPTIONS -noobsolete)
+ set(FILES_TO_TRANSLATE ${PVSMGR_SRCS} ${PVSMGR_UIS})
+ QT5_CREATE_TRANSLATION(PVSMGR_QMS ${FILES_TO_TRANSLATE} ${PVSMGR_TSS} OPTIONS -noobsolete)
message(STATUS ".tr files have been updated")
else (UPDATE_TRANSLATIONS)
QT5_ADD_TRANSLATION(PVSMGR_QMS ${PVSMGR_TSS})
endif (UPDATE_TRANSLATIONS)
+ # # write a resource file for qm files
+ # set(resource_file_content "\n \n")
+ # foreach(file ${PVSMGR_QMS})
+ # get_filename_component(filename ${file} NAME)
+ # set(resource_file_content "${resource_file_content} ${filename}\n")
+ # endforeach(file)
+ # set(resource_file_content "${resource_file_content} \n\n")
+ # file(WRITE "${CMAKE_BINARY_DIR}/ts_pvsmgr.qrc" "${resource_file_content}")
+ # set(PVSMGR_RESOURCES ${PVSMGR_RESOURCES} "${CMAKE_BINARY_DIR}/ts_pvsmgr.qrc")
+
endif(PVSMGR_TSS)
+
if(PVSCLIENT_TSS)
+
if (UPDATE_TRANSLATIONS)
- QT5_CREATE_TRANSLATION(PVSCLIENT_QMS ${PVSCLIENT_SRCS} ${PVSCLIENT_UI_HDRS} ${PVSCLIENT_TSS} OPTIONS -noobsolete)
+ set(FILES_TO_TRANSLATE ${PVSCLIENT_SRCS} ${PVSCLIENT_UIS})
+ QT5_CREATE_TRANSLATION(PVSCLIENT_QMS ${FILES_TO_TRANSLATE} ${PVSCLIENT_TSS} OPTIONS -noobsolete)
message(STATUS ".tr files have been updated")
else (UPDATE_TRANSLATIONS)
QT5_ADD_TRANSLATION(PVSCLIENT_QMS ${PVSCLIENT_TSS})
endif (UPDATE_TRANSLATIONS)
+ # # write a resource file for qm files
+ # set(resource_file_content "\n \n")
+ # foreach(file ${PVSCLIENT_QMS})
+ # get_filename_component(filename ${file} NAME)
+ # set(resource_file_content "${resource_file_content} ${filename}\n")
+ # endforeach(file)
+ # set(resource_file_content "${resource_file_content} \n\n")
+ # file(WRITE "${CMAKE_BINARY_DIR}/ts_pvsclient.qrc" "${resource_file_content}")
+ # set(PVSCLIENT_RESOURCES ${PVSCLIENT_RESOURCES} "${CMAKE_BINARY_DIR}/ts_pvsclient.qrc")
+
endif(PVSCLIENT_TSS)
+# this will run rcc on .qrc files
+QT5_ADD_RESOURCES(PVSMGR_RCS ${PVSMGR_RC_SRCS})
+QT5_ADD_RESOURCES(PVSCLIENT_RCS ${PVSCLIENT_RC_SRCS})
+
################################################################################
# Build
################################################################################
@@ -162,8 +165,8 @@ ADD_EXECUTABLE(pvsmgr
${PVSMGR_RCS}
# ${PVSMGR_MOC_SRCS}
${PVSMGR_UI_HDRS}
-# ${PVSMGR_RC_SRCS}
-# ${PVSMGR_QMS}
+ ${PVSMGR_RC_SRCS}
+ ${PVSMGR_QMS}
)
ADD_EXECUTABLE(pvsclient
@@ -171,8 +174,8 @@ ADD_EXECUTABLE(pvsclient
${PVSCLIENT_RCS}
# ${PVSCLIENT_MOC_SRCS}
${PVSCLIENT_UI_HDRS}
-# ${PVSCLIENT_RC_SRCS}
-# ${PVSCLIENT_QMS}
+ ${PVSCLIENT_RC_SRCS}
+ ${PVSCLIENT_QMS}
)
# link
diff --git a/gui/server_normal/mainwindow.ui b/gui/server_normal/mainwindow.ui
index 18685b7..cb6888a 100644
--- a/gui/server_normal/mainwindow.ui
+++ b/gui/server_normal/mainwindow.ui
@@ -11,7 +11,7 @@
- PVS2 Manager
+ PVS2 Manager
QToolButton {
@@ -48,7 +48,16 @@ QLabel#examModeLabel {
0
-
+
+ 0
+
+
+ 0
+
+
+ 0
+
+
0
-
@@ -71,7 +80,16 @@ QLabel#examModeLabel {
0
-
+
+ 0
+
+
+ 0
+
+
+ 0
+
+
0
-
diff --git a/gui/server_normal/numerickeyboard.ui b/gui/server_normal/numerickeyboard.ui
index 4e3a8dc..2f83a2b 100644
--- a/gui/server_normal/numerickeyboard.ui
+++ b/gui/server_normal/numerickeyboard.ui
@@ -32,7 +32,7 @@
- 0
+ 0
@@ -58,7 +58,7 @@
- 1
+ 1
@@ -71,7 +71,7 @@
- 8
+ 8
@@ -84,7 +84,7 @@
- 4
+ 4
@@ -97,7 +97,7 @@
- 2
+ 2
@@ -110,7 +110,7 @@
- 5
+ 5
@@ -123,7 +123,7 @@
- 7
+ 7
@@ -136,7 +136,7 @@
- 3
+ 3
@@ -149,7 +149,7 @@
- 6
+ 6
@@ -162,7 +162,7 @@
- 9
+ 9
diff --git a/i18n/client/pvsclient_ar_JO.ts b/i18n/client/pvsclient_ar_JO.ts
index 9edff17..61d4969 100644
--- a/i18n/client/pvsclient_ar_JO.ts
+++ b/i18n/client/pvsclient_ar_JO.ts
@@ -1,6 +1,6 @@
-
+
ConnectWindow
@@ -79,37 +79,37 @@
-
+
-
+
-
+
-
+
-
+
-
+
-
+
@@ -130,79 +130,79 @@
Toolbar
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
-
+
+
-
+
-
-
+
+
-
+
-
+
-
+
@@ -210,7 +210,7 @@
VncWindow
-
+
diff --git a/i18n/client/pvsclient_de_DE.ts b/i18n/client/pvsclient_de_DE.ts
index 781a84e..9695544 100644
--- a/i18n/client/pvsclient_de_DE.ts
+++ b/i18n/client/pvsclient_de_DE.ts
@@ -1,40 +1,40 @@
-
+
ConnectWindow
-
+
Verbinde zu PVS Sitzung
-
+
Verbinden
-
+
Verbinden zu
-
+
Manuelle Verbindung
-
+
Sitzungsname
-
+
Abbrechen
-
+
Verbinden
@@ -130,79 +130,79 @@
Toolbar
-
+
&Verbinden...
-
+
&Trennen
-
+
System&information
-
+
&Was ist das hier?
-
+
&Beenden
-
+
Übertragung
-
+
Offline
-
+
Über PVS Client
-
+
Der PVS - Client ist Teil eines Softwaresystems für die Steuerung des virtuellen Datenverkehrs in den Poolräumen zwischen den Dozenten- und Studenten - PCs. Es wurde zur Vereinfachung des Informationsflusses und allgemeinem eLearning entwickelt.
-
-
+
+
Online
-
+
Form
-
-
+
+
Menü
-
+
<html><head/><body><p>Diesen Rechner sperren</p></body></html>
-
+
Sperren
-
+
Wechseln
@@ -210,7 +210,7 @@
VncWindow
-
+
Verbinden...
diff --git a/i18n/client/pvsclient_es_MX.ts b/i18n/client/pvsclient_es_MX.ts
index a0e8bcc..6b1e16d 100644
--- a/i18n/client/pvsclient_es_MX.ts
+++ b/i18n/client/pvsclient_es_MX.ts
@@ -1,40 +1,40 @@
-
+
ConnectWindow
-
+
-
+
-
+
-
+
-
+
-
+
-
+
Conectar
@@ -130,79 +130,79 @@
Toolbar
-
+
-
+
&Desconectar
-
+
-
+
-
+
&Cerrar
-
+
-
+
-
+
-
+
-
-
+
+
-
+
de
-
-
+
+
Menu
-
+
-
+
-
+
@@ -210,7 +210,7 @@
VncWindow
-
+
diff --git a/i18n/client/pvsclient_fr_FR.ts b/i18n/client/pvsclient_fr_FR.ts
index 9edff17..61d4969 100644
--- a/i18n/client/pvsclient_fr_FR.ts
+++ b/i18n/client/pvsclient_fr_FR.ts
@@ -1,6 +1,6 @@
-
+
ConnectWindow
@@ -79,37 +79,37 @@
-
+
-
+
-
+
-
+
-
+
-
+
-
+
@@ -130,79 +130,79 @@
Toolbar
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
-
+
+
-
+
-
-
+
+
-
+
-
+
-
+
@@ -210,7 +210,7 @@
VncWindow
-
+
diff --git a/i18n/client/pvsclient_pl_PL.ts b/i18n/client/pvsclient_pl_PL.ts
index 9edff17..61d4969 100644
--- a/i18n/client/pvsclient_pl_PL.ts
+++ b/i18n/client/pvsclient_pl_PL.ts
@@ -1,6 +1,6 @@
-
+
ConnectWindow
@@ -79,37 +79,37 @@
-
+
-
+
-
+
-
+
-
+
-
+
-
+
@@ -130,79 +130,79 @@
Toolbar
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
-
+
+
-
+
-
-
+
+
-
+
-
+
-
+
@@ -210,7 +210,7 @@
VncWindow
-
+
diff --git a/i18n/server/pvsmgr_ar_JO.ts b/i18n/server/pvsmgr_ar_JO.ts
index a776887..1ad154e 100644
--- a/i18n/server/pvsmgr_ar_JO.ts
+++ b/i18n/server/pvsmgr_ar_JO.ts
@@ -1,10 +1,9 @@
-
+
ConnectionFrame
-
@@ -12,57 +11,46 @@
Help
-
-
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
+
-
-
+
-
-
+
-
@@ -70,297 +58,175 @@
MainWindow
-
-
-
-
-
-
-
-
+
-
-
+
-
-
+
-
-
+
-
-
+
-
-
+
-
-
+
-
-
+
-
-
+
-
-
-
-
-
+
-
-
+
-
-
+
-
-
+
-
-
+
-
-
+
-
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-
+
-
-
+
-
-
-
+
-
-
+
-
-
+
-
-
+
-
-
+
-
-
+
-
-
+
-
-
+
-
-
+
-
-
+
-
-
+
-
-
+
-
-
+
-
-
-
+
-
-
-
+
-
-
-
+
-
-
+
NumericKeyboard
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
QCoreApplication
-
CertManager
-
ReloadRoom
-
-
@@ -385,17 +249,14 @@ Press OK to quit.
SessionName
-
-
-
diff --git a/i18n/server/pvsmgr_de_DE.ts b/i18n/server/pvsmgr_de_DE.ts
index 4a3d7c3..9c6d0ae 100644
--- a/i18n/server/pvsmgr_de_DE.ts
+++ b/i18n/server/pvsmgr_de_DE.ts
@@ -1,6 +1,6 @@
-
+
ConnectionFrame
@@ -12,57 +12,57 @@
Help
-
+
Form
-
+
Lade nach Raumauswahl entsprechende Raumkonfiguration neu.
-
+
Lösche ausgewählten Client
-
+
Abbruch
-
+
Alle Projektionen abbrechen.
-
+
Projektion des ausgewählten Studierendens an Tutor; alle anderen ausblenden.
-
+
Startet Projektion von ausgewähltem Studierenden an Tutor.
-
+
Startet Projektion von Tutor an ausgewählten Studierenden.
-
+
Startet Projektion von Tutor an alle verbundenen Studierenden.
-
+
Alle verbundenen Studierendenbildschirme sperren.
-
+
Ausgewählten Klienten als Tutor festlegen.
@@ -70,216 +70,211 @@
MainWindow
-
-
+
+
Ausgang
-
+
Kein Tutor definiert.
-
+
Tutor ist offline.
-
+
Bitte eine Projektionsquelle auswählen.
-
+
Die Projektionsquelle ist offline.
-
+
Bitte ein Projektionsziel auswählen.
-
+
Das Projektionsziel ist offline.
-
+
Das ausgwählte Projektionsziel ist Tutor.
-
+
Der ausgewählte Client ist derzeit online.
-
+
Kein Projektionsziel verfügbar.
-
-
-
-
+
+
+
+
Auswahl
-
+
Dieser Client ist noch verbunden.
-
+
Sicher, dass Sie den ausgewählten Clienten löschen wollen?
-
+
Sicher, dass Sie den Sitzungsname erneut ändern wollen?
Danach werden alle Clienten gelöscht sein.
-
+
Sitzungsname: %1 [anklicken editiert]
-
+
Keine Auswahl getroffen, bitte einen Raum auswählen!
-
+
Wollen Sie den Raum wirklich neu laden? Beachten Sie, dass alle Clienten gelöscht werden.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Projektion
-
-
+
+
Kein Client ausgewählt.
-
+
Ausgewählter Client ist nicht verbunden.
-
-
+
+
Alle Klienten sperren oder entsperren
-
-
- PVS2-Manager
-
-
-
+
&Abbruch
-
+
Strg+Q
-
+
lock
-
+
Strg+A
-
+
Studierendenbildschirm an Tutor
-
+
Studierendenbildschirm an Tutor; alle anderen ausgeblendet
-
+
Tutorenbildschirm an Studierenden
-
+
Tutorenbildschirm an alle
-
+
Projektion an alle Clienten abbrechen
-
+
AlsTutorSetzen
-
+
Derzeitigen Rahmen als Tutor festlegen
-
-
+
+
Lösche Client
-
-
+
+
Hilfe
-
-
+
+
Neu laden der Raumkonfiguration
-
+
toolBar
@@ -287,70 +282,20 @@ Note that all clients will be deleted.
NumericKeyboard
-
+
GroupBox
-
+
Tastatur
-
-
- 0
-
-
-
+
C
-
-
-
- 1
-
-
-
-
- 8
-
-
-
-
- 4
-
-
-
-
- 2
-
-
-
-
- 5
-
-
-
-
- 7
-
-
-
-
- 3
-
-
-
-
- 6
-
-
-
-
- 9
-
QCoreApplication
@@ -376,12 +321,12 @@ OK beendet den PVS-Manager
ReloadRoom
-
+
Raum neu laden
-
+
Wählen Sie den neuzuladenden Raum:
@@ -389,17 +334,17 @@ OK beendet den PVS-Manager
SessionName
-
+
Sitzungsname eingeben
-
+
Neuer Sitzungsname
-
+
Zufälliger Sitzungsname
diff --git a/i18n/server/pvsmgr_es_MX.ts b/i18n/server/pvsmgr_es_MX.ts
index 829da4e..b47934f 100644
--- a/i18n/server/pvsmgr_es_MX.ts
+++ b/i18n/server/pvsmgr_es_MX.ts
@@ -1,6 +1,6 @@
-
+
ConnectionFrame
@@ -12,57 +12,57 @@
Help
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
Cancelar
@@ -70,215 +70,210 @@
MainWindow
-
-
+
+
Salir
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
-
-
-
+
+
+
+
-
+
-
+
-
+
-
+
-
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
-
+
-
-
+
+
Bloquear o desbloquear todos los clientes
-
-
-
-
-
-
+
&Salir
-
+
Ctrl+Q
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
-
+
+
-
-
+
+
-
-
+
+
-
+
bloquear
-
+
Ctrl+A
-
+
Barra de herramientas
@@ -286,70 +281,20 @@ Note that all clients will be deleted.
NumericKeyboard
-
+
-
+
-
-
-
-
-
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
QCoreApplication
@@ -372,12 +317,12 @@ Press OK to quit.
ReloadRoom
-
+
-
+
@@ -385,17 +330,17 @@ Press OK to quit.
SessionName
-
+
-
+
-
+
diff --git a/i18n/server/pvsmgr_fr_FR.ts b/i18n/server/pvsmgr_fr_FR.ts
index a776887..f41176d 100644
--- a/i18n/server/pvsmgr_fr_FR.ts
+++ b/i18n/server/pvsmgr_fr_FR.ts
@@ -1,6 +1,6 @@
-
+
ConnectionFrame
@@ -12,57 +12,57 @@
Help
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
@@ -70,215 +70,210 @@
MainWindow
-
-
+
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
-
-
-
+
+
+
+
-
+
-
+
-
+
-
+
-
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
-
+
-
-
+
+
-
-
-
-
-
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
-
+
+
-
-
+
+
-
-
+
+
-
+
@@ -286,70 +281,20 @@ Note that all clients will be deleted.
NumericKeyboard
-
+
-
+
-
-
-
-
-
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
QCoreApplication
@@ -372,12 +317,12 @@ Press OK to quit.
ReloadRoom
-
+
-
+
@@ -385,17 +330,17 @@ Press OK to quit.
SessionName
-
+
-
+
-
+
diff --git a/i18n/server/pvsmgr_pl_PL.ts b/i18n/server/pvsmgr_pl_PL.ts
index a776887..f41176d 100644
--- a/i18n/server/pvsmgr_pl_PL.ts
+++ b/i18n/server/pvsmgr_pl_PL.ts
@@ -1,6 +1,6 @@
-
+
ConnectionFrame
@@ -12,57 +12,57 @@
Help
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
@@ -70,215 +70,210 @@
MainWindow
-
-
+
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
-
-
-
+
+
+
+
-
+
-
+
-
+
-
+
-
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
-
+
-
-
+
+
-
-
-
-
-
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
-
+
+
-
-
+
+
-
-
+
+
-
+
@@ -286,70 +281,20 @@ Note that all clients will be deleted.
NumericKeyboard
-
+
-
+
-
-
-
-
-
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
QCoreApplication
@@ -372,12 +317,12 @@ Press OK to quit.
ReloadRoom
-
+
-
+
@@ -385,17 +330,17 @@ Press OK to quit.
SessionName
-
+
-
+
-
+
diff --git a/pvsmgr.qrc b/pvsmgr.qrc
index 272b9ff..f117322 100644
--- a/pvsmgr.qrc
+++ b/pvsmgr.qrc
@@ -1,5 +1,5 @@
-
+
icons/exit.svg
icons/terminal.svg
icons/photo.svg
@@ -15,21 +15,16 @@
icons/keyboard_key.svg
icons/student2tutor_extension.svg
icons/help.svg
- icons/trash.svg
+ icons/trash.svg
icons/reloadClassroom.svg
AUTHORS
- build/pvsmgr_de_DE.qm
- build/pvsmgr_de_DE.qm
- build/pvsmgr_fr_FR.qm
- build/pvsmgr_fr_FR.qm
- build/pvsmgr_es_MX.qm
- build/pvsmgr_es_MX.qm
- build/pvsmgr_ar_JO.qm
- build/pvsmgr_ar_JO.qm
- build/pvsmgr_pl_PL.qm
- build/pvsmgr_pl_PL.qm
icons/cf_icon_cam.svg
icons/cf_icon_eye.svg
icons/cf_icon_lock.svg
+ build/pvsmgr_de_DE.qm
+ build/pvsmgr_fr_FR.qm
+ build/pvsmgr_es_MX.qm
+ build/pvsmgr_ar_JO.qm
+ build/pvsmgr_pl_PL.qm
diff --git a/sample_configuration/switchToManager.sh b/sample_configuration/switchToManager.sh
index 84f3c37..40d863c 100755
--- a/sample_configuration/switchToManager.sh
+++ b/sample_configuration/switchToManager.sh
@@ -7,7 +7,7 @@ for window in $WINDOWS; do
done
# move PVS-Manager to workspace 1 and focus it
-wt="PVS2-Manager"
+wt="PVS2 Manager"
wmctrl -r "$wt" -t 1
wmctrl -s 1
wmctrl -a "$wt"
diff --git a/src/server/serverapp/serverapp.cpp b/src/server/serverapp/serverapp.cpp
index 3df996c..7ee06e0 100644
--- a/src/server/serverapp/serverapp.cpp
+++ b/src/server/serverapp/serverapp.cpp
@@ -28,19 +28,17 @@ ServerApp::ServerApp(int& argc, char** argv)
// System strings
QTranslator *qtTranslator = new QTranslator(this);
- qtTranslator->load("qt_" + QLocale::system().name(),
- QLibraryInfo::location(QLibraryInfo::TranslationsPath));
+ qtTranslator->load(QLocale::system(), "qt", "_", QLibraryInfo::location(QLibraryInfo::TranslationsPath));
installTranslator(qtTranslator);
// App specific
QTranslator *translator = new QTranslator(this);
- translator->load(":pvsmgr");
+ translator->load(QLocale::system(), ":", "l_");
installTranslator(translator);
/* Set the global path of the settings */
QSettings::setPath(QSettings::IniFormat, QSettings::SystemScope, "/opt/");
QSharedPointer sys = getSettings();
qDebug() << "System settings are in:" << sys->fileName();
- QFileInfo sysfi(sys->fileName());
_mainWindow = new MainWindow();
}
--
cgit v1.2.3-55-g7522