Skip to content

Commit

Permalink
Refs #3. Added translations files and structure.
Browse files Browse the repository at this point in the history
  • Loading branch information
SBriere committed Apr 10, 2024
1 parent 7e93323 commit 7614df9
Show file tree
Hide file tree
Showing 3 changed files with 743 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Frontend/DashboardsViewer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ find_package(Qt6 REQUIRED COMPONENTS Core Gui Qml Quick Websockets)
qt_policy(SET QTP0001 NEW)

if (Qt6_VERSION VERSION_GREATER_EQUAL 6.3)
qt_standard_project_setup()
qt_standard_project_setup(I18N_TRANSLATED_LANGUAGES en fr)
endif()


Expand All @@ -33,6 +33,8 @@ add_subdirectory(qml_cpp_modules)

qt_add_executable(DashboardsViewerApp src/main.cpp)

qt_add_translations(TARGETS DashboardsViewerApp TS_FILE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/translations)

qt_add_resources(DashboardsViewerApp "configuration"
PREFIX "/"
FILES
Expand Down
370 changes: 370 additions & 0 deletions Frontend/DashboardsViewer/translations/DashboardsViewerApp_en.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,370 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1">
<context>
<name>App</name>
<message>
<location filename="../content/App.qml" line="52"/>
<location filename="../../../../build-opentera-dashboards-debug/qml/content/App.qml" line="52"/>
<source>Back</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../content/App.qml" line="90"/>
<location filename="../../../../build-opentera-dashboards-debug/qml/content/App.qml" line="90"/>
<source>Logout</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>BaseComManager</name>
<message>
<location filename="../submodules/opentera-libraries/cpp/clients/common/src/BaseComManager.cpp" line="627"/>
<location filename="../submodules/opentera-libraries/cpp/clients/common/src/BaseComManager.cpp" line="651"/>
<source>Impossible de créer la requête</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>DashboardSelector</name>
<message>
<location filename="../content/screens/DashboardSelector.qml" line="157"/>
<location filename="../../../../build-opentera-dashboards-debug/qml/content/screens/DashboardSelector.qml" line="157"/>
<source>Select dashboard to display</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../content/screens/DashboardSelector.qml" line="207"/>
<location filename="../../../../build-opentera-dashboards-debug/qml/content/screens/DashboardSelector.qml" line="207"/>
<source>Site</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../content/screens/DashboardSelector.qml" line="250"/>
<location filename="../../../../build-opentera-dashboards-debug/qml/content/screens/DashboardSelector.qml" line="250"/>
<source>Project</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../content/screens/DashboardSelector.qml" line="359"/>
<location filename="../../../../build-opentera-dashboards-debug/qml/content/screens/DashboardSelector.qml" line="359"/>
<source>Test Mode</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../content/screens/DashboardSelector.qml" line="363"/>
<location filename="../../../../build-opentera-dashboards-debug/qml/content/screens/DashboardSelector.qml" line="363"/>
<source>TestMode</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>DownloadingFile</name>
<message>
<location filename="../submodules/opentera-libraries/cpp/clients/common/src/DownloadingFile.cpp" line="81"/>
<source>Impossible de déterminer le nom du fichier à télécharger.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../submodules/opentera-libraries/cpp/clients/common/src/DownloadingFile.cpp" line="87"/>
<source>Mauvaise en-tête pour le téléchargement du fichier.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../submodules/opentera-libraries/cpp/clients/common/src/DownloadingFile.cpp" line="114"/>
<source>Impossible d&apos;ouvrir le fichier &apos;</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>EventSimulator</name>
<message>
<location filename="../../../../build-opentera-dashboards-debug/_deps/ds-src/src/imports/tools/eventsimulator/EventSimulator.qml" line="119"/>
<location filename="../../../../build-opentera-dashboards-debug/_deps/ds-src/src/imports/tools/eventsimulator/EventSimulator.qml" line="144"/>
<location filename="../../../../build-opentera-dashboards-debug/qml/QtQuick/Studio/EventSimulator/EventSimulator.qml" line="119"/>
<location filename="../../../../build-opentera-dashboards-debug/qml/QtQuick/Studio/EventSimulator/EventSimulator.qml" line="144"/>
<source>Filter...</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>FlowDecision</name>
<message>
<location filename="../../../../build-opentera-dashboards-debug/_deps/ds-src/src/imports/flowview/FlowDecision.qml" line="41"/>
<location filename="../../../../build-opentera-dashboards-debug/qml/FlowView/FlowDecision.qml" line="41"/>
<source>Title</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>Login</name>
<message>
<location filename="../content/screens/Login.qml" line="19"/>
<location filename="../../../../build-opentera-dashboards-debug/qml/content/screens/Login.qml" line="19"/>
<source>Logging in...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../content/screens/Login.qml" line="37"/>
<location filename="../../../../build-opentera-dashboards-debug/qml/content/screens/Login.qml" line="37"/>
<source>Welcome!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../content/screens/Login.qml" line="147"/>
<location filename="../../../../build-opentera-dashboards-debug/qml/content/screens/Login.qml" line="147"/>
<source>Username</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../content/screens/Login.qml" line="181"/>
<location filename="../../../../build-opentera-dashboards-debug/qml/content/screens/Login.qml" line="181"/>
<source>Password</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../content/screens/Login.qml" line="225"/>
<location filename="../../../../build-opentera-dashboards-debug/qml/content/screens/Login.qml" line="225"/>
<source>Login</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../content/screens/Login.qml" line="238"/>
<location filename="../../../../build-opentera-dashboards-debug/qml/content/screens/Login.qml" line="238"/>
<source>Welcome! Please login.</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>ParticipantDelegate</name>
<message>
<location filename="../content/delegates/ParticipantDelegate.qml" line="121"/>
<location filename="../../../../build-opentera-dashboards-debug/qml/content/delegates/ParticipantDelegate.qml" line="121"/>
<source>Last session</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>SessionDelegate</name>
<message>
<location filename="../content/delegates/SessionDelegate.qml" line="154"/>
<location filename="../../../../build-opentera-dashboards-debug/qml/content/delegates/SessionDelegate.qml" line="154"/>
<source>Completed</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../content/delegates/SessionDelegate.qml" line="160"/>
<location filename="../../../../build-opentera-dashboards-debug/qml/content/delegates/SessionDelegate.qml" line="160"/>
<source>Cancelled</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../content/delegates/SessionDelegate.qml" line="166"/>
<location filename="../../../../build-opentera-dashboards-debug/qml/content/delegates/SessionDelegate.qml" line="166"/>
<source>Terminated</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../content/delegates/SessionDelegate.qml" line="172"/>
<location filename="../../../../build-opentera-dashboards-debug/qml/content/delegates/SessionDelegate.qml" line="172"/>
<source>In progress</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../content/delegates/SessionDelegate.qml" line="178"/>
<location filename="../../../../build-opentera-dashboards-debug/qml/content/delegates/SessionDelegate.qml" line="178"/>
<source>Planned</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>SessionEventDelegate</name>
<message>
<location filename="../content/delegates/SessionEventDelegate.qml" line="51"/>
<location filename="../content/delegates/SessionEventDelegate.qml" line="54"/>
<location filename="../../../../build-opentera-dashboards-debug/qml/content/delegates/SessionEventDelegate.qml" line="51"/>
<location filename="../../../../build-opentera-dashboards-debug/qml/content/delegates/SessionEventDelegate.qml" line="54"/>
<source>Error</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../content/delegates/SessionEventDelegate.qml" line="56"/>
<location filename="../../../../build-opentera-dashboards-debug/qml/content/delegates/SessionEventDelegate.qml" line="56"/>
<source>Warning</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../content/delegates/SessionEventDelegate.qml" line="58"/>
<location filename="../../../../build-opentera-dashboards-debug/qml/content/delegates/SessionEventDelegate.qml" line="58"/>
<source>Session started</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../content/delegates/SessionEventDelegate.qml" line="60"/>
<location filename="../../../../build-opentera-dashboards-debug/qml/content/delegates/SessionEventDelegate.qml" line="60"/>
<source>Session stopped</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../content/delegates/SessionEventDelegate.qml" line="62"/>
<location filename="../../../../build-opentera-dashboards-debug/qml/content/delegates/SessionEventDelegate.qml" line="62"/>
<source>Battery charging started</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../content/delegates/SessionEventDelegate.qml" line="64"/>
<location filename="../../../../build-opentera-dashboards-debug/qml/content/delegates/SessionEventDelegate.qml" line="64"/>
<source>Battery charging stopped</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../content/delegates/SessionEventDelegate.qml" line="66"/>
<location filename="../../../../build-opentera-dashboards-debug/qml/content/delegates/SessionEventDelegate.qml" line="66"/>
<source>Battery low</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../content/delegates/SessionEventDelegate.qml" line="68"/>
<location filename="../../../../build-opentera-dashboards-debug/qml/content/delegates/SessionEventDelegate.qml" line="68"/>
<source>Storage low</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../content/delegates/SessionEventDelegate.qml" line="70"/>
<location filename="../../../../build-opentera-dashboards-debug/qml/content/delegates/SessionEventDelegate.qml" line="70"/>
<source>Storage full</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../content/delegates/SessionEventDelegate.qml" line="72"/>
<location filename="../../../../build-opentera-dashboards-debug/qml/content/delegates/SessionEventDelegate.qml" line="72"/>
<source>Device event</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../content/delegates/SessionEventDelegate.qml" line="74"/>
<location filename="../../../../build-opentera-dashboards-debug/qml/content/delegates/SessionEventDelegate.qml" line="74"/>
<source>User event</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../content/delegates/SessionEventDelegate.qml" line="76"/>
<location filename="../../../../build-opentera-dashboards-debug/qml/content/delegates/SessionEventDelegate.qml" line="76"/>
<source>Session joined</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../content/delegates/SessionEventDelegate.qml" line="78"/>
<location filename="../../../../build-opentera-dashboards-debug/qml/content/delegates/SessionEventDelegate.qml" line="78"/>
<source>Session left</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../content/delegates/SessionEventDelegate.qml" line="80"/>
<location filename="../../../../build-opentera-dashboards-debug/qml/content/delegates/SessionEventDelegate.qml" line="80"/>
<source>Session refused</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../content/delegates/SessionEventDelegate.qml" line="82"/>
<location filename="../../../../build-opentera-dashboards-debug/qml/content/delegates/SessionEventDelegate.qml" line="82"/>
<source>Other</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>SessionViewerWidget</name>
<message>
<location filename="../content/widgets/SessionViewerWidget.qml" line="46"/>
<location filename="../../../../build-opentera-dashboards-debug/qml/content/widgets/SessionViewerWidget.qml" line="46"/>
<source>Completed</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../content/widgets/SessionViewerWidget.qml" line="53"/>
<location filename="../../../../build-opentera-dashboards-debug/qml/content/widgets/SessionViewerWidget.qml" line="53"/>
<source>Cancelled</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../content/widgets/SessionViewerWidget.qml" line="60"/>
<location filename="../../../../build-opentera-dashboards-debug/qml/content/widgets/SessionViewerWidget.qml" line="60"/>
<source>Terminated</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../content/widgets/SessionViewerWidget.qml" line="67"/>
<location filename="../../../../build-opentera-dashboards-debug/qml/content/widgets/SessionViewerWidget.qml" line="67"/>
<source>In progress</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../content/widgets/SessionViewerWidget.qml" line="74"/>
<location filename="../../../../build-opentera-dashboards-debug/qml/content/widgets/SessionViewerWidget.qml" line="74"/>
<source>Planned</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../content/widgets/SessionViewerWidget.qml" line="189"/>
<location filename="../../../../build-opentera-dashboards-debug/qml/content/widgets/SessionViewerWidget.qml" line="189"/>
<source>Assets</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../content/widgets/SessionViewerWidget.qml" line="197"/>
<location filename="../../../../build-opentera-dashboards-debug/qml/content/widgets/SessionViewerWidget.qml" line="197"/>
<source>No assets</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>TimeLineWidget</name>
<message>
<location filename="../content/widgets/TimeLineWidget.qml" line="112"/>
<location filename="../../../../build-opentera-dashboards-debug/qml/content/widgets/TimeLineWidget.qml" line="112"/>
<source>All</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../content/widgets/TimeLineWidget.qml" line="117"/>
<location filename="../../../../build-opentera-dashboards-debug/qml/content/widgets/TimeLineWidget.qml" line="117"/>
<source>Week</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../content/widgets/TimeLineWidget.qml" line="277"/>
<location filename="../../../../build-opentera-dashboards-debug/qml/content/widgets/TimeLineWidget.qml" line="277"/>
<source>No data for that period</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>TransferringFile</name>
<message>
<location filename="../submodules/opentera-libraries/cpp/clients/common/src/TransferringFile.cpp" line="79"/>
<source>Transfert annulé</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>UploadingFile</name>
<message>
<location filename="../submodules/opentera-libraries/cpp/clients/common/src/UploadingFile.cpp" line="30"/>
<source>Impossible d&apos;envoyer le fichier</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../submodules/opentera-libraries/cpp/clients/common/src/UploadingFile.cpp" line="30"/>
<source>le fichier est introuvable.</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>UserComManager</name>
<message>
<location filename="../submodules/opentera-libraries/cpp/clients/user/src/UserComManager.cpp" line="217"/>
<source>Invalid username or password.</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>
Loading

0 comments on commit 7614df9

Please sign in to comment.