From 9f530fdfae3e60c10933e6ced2b155d3164587ff Mon Sep 17 00:00:00 2001
From: Martin Eckleben <1571683+Martin-Eckleben@users.noreply.github.com>
Date: Mon, 7 Sep 2020 14:28:43 +0200
Subject: [PATCH] added translation for CLI --help output (#839)
* added translation for CLI --help output
* improved formatting with clang-format
---
data/translations/Internationalization_ca.ts | 165 +++++++++++++++++-
.../Internationalization_de_DE.ts | 165 +++++++++++++++++-
data/translations/Internationalization_es.ts | 165 +++++++++++++++++-
data/translations/Internationalization_fr.ts | 165 +++++++++++++++++-
data/translations/Internationalization_hu.ts | 130 ++++++++++++++
data/translations/Internationalization_ja.ts | 165 +++++++++++++++++-
data/translations/Internationalization_ka.ts | 165 +++++++++++++++++-
data/translations/Internationalization_nl.ts | 165 +++++++++++++++++-
data/translations/Internationalization_pl.ts | 165 +++++++++++++++++-
.../Internationalization_pt_br.ts | 165 +++++++++++++++++-
data/translations/Internationalization_ru.ts | 165 +++++++++++++++++-
data/translations/Internationalization_sk.ts | 165 +++++++++++++++++-
data/translations/Internationalization_sr.ts | 165 +++++++++++++++++-
data/translations/Internationalization_tr.ts | 165 +++++++++++++++++-
data/translations/Internationalization_uk.ts | 165 +++++++++++++++++-
.../Internationalization_zh_CN.ts | 165 +++++++++++++++++-
.../Internationalization_zh_TW.ts | 165 +++++++++++++++++-
src/cli/commandlineparser.cpp | 15 +-
src/main.cpp | 81 +++++----
19 files changed, 2786 insertions(+), 80 deletions(-)
diff --git a/data/translations/Internationalization_ca.ts b/data/translations/Internationalization_ca.ts
index fab70abe..629a675c 100644
--- a/data/translations/Internationalization_ca.ts
+++ b/data/translations/Internationalization_ca.ts
@@ -638,12 +638,12 @@ Press Space to open the side panel.
PixelateTool
-
+ Pixelate
-
+ Set Pixelate as the paint tool
@@ -676,6 +676,137 @@ Press Space to open the side panel.
Unable to connect via DBusNo es pot connectar mitjançant DBus
+
+
+ Powerful yet simple to use screenshot software.
+
+
+
+
+ See
+
+
+
+
+ Capture the entire desktop.
+
+
+
+
+ Open the capture launcher.
+
+
+
+
+ Start a manual capture in GUI mode.
+
+
+
+
+ Configure
+
+
+
+
+ Capture a single screen.
+
+
+
+
+ Path where the capture will be saved
+
+
+
+
+ Save the capture to the clipboard
+
+
+
+
+ Delay time in milliseconds
+
+
+
+
+ Set the filename pattern
+
+
+
+
+ Enable or disable the trayicon
+
+
+
+
+ Enable or disable run at startup
+
+
+
+
+ Show the help message in the capture mode
+
+
+
+
+ Define the main UI color
+
+
+
+
+ Define the contrast UI color
+
+
+
+
+ Print raw PNG capture
+
+
+
+
+ Define the screen to capture
+
+
+
+
+ default: screen containing the cursor
+
+
+
+
+ Screen number
+
+
+
+
+ Invalid color, this flag supports the following formats:
+- #RGB (each of R, G, and B is a single hex digit)
+- #RRGGBB
+- #RRRGGGBBB
+- #RRRRGGGGBBBB
+- Named colors like 'blue' or 'red'
+You may need to escape the '#' sign as in '\#FFF'
+
+
+
+
+ Invalid delay, it must be higher than 0
+
+
+
+
+ Invalid screen number, it must be non negative
+
+
+
+
+ Invalid path, it must be a real path in the system
+
+
+
+
+ Invalid value, it must be defined as 'true' or 'false'
+
+ Error
@@ -696,6 +827,36 @@ Press Space to open the side panel.
URL copied to clipboard.L'URL s'ha copiat al porta-retalls.
+
+
+ Options
+
+
+
+
+ Arguments
+
+
+
+
+ arguments
+
+
+
+
+ Usage
+
+
+
+
+ options
+
+
+
+
+ Per default runs Flameshot in the background and adds a tray icon for configuration.
+
+ RectangleTool
diff --git a/data/translations/Internationalization_de_DE.ts b/data/translations/Internationalization_de_DE.ts
index 47d82d11..d501cb42 100644
--- a/data/translations/Internationalization_de_DE.ts
+++ b/data/translations/Internationalization_de_DE.ts
@@ -641,12 +641,12 @@ Drücke die Leertaste um das Seitenmenü zu öffnen.
PixelateTool
-
+ Pixelate
-
+ Set Pixelate as the paint tool
@@ -684,6 +684,137 @@ Drücke die Leertaste um das Seitenmenü zu öffnen.
Unable to connect via DBusKann nicht via DBus verbinden
+
+
+ Powerful yet simple to use screenshot software.
+
+
+
+
+ See
+
+
+
+
+ Capture the entire desktop.
+
+
+
+
+ Open the capture launcher.
+
+
+
+
+ Start a manual capture in GUI mode.
+
+
+
+
+ Configure
+
+
+
+
+ Capture a single screen.
+
+
+
+
+ Path where the capture will be saved
+
+
+
+
+ Save the capture to the clipboard
+
+
+
+
+ Delay time in milliseconds
+
+
+
+
+ Set the filename pattern
+
+
+
+
+ Enable or disable the trayicon
+
+
+
+
+ Enable or disable run at startup
+
+
+
+
+ Show the help message in the capture mode
+
+
+
+
+ Define the main UI color
+
+
+
+
+ Define the contrast UI color
+
+
+
+
+ Print raw PNG capture
+
+
+
+
+ Define the screen to capture
+
+
+
+
+ default: screen containing the cursor
+
+
+
+
+ Screen number
+
+
+
+
+ Invalid color, this flag supports the following formats:
+- #RGB (each of R, G, and B is a single hex digit)
+- #RRGGBB
+- #RRRGGGBBB
+- #RRRRGGGGBBBB
+- Named colors like 'blue' or 'red'
+You may need to escape the '#' sign as in '\#FFF'
+
+
+
+
+ Invalid delay, it must be higher than 0
+
+
+
+
+ Invalid screen number, it must be non negative
+
+
+
+
+ Invalid path, it must be a real path in the system
+
+
+
+
+ Invalid value, it must be defined as 'true' or 'false'
+
+ Error
@@ -699,6 +830,36 @@ Drücke die Leertaste um das Seitenmenü zu öffnen.
URL copied to clipboard.URL kopiert.
+
+
+ Options
+
+
+
+
+ Arguments
+
+
+
+
+ arguments
+
+
+
+
+ Usage
+
+
+
+
+ options
+
+
+
+
+ Per default runs Flameshot in the background and adds a tray icon for configuration.
+
+ RectangleTool
diff --git a/data/translations/Internationalization_es.ts b/data/translations/Internationalization_es.ts
index 2254bb33..51ff4225 100644
--- a/data/translations/Internationalization_es.ts
+++ b/data/translations/Internationalization_es.ts
@@ -641,12 +641,12 @@ Presiona Espacio para abrir el panel lateral.
PixelateTool
-
+ Pixelate
-
+ Set Pixelate as the paint tool
@@ -684,6 +684,137 @@ Presiona Espacio para abrir el panel lateral.
Unable to connect via DBusImposible conectar mediante DBus
+
+
+ Powerful yet simple to use screenshot software.
+
+
+
+
+ See
+
+
+
+
+ Capture the entire desktop.
+
+
+
+
+ Open the capture launcher.
+
+
+
+
+ Start a manual capture in GUI mode.
+
+
+
+
+ Configure
+
+
+
+
+ Capture a single screen.
+
+
+
+
+ Path where the capture will be saved
+
+
+
+
+ Save the capture to the clipboard
+
+
+
+
+ Delay time in milliseconds
+
+
+
+
+ Set the filename pattern
+
+
+
+
+ Enable or disable the trayicon
+
+
+
+
+ Enable or disable run at startup
+
+
+
+
+ Show the help message in the capture mode
+
+
+
+
+ Define the main UI color
+
+
+
+
+ Define the contrast UI color
+
+
+
+
+ Print raw PNG capture
+
+
+
+
+ Define the screen to capture
+
+
+
+
+ default: screen containing the cursor
+
+
+
+
+ Screen number
+
+
+
+
+ Invalid color, this flag supports the following formats:
+- #RGB (each of R, G, and B is a single hex digit)
+- #RRGGBB
+- #RRRGGGBBB
+- #RRRRGGGGBBBB
+- Named colors like 'blue' or 'red'
+You may need to escape the '#' sign as in '\#FFF'
+
+
+
+
+ Invalid delay, it must be higher than 0
+
+
+
+
+ Invalid screen number, it must be non negative
+
+
+
+
+ Invalid path, it must be a real path in the system
+
+
+
+
+ Invalid value, it must be defined as 'true' or 'false'
+
+ Error
@@ -699,6 +830,36 @@ Presiona Espacio para abrir el panel lateral.
URL copied to clipboard.URL copiada al portapapeles.
+
+
+ Options
+
+
+
+
+ Arguments
+
+
+
+
+ arguments
+
+
+
+
+ Usage
+
+
+
+
+ options
+
+
+
+
+ Per default runs Flameshot in the background and adds a tray icon for configuration.
+
+ RectangleTool
diff --git a/data/translations/Internationalization_fr.ts b/data/translations/Internationalization_fr.ts
index 8a204a40..b81311e3 100644
--- a/data/translations/Internationalization_fr.ts
+++ b/data/translations/Internationalization_fr.ts
@@ -641,12 +641,12 @@ Appuyer sur Espace pour ouvrir le panneau latéral.
PixelateTool
-
+ Pixelate
-
+ Set Pixelate as the paint tool
@@ -684,6 +684,137 @@ Appuyer sur Espace pour ouvrir le panneau latéral.
Unable to connect via DBusImpossible de se connecter via DBus
+
+
+ Powerful yet simple to use screenshot software.
+
+
+
+
+ See
+
+
+
+
+ Capture the entire desktop.
+
+
+
+
+ Open the capture launcher.
+
+
+
+
+ Start a manual capture in GUI mode.
+
+
+
+
+ Configure
+
+
+
+
+ Capture a single screen.
+
+
+
+
+ Path where the capture will be saved
+
+
+
+
+ Save the capture to the clipboard
+
+
+
+
+ Delay time in milliseconds
+
+
+
+
+ Set the filename pattern
+
+
+
+
+ Enable or disable the trayicon
+
+
+
+
+ Enable or disable run at startup
+
+
+
+
+ Show the help message in the capture mode
+
+
+
+
+ Define the main UI color
+
+
+
+
+ Define the contrast UI color
+
+
+
+
+ Print raw PNG capture
+
+
+
+
+ Define the screen to capture
+
+
+
+
+ default: screen containing the cursor
+
+
+
+
+ Screen number
+
+
+
+
+ Invalid color, this flag supports the following formats:
+- #RGB (each of R, G, and B is a single hex digit)
+- #RRGGBB
+- #RRRGGGBBB
+- #RRRRGGGGBBBB
+- Named colors like 'blue' or 'red'
+You may need to escape the '#' sign as in '\#FFF'
+
+
+
+
+ Invalid delay, it must be higher than 0
+
+
+
+
+ Invalid screen number, it must be non negative
+
+
+
+
+ Invalid path, it must be a real path in the system
+
+
+
+
+ Invalid value, it must be defined as 'true' or 'false'
+
+ Error
@@ -699,6 +830,36 @@ Appuyer sur Espace pour ouvrir le panneau latéral.
URL copied to clipboard.URL copiée dans le Presse-papier.
+
+
+ Options
+
+
+
+
+ Arguments
+
+
+
+
+ arguments
+
+
+
+
+ Usage
+
+
+
+
+ options
+
+
+
+
+ Per default runs Flameshot in the background and adds a tray icon for configuration.
+
+ RectangleTool
diff --git a/data/translations/Internationalization_hu.ts b/data/translations/Internationalization_hu.ts
index 9c7111d3..9f04d5c6 100644
--- a/data/translations/Internationalization_hu.ts
+++ b/data/translations/Internationalization_hu.ts
@@ -592,6 +592,136 @@ Press Space to open the side panel.
URL copied to clipboard.URL másolva a vágólapra.
+
+ Options
+
+
+
+ Arguments
+
+
+
+ arguments
+
+
+
+ Usage
+
+
+
+ options
+
+
+
+ Per default runs Flameshot in the background and adds a tray icon for configuration.
+
+
+
+ Powerful yet simple to use screenshot software.
+
+
+
+ See
+
+
+
+ Capture the entire desktop.
+
+
+
+ Open the capture launcher.
+
+
+
+ Start a manual capture in GUI mode.
+
+
+
+ Configure
+
+
+
+ Capture a single screen.
+
+
+
+ Path where the capture will be saved
+
+
+
+ Save the capture to the clipboard
+
+
+
+ Delay time in milliseconds
+
+
+
+ Set the filename pattern
+
+
+
+ Enable or disable the trayicon
+
+
+
+ Enable or disable run at startup
+
+
+
+ Show the help message in the capture mode
+
+
+
+ Define the main UI color
+
+
+
+ Define the contrast UI color
+
+
+
+ Print raw PNG capture
+
+
+
+ Define the screen to capture
+
+
+
+ default: screen containing the cursor
+
+
+
+ Screen number
+
+
+
+ Invalid color, this flag supports the following formats:
+- #RGB (each of R, G, and B is a single hex digit)
+- #RRGGBB
+- #RRRGGGBBB
+- #RRRRGGGGBBBB
+- Named colors like 'blue' or 'red'
+You may need to escape the '#' sign as in '\#FFF'
+
+
+
+ Invalid delay, it must be higher than 0
+
+
+
+ Invalid screen number, it must be non negative
+
+
+
+ Invalid path, it must be a real path in the system
+
+
+
+ Invalid value, it must be defined as 'true' or 'false'
+
+ RectangleTool
diff --git a/data/translations/Internationalization_ja.ts b/data/translations/Internationalization_ja.ts
index ca7dbe00..88c06c29 100644
--- a/data/translations/Internationalization_ja.ts
+++ b/data/translations/Internationalization_ja.ts
@@ -641,12 +641,12 @@ Enter を押すと画面をキャプチャー。
PixelateTool
-
+ Pixelate
-
+ Set Pixelate as the paint tool
@@ -684,6 +684,137 @@ Enter を押すと画面をキャプチャー。
Unable to connect via DBusDBus に接続できません
+
+
+ Powerful yet simple to use screenshot software.
+
+
+
+
+ See
+
+
+
+
+ Capture the entire desktop.
+
+
+
+
+ Open the capture launcher.
+
+
+
+
+ Start a manual capture in GUI mode.
+
+
+
+
+ Configure
+
+
+
+
+ Capture a single screen.
+
+
+
+
+ Path where the capture will be saved
+
+
+
+
+ Save the capture to the clipboard
+
+
+
+
+ Delay time in milliseconds
+
+
+
+
+ Set the filename pattern
+
+
+
+
+ Enable or disable the trayicon
+
+
+
+
+ Enable or disable run at startup
+
+
+
+
+ Show the help message in the capture mode
+
+
+
+
+ Define the main UI color
+
+
+
+
+ Define the contrast UI color
+
+
+
+
+ Print raw PNG capture
+
+
+
+
+ Define the screen to capture
+
+
+
+
+ default: screen containing the cursor
+
+
+
+
+ Screen number
+
+
+
+
+ Invalid color, this flag supports the following formats:
+- #RGB (each of R, G, and B is a single hex digit)
+- #RRGGBB
+- #RRRGGGBBB
+- #RRRRGGGGBBBB
+- Named colors like 'blue' or 'red'
+You may need to escape the '#' sign as in '\#FFF'
+
+
+
+
+ Invalid delay, it must be higher than 0
+
+
+
+
+ Invalid screen number, it must be non negative
+
+
+
+
+ Invalid path, it must be a real path in the system
+
+
+
+
+ Invalid value, it must be defined as 'true' or 'false'
+
+ Error
@@ -699,6 +830,36 @@ Enter を押すと画面をキャプチャー。
URL copied to clipboard.URL をクリップボードにコピーしました。
+
+
+ Options
+
+
+
+
+ Arguments
+
+
+
+
+ arguments
+
+
+
+
+ Usage
+
+
+
+
+ options
+
+
+
+
+ Per default runs Flameshot in the background and adds a tray icon for configuration.
+
+ RectangleTool
diff --git a/data/translations/Internationalization_ka.ts b/data/translations/Internationalization_ka.ts
index 9e2300b4..c10fdf5d 100644
--- a/data/translations/Internationalization_ka.ts
+++ b/data/translations/Internationalization_ka.ts
@@ -637,12 +637,12 @@ Press Space to open the side panel.
PixelateTool
-
+ Pixelate
-
+ Set Pixelate as the paint tool
@@ -680,6 +680,137 @@ Press Space to open the side panel.
Unable to connect via DBusDBus-ით დაკავშირება ვერ მოხერხდა
+
+
+ Powerful yet simple to use screenshot software.
+
+
+
+
+ See
+
+
+
+
+ Capture the entire desktop.
+
+
+
+
+ Open the capture launcher.
+
+
+
+
+ Start a manual capture in GUI mode.
+
+
+
+
+ Configure
+
+
+
+
+ Capture a single screen.
+
+
+
+
+ Path where the capture will be saved
+
+
+
+
+ Save the capture to the clipboard
+
+
+
+
+ Delay time in milliseconds
+
+
+
+
+ Set the filename pattern
+
+
+
+
+ Enable or disable the trayicon
+
+
+
+
+ Enable or disable run at startup
+
+
+
+
+ Show the help message in the capture mode
+
+
+
+
+ Define the main UI color
+
+
+
+
+ Define the contrast UI color
+
+
+
+
+ Print raw PNG capture
+
+
+
+
+ Define the screen to capture
+
+
+
+
+ default: screen containing the cursor
+
+
+
+
+ Screen number
+
+
+
+
+ Invalid color, this flag supports the following formats:
+- #RGB (each of R, G, and B is a single hex digit)
+- #RRGGBB
+- #RRRGGGBBB
+- #RRRRGGGGBBBB
+- Named colors like 'blue' or 'red'
+You may need to escape the '#' sign as in '\#FFF'
+
+
+
+
+ Invalid delay, it must be higher than 0
+
+
+
+
+ Invalid screen number, it must be non negative
+
+
+
+
+ Invalid path, it must be a real path in the system
+
+
+
+
+ Invalid value, it must be defined as 'true' or 'false'
+
+ Error
@@ -695,6 +826,36 @@ Press Space to open the side panel.
URL copied to clipboard.URL დაკოპირდა გაცვლის ბუფერში.
+
+
+ Options
+
+
+
+
+ Arguments
+
+
+
+
+ arguments
+
+
+
+
+ Usage
+
+
+
+
+ options
+
+
+
+
+ Per default runs Flameshot in the background and adds a tray icon for configuration.
+
+ RectangleTool
diff --git a/data/translations/Internationalization_nl.ts b/data/translations/Internationalization_nl.ts
index a7a48f0e..848d7e8e 100644
--- a/data/translations/Internationalization_nl.ts
+++ b/data/translations/Internationalization_nl.ts
@@ -641,12 +641,12 @@ Druk op spatie om het zijpaneel te openen.
PixelateTool
-
+ Pixelate
-
+ Set Pixelate as the paint tool
@@ -684,6 +684,137 @@ Druk op spatie om het zijpaneel te openen.
Unable to connect via DBusKan niet verbinden via DBus
+
+
+ Powerful yet simple to use screenshot software.
+
+
+
+
+ See
+
+
+
+
+ Capture the entire desktop.
+
+
+
+
+ Open the capture launcher.
+
+
+
+
+ Start a manual capture in GUI mode.
+
+
+
+
+ Configure
+
+
+
+
+ Capture a single screen.
+
+
+
+
+ Path where the capture will be saved
+
+
+
+
+ Save the capture to the clipboard
+
+
+
+
+ Delay time in milliseconds
+
+
+
+
+ Set the filename pattern
+
+
+
+
+ Enable or disable the trayicon
+
+
+
+
+ Enable or disable run at startup
+
+
+
+
+ Show the help message in the capture mode
+
+
+
+
+ Define the main UI color
+
+
+
+
+ Define the contrast UI color
+
+
+
+
+ Print raw PNG capture
+
+
+
+
+ Define the screen to capture
+
+
+
+
+ default: screen containing the cursor
+
+
+
+
+ Screen number
+
+
+
+
+ Invalid color, this flag supports the following formats:
+- #RGB (each of R, G, and B is a single hex digit)
+- #RRGGBB
+- #RRRGGGBBB
+- #RRRRGGGGBBBB
+- Named colors like 'blue' or 'red'
+You may need to escape the '#' sign as in '\#FFF'
+
+
+
+
+ Invalid delay, it must be higher than 0
+
+
+
+
+ Invalid screen number, it must be non negative
+
+
+
+
+ Invalid path, it must be a real path in the system
+
+
+
+
+ Invalid value, it must be defined as 'true' or 'false'
+
+ Error
@@ -699,6 +830,36 @@ Druk op spatie om het zijpaneel te openen.
URL copied to clipboard.URL gekopieerd naar klembord.
+
+
+ Options
+
+
+
+
+ Arguments
+
+
+
+
+ arguments
+
+
+
+
+ Usage
+
+
+
+
+ options
+
+
+
+
+ Per default runs Flameshot in the background and adds a tray icon for configuration.
+
+ RectangleTool
diff --git a/data/translations/Internationalization_pl.ts b/data/translations/Internationalization_pl.ts
index a3d1597f..c8b437f8 100644
--- a/data/translations/Internationalization_pl.ts
+++ b/data/translations/Internationalization_pl.ts
@@ -640,12 +640,12 @@ Spacja, aby pokazać panel boczny.
PixelateTool
-
+ Pixelate
-
+ Set Pixelate as the paint tool
@@ -683,6 +683,137 @@ Spacja, aby pokazać panel boczny.
Unable to connect via DBusNie udało się połączyć za pomocą DBus
+
+
+ Powerful yet simple to use screenshot software.
+
+
+
+
+ See
+
+
+
+
+ Capture the entire desktop.
+
+
+
+
+ Open the capture launcher.
+
+
+
+
+ Start a manual capture in GUI mode.
+
+
+
+
+ Configure
+
+
+
+
+ Capture a single screen.
+
+
+
+
+ Path where the capture will be saved
+
+
+
+
+ Save the capture to the clipboard
+
+
+
+
+ Delay time in milliseconds
+
+
+
+
+ Set the filename pattern
+
+
+
+
+ Enable or disable the trayicon
+
+
+
+
+ Enable or disable run at startup
+
+
+
+
+ Show the help message in the capture mode
+
+
+
+
+ Define the main UI color
+
+
+
+
+ Define the contrast UI color
+
+
+
+
+ Print raw PNG capture
+
+
+
+
+ Define the screen to capture
+
+
+
+
+ default: screen containing the cursor
+
+
+
+
+ Screen number
+
+
+
+
+ Invalid color, this flag supports the following formats:
+- #RGB (each of R, G, and B is a single hex digit)
+- #RRGGBB
+- #RRRGGGBBB
+- #RRRRGGGGBBBB
+- Named colors like 'blue' or 'red'
+You may need to escape the '#' sign as in '\#FFF'
+
+
+
+
+ Invalid delay, it must be higher than 0
+
+
+
+
+ Invalid screen number, it must be non negative
+
+
+
+
+ Invalid path, it must be a real path in the system
+
+
+
+
+ Invalid value, it must be defined as 'true' or 'false'
+
+ Error
@@ -698,6 +829,36 @@ Spacja, aby pokazać panel boczny.
URL copied to clipboard.URL skopiowany do schowka.
+
+
+ Options
+
+
+
+
+ Arguments
+
+
+
+
+ arguments
+
+
+
+
+ Usage
+
+
+
+
+ options
+
+
+
+
+ Per default runs Flameshot in the background and adds a tray icon for configuration.
+
+ RectangleTool
diff --git a/data/translations/Internationalization_pt_br.ts b/data/translations/Internationalization_pt_br.ts
index be871db0..41bfd6c5 100644
--- a/data/translations/Internationalization_pt_br.ts
+++ b/data/translations/Internationalization_pt_br.ts
@@ -641,12 +641,12 @@ Pressione espaço abrir o painel lateral.
PixelateTool
-
+ Pixelate
-
+ Set Pixelate as the paint tool
@@ -684,6 +684,137 @@ Pressione espaço abrir o painel lateral.
Unable to connect via DBusNão foi possível conectar via DBus
+
+
+ Powerful yet simple to use screenshot software.
+
+
+
+
+ See
+
+
+
+
+ Capture the entire desktop.
+
+
+
+
+ Open the capture launcher.
+
+
+
+
+ Start a manual capture in GUI mode.
+
+
+
+
+ Configure
+
+
+
+
+ Capture a single screen.
+
+
+
+
+ Path where the capture will be saved
+
+
+
+
+ Save the capture to the clipboard
+
+
+
+
+ Delay time in milliseconds
+
+
+
+
+ Set the filename pattern
+
+
+
+
+ Enable or disable the trayicon
+
+
+
+
+ Enable or disable run at startup
+
+
+
+
+ Show the help message in the capture mode
+
+
+
+
+ Define the main UI color
+
+
+
+
+ Define the contrast UI color
+
+
+
+
+ Print raw PNG capture
+
+
+
+
+ Define the screen to capture
+
+
+
+
+ default: screen containing the cursor
+
+
+
+
+ Screen number
+
+
+
+
+ Invalid color, this flag supports the following formats:
+- #RGB (each of R, G, and B is a single hex digit)
+- #RRGGBB
+- #RRRGGGBBB
+- #RRRRGGGGBBBB
+- Named colors like 'blue' or 'red'
+You may need to escape the '#' sign as in '\#FFF'
+
+
+
+
+ Invalid delay, it must be higher than 0
+
+
+
+
+ Invalid screen number, it must be non negative
+
+
+
+
+ Invalid path, it must be a real path in the system
+
+
+
+
+ Invalid value, it must be defined as 'true' or 'false'
+
+ Error
@@ -699,6 +830,36 @@ Pressione espaço abrir o painel lateral.
URL copied to clipboard.URL copiada para o clipboard.
+
+
+ Options
+
+
+
+
+ Arguments
+
+
+
+
+ arguments
+
+
+
+
+ Usage
+
+
+
+
+ options
+
+
+
+
+ Per default runs Flameshot in the background and adds a tray icon for configuration.
+
+ RectangleTool
diff --git a/data/translations/Internationalization_ru.ts b/data/translations/Internationalization_ru.ts
index 1ed80eb2..5bded30d 100644
--- a/data/translations/Internationalization_ru.ts
+++ b/data/translations/Internationalization_ru.ts
@@ -641,12 +641,12 @@ Press Space to open the side panel.
PixelateTool
-
+ Pixelate
-
+ Set Pixelate as the paint tool
@@ -684,6 +684,137 @@ Press Space to open the side panel.
Unable to connect via DBusНе удалось подключиться через DBus
+
+
+ Powerful yet simple to use screenshot software.
+
+
+
+
+ See
+
+
+
+
+ Capture the entire desktop.
+
+
+
+
+ Open the capture launcher.
+
+
+
+
+ Start a manual capture in GUI mode.
+
+
+
+
+ Configure
+
+
+
+
+ Capture a single screen.
+
+
+
+
+ Path where the capture will be saved
+
+
+
+
+ Save the capture to the clipboard
+
+
+
+
+ Delay time in milliseconds
+
+
+
+
+ Set the filename pattern
+
+
+
+
+ Enable or disable the trayicon
+
+
+
+
+ Enable or disable run at startup
+
+
+
+
+ Show the help message in the capture mode
+
+
+
+
+ Define the main UI color
+
+
+
+
+ Define the contrast UI color
+
+
+
+
+ Print raw PNG capture
+
+
+
+
+ Define the screen to capture
+
+
+
+
+ default: screen containing the cursor
+
+
+
+
+ Screen number
+
+
+
+
+ Invalid color, this flag supports the following formats:
+- #RGB (each of R, G, and B is a single hex digit)
+- #RRGGBB
+- #RRRGGGBBB
+- #RRRRGGGGBBBB
+- Named colors like 'blue' or 'red'
+You may need to escape the '#' sign as in '\#FFF'
+
+
+
+
+ Invalid delay, it must be higher than 0
+
+
+
+
+ Invalid screen number, it must be non negative
+
+
+
+
+ Invalid path, it must be a real path in the system
+
+
+
+
+ Invalid value, it must be defined as 'true' or 'false'
+
+ Error
@@ -699,6 +830,36 @@ Press Space to open the side panel.
URL copied to clipboard.URL скопирован в буфер обмена.
+
+
+ Options
+
+
+
+
+ Arguments
+
+
+
+
+ arguments
+
+
+
+
+ Usage
+
+
+
+
+ options
+
+
+
+
+ Per default runs Flameshot in the background and adds a tray icon for configuration.
+
+ RectangleTool
diff --git a/data/translations/Internationalization_sk.ts b/data/translations/Internationalization_sk.ts
index 8467859a..aa085e3d 100644
--- a/data/translations/Internationalization_sk.ts
+++ b/data/translations/Internationalization_sk.ts
@@ -641,12 +641,12 @@ Stlačte medzerník pre otvorenie postranného panelu.
PixelateTool
-
+ Pixelate
-
+ Set Pixelate as the paint tool
@@ -662,6 +662,137 @@ Stlačte medzerník pre otvorenie postranného panelu.
Unable to connect via DBusNie je možné pripojiť sa prostredníctvom DBus
+
+
+ Powerful yet simple to use screenshot software.
+
+
+
+
+ See
+
+
+
+
+ Capture the entire desktop.
+
+
+
+
+ Open the capture launcher.
+
+
+
+
+ Start a manual capture in GUI mode.
+
+
+
+
+ Configure
+
+
+
+
+ Capture a single screen.
+
+
+
+
+ Path where the capture will be saved
+
+
+
+
+ Save the capture to the clipboard
+
+
+
+
+ Delay time in milliseconds
+
+
+
+
+ Set the filename pattern
+
+
+
+
+ Enable or disable the trayicon
+
+
+
+
+ Enable or disable run at startup
+
+
+
+
+ Show the help message in the capture mode
+
+
+
+
+ Define the main UI color
+
+
+
+
+ Define the contrast UI color
+
+
+
+
+ Print raw PNG capture
+
+
+
+
+ Define the screen to capture
+
+
+
+
+ default: screen containing the cursor
+
+
+
+
+ Screen number
+
+
+
+
+ Invalid color, this flag supports the following formats:
+- #RGB (each of R, G, and B is a single hex digit)
+- #RRGGBB
+- #RRRGGGBBB
+- #RRRRGGGGBBBB
+- Named colors like 'blue' or 'red'
+You may need to escape the '#' sign as in '\#FFF'
+
+
+
+
+ Invalid delay, it must be higher than 0
+
+
+
+
+ Invalid screen number, it must be non negative
+
+
+
+
+ Invalid path, it must be a real path in the system
+
+
+
+
+ Invalid value, it must be defined as 'true' or 'false'
+
+ Error
@@ -699,6 +830,36 @@ Stlačte medzerník pre otvorenie postranného panelu.
URL copied to clipboard.URL skopírovaná do schránky.
+
+
+ Options
+
+
+
+
+ Arguments
+
+
+
+
+ arguments
+
+
+
+
+ Usage
+
+
+
+
+ options
+
+
+
+
+ Per default runs Flameshot in the background and adds a tray icon for configuration.
+
+ RectangleTool
diff --git a/data/translations/Internationalization_sr.ts b/data/translations/Internationalization_sr.ts
index 4f740f83..3ac09229 100644
--- a/data/translations/Internationalization_sr.ts
+++ b/data/translations/Internationalization_sr.ts
@@ -641,12 +641,12 @@ Press Space to open the side panel.
PixelateTool
-
+ Pixelate
-
+ Set Pixelate as the paint tool
@@ -684,6 +684,137 @@ Press Space to open the side panel.
Unable to connect via DBusНисам успео да се повежем кроз DBus
+
+
+ Powerful yet simple to use screenshot software.
+
+
+
+
+ See
+
+
+
+
+ Capture the entire desktop.
+
+
+
+
+ Open the capture launcher.
+
+
+
+
+ Start a manual capture in GUI mode.
+
+
+
+
+ Configure
+
+
+
+
+ Capture a single screen.
+
+
+
+
+ Path where the capture will be saved
+
+
+
+
+ Save the capture to the clipboard
+
+
+
+
+ Delay time in milliseconds
+
+
+
+
+ Set the filename pattern
+
+
+
+
+ Enable or disable the trayicon
+
+
+
+
+ Enable or disable run at startup
+
+
+
+
+ Show the help message in the capture mode
+
+
+
+
+ Define the main UI color
+
+
+
+
+ Define the contrast UI color
+
+
+
+
+ Print raw PNG capture
+
+
+
+
+ Define the screen to capture
+
+
+
+
+ default: screen containing the cursor
+
+
+
+
+ Screen number
+
+
+
+
+ Invalid color, this flag supports the following formats:
+- #RGB (each of R, G, and B is a single hex digit)
+- #RRGGBB
+- #RRRGGGBBB
+- #RRRRGGGGBBBB
+- Named colors like 'blue' or 'red'
+You may need to escape the '#' sign as in '\#FFF'
+
+
+
+
+ Invalid delay, it must be higher than 0
+
+
+
+
+ Invalid screen number, it must be non negative
+
+
+
+
+ Invalid path, it must be a real path in the system
+
+
+
+
+ Invalid value, it must be defined as 'true' or 'false'
+
+ Error
@@ -699,6 +830,36 @@ Press Space to open the side panel.
URL copied to clipboard.Интернет адреса је сачувана у привременој меморији.
+
+
+ Options
+
+
+
+
+ Arguments
+
+
+
+
+ arguments
+
+
+
+
+ Usage
+
+
+
+
+ options
+
+
+
+
+ Per default runs Flameshot in the background and adds a tray icon for configuration.
+
+ RectangleTool
diff --git a/data/translations/Internationalization_tr.ts b/data/translations/Internationalization_tr.ts
index 82854da2..06ea563a 100644
--- a/data/translations/Internationalization_tr.ts
+++ b/data/translations/Internationalization_tr.ts
@@ -641,12 +641,12 @@ Yan paneli açmak için Boşluk tuşuna basın.
PixelateTool
-
+ Pixelate
-
+ Set Pixelate as the paint tool
@@ -684,6 +684,137 @@ Yan paneli açmak için Boşluk tuşuna basın.
Unable to connect via DBusDBus ile bağlanılamadı
+
+
+ Powerful yet simple to use screenshot software.
+
+
+
+
+ See
+
+
+
+
+ Capture the entire desktop.
+
+
+
+
+ Open the capture launcher.
+
+
+
+
+ Start a manual capture in GUI mode.
+
+
+
+
+ Configure
+
+
+
+
+ Capture a single screen.
+
+
+
+
+ Path where the capture will be saved
+
+
+
+
+ Save the capture to the clipboard
+
+
+
+
+ Delay time in milliseconds
+
+
+
+
+ Set the filename pattern
+
+
+
+
+ Enable or disable the trayicon
+
+
+
+
+ Enable or disable run at startup
+
+
+
+
+ Show the help message in the capture mode
+
+
+
+
+ Define the main UI color
+
+
+
+
+ Define the contrast UI color
+
+
+
+
+ Print raw PNG capture
+
+
+
+
+ Define the screen to capture
+
+
+
+
+ default: screen containing the cursor
+
+
+
+
+ Screen number
+
+
+
+
+ Invalid color, this flag supports the following formats:
+- #RGB (each of R, G, and B is a single hex digit)
+- #RRGGBB
+- #RRRGGGBBB
+- #RRRRGGGGBBBB
+- Named colors like 'blue' or 'red'
+You may need to escape the '#' sign as in '\#FFF'
+
+
+
+
+ Invalid delay, it must be higher than 0
+
+
+
+
+ Invalid screen number, it must be non negative
+
+
+
+
+ Invalid path, it must be a real path in the system
+
+
+
+
+ Invalid value, it must be defined as 'true' or 'false'
+
+ Error
@@ -699,6 +830,36 @@ Yan paneli açmak için Boşluk tuşuna basın.
URL copied to clipboard.URL panoya kopyalandı.
+
+
+ Options
+
+
+
+
+ Arguments
+
+
+
+
+ arguments
+
+
+
+
+ Usage
+
+
+
+
+ options
+
+
+
+
+ Per default runs Flameshot in the background and adds a tray icon for configuration.
+
+ RectangleTool
diff --git a/data/translations/Internationalization_uk.ts b/data/translations/Internationalization_uk.ts
index 070ec7cf..6d3aad29 100644
--- a/data/translations/Internationalization_uk.ts
+++ b/data/translations/Internationalization_uk.ts
@@ -641,12 +641,12 @@ Press Space to open the side panel.
PixelateTool
-
+ Pixelate
-
+ Set Pixelate as the paint tool
@@ -684,6 +684,137 @@ Press Space to open the side panel.
Unable to connect via DBusНе вдалось підключитись через DBus
+
+
+ Powerful yet simple to use screenshot software.
+
+
+
+
+ See
+
+
+
+
+ Capture the entire desktop.
+
+
+
+
+ Open the capture launcher.
+
+
+
+
+ Start a manual capture in GUI mode.
+
+
+
+
+ Configure
+
+
+
+
+ Capture a single screen.
+
+
+
+
+ Path where the capture will be saved
+
+
+
+
+ Save the capture to the clipboard
+
+
+
+
+ Delay time in milliseconds
+
+
+
+
+ Set the filename pattern
+
+
+
+
+ Enable or disable the trayicon
+
+
+
+
+ Enable or disable run at startup
+
+
+
+
+ Show the help message in the capture mode
+
+
+
+
+ Define the main UI color
+
+
+
+
+ Define the contrast UI color
+
+
+
+
+ Print raw PNG capture
+
+
+
+
+ Define the screen to capture
+
+
+
+
+ default: screen containing the cursor
+
+
+
+
+ Screen number
+
+
+
+
+ Invalid color, this flag supports the following formats:
+- #RGB (each of R, G, and B is a single hex digit)
+- #RRGGBB
+- #RRRGGGBBB
+- #RRRRGGGGBBBB
+- Named colors like 'blue' or 'red'
+You may need to escape the '#' sign as in '\#FFF'
+
+
+
+
+ Invalid delay, it must be higher than 0
+
+
+
+
+ Invalid screen number, it must be non negative
+
+
+
+
+ Invalid path, it must be a real path in the system
+
+
+
+
+ Invalid value, it must be defined as 'true' or 'false'
+
+ Error
@@ -699,6 +830,36 @@ Press Space to open the side panel.
URL copied to clipboard.URL скопійовано до буферу обміну.
+
+
+ Options
+
+
+
+
+ Arguments
+
+
+
+
+ arguments
+
+
+
+
+ Usage
+
+
+
+
+ options
+
+
+
+
+ Per default runs Flameshot in the background and adds a tray icon for configuration.
+
+ RectangleTool
diff --git a/data/translations/Internationalization_zh_CN.ts b/data/translations/Internationalization_zh_CN.ts
index da99bf8a..d3811f89 100644
--- a/data/translations/Internationalization_zh_CN.ts
+++ b/data/translations/Internationalization_zh_CN.ts
@@ -642,12 +642,12 @@ Press Space to open the side panel.
PixelateTool
-
+ Pixelate
-
+ Set Pixelate as the paint tool
@@ -685,6 +685,137 @@ Press Space to open the side panel.
Unable to connect via DBus无法通过DBus进行连接
+
+
+ Powerful yet simple to use screenshot software.
+
+
+
+
+ See
+
+
+
+
+ Capture the entire desktop.
+
+
+
+
+ Open the capture launcher.
+
+
+
+
+ Start a manual capture in GUI mode.
+
+
+
+
+ Configure
+
+
+
+
+ Capture a single screen.
+
+
+
+
+ Path where the capture will be saved
+
+
+
+
+ Save the capture to the clipboard
+
+
+
+
+ Delay time in milliseconds
+
+
+
+
+ Set the filename pattern
+
+
+
+
+ Enable or disable the trayicon
+
+
+
+
+ Enable or disable run at startup
+
+
+
+
+ Show the help message in the capture mode
+
+
+
+
+ Define the main UI color
+
+
+
+
+ Define the contrast UI color
+
+
+
+
+ Print raw PNG capture
+
+
+
+
+ Define the screen to capture
+
+
+
+
+ default: screen containing the cursor
+
+
+
+
+ Screen number
+
+
+
+
+ Invalid color, this flag supports the following formats:
+- #RGB (each of R, G, and B is a single hex digit)
+- #RRGGBB
+- #RRRGGGBBB
+- #RRRRGGGGBBBB
+- Named colors like 'blue' or 'red'
+You may need to escape the '#' sign as in '\#FFF'
+
+
+
+
+ Invalid delay, it must be higher than 0
+
+
+
+
+ Invalid screen number, it must be non negative
+
+
+
+
+ Invalid path, it must be a real path in the system
+
+
+
+
+ Invalid value, it must be defined as 'true' or 'false'
+
+ Error
@@ -700,6 +831,36 @@ Press Space to open the side panel.
URL copied to clipboard.URL 已复制到剪贴板。
+
+
+ Options
+
+
+
+
+ Arguments
+
+
+
+
+ arguments
+
+
+
+
+ Usage
+
+
+
+
+ options
+
+
+
+
+ Per default runs Flameshot in the background and adds a tray icon for configuration.
+
+ RectangleTool
diff --git a/data/translations/Internationalization_zh_TW.ts b/data/translations/Internationalization_zh_TW.ts
index 64864655..609f38c0 100644
--- a/data/translations/Internationalization_zh_TW.ts
+++ b/data/translations/Internationalization_zh_TW.ts
@@ -637,12 +637,12 @@ Press Space to open the side panel.
PixelateTool
-
+ Pixelate
-
+ Set Pixelate as the paint tool
@@ -680,6 +680,137 @@ Press Space to open the side panel.
Unable to connect via DBus無法透過 DBus 進行連接
+
+
+ Powerful yet simple to use screenshot software.
+
+
+
+
+ See
+
+
+
+
+ Capture the entire desktop.
+
+
+
+
+ Open the capture launcher.
+
+
+
+
+ Start a manual capture in GUI mode.
+
+
+
+
+ Configure
+
+
+
+
+ Capture a single screen.
+
+
+
+
+ Path where the capture will be saved
+
+
+
+
+ Save the capture to the clipboard
+
+
+
+
+ Delay time in milliseconds
+
+
+
+
+ Set the filename pattern
+
+
+
+
+ Enable or disable the trayicon
+
+
+
+
+ Enable or disable run at startup
+
+
+
+
+ Show the help message in the capture mode
+
+
+
+
+ Define the main UI color
+
+
+
+
+ Define the contrast UI color
+
+
+
+
+ Print raw PNG capture
+
+
+
+
+ Define the screen to capture
+
+
+
+
+ default: screen containing the cursor
+
+
+
+
+ Screen number
+
+
+
+
+ Invalid color, this flag supports the following formats:
+- #RGB (each of R, G, and B is a single hex digit)
+- #RRGGBB
+- #RRRGGGBBB
+- #RRRRGGGGBBBB
+- Named colors like 'blue' or 'red'
+You may need to escape the '#' sign as in '\#FFF'
+
+
+
+
+ Invalid delay, it must be higher than 0
+
+
+
+
+ Invalid screen number, it must be non negative
+
+
+
+
+ Invalid path, it must be a real path in the system
+
+
+
+
+ Invalid value, it must be defined as 'true' or 'false'
+
+ Error
@@ -695,6 +826,36 @@ Press Space to open the side panel.
URL copied to clipboard.連結已複製到剪貼簿
+
+
+ Options
+
+
+
+
+ Arguments
+
+
+
+
+ arguments
+
+
+
+
+ Usage
+
+
+
+
+ options
+
+
+
+
+ Per default runs Flameshot in the background and adds a tray icon for configuration.
+
+ RectangleTool
diff --git a/src/cli/commandlineparser.cpp b/src/cli/commandlineparser.cpp
index 783651d4..b7d40ac4 100644
--- a/src/cli/commandlineparser.cpp
+++ b/src/cli/commandlineparser.cpp
@@ -61,7 +61,7 @@ optionsToString(const QList& options,
// generate the text
QString result;
if (!dashedOptionList.isEmpty()) {
- result += QLatin1String("Options:\n");
+ result += QObject::tr("Options") + ":\n";
QString linePadding = QStringLiteral(" ").repeated(size + 4).prepend("\n");
for (int i = 0; i < options.length(); ++i) {
result += QStringLiteral(" %1 %2\n")
@@ -74,7 +74,7 @@ optionsToString(const QList& options,
}
}
if (!arguments.isEmpty()) {
- result += QLatin1String("Arguments:\n");
+ result += QObject::tr("Arguments") + ":\n";
}
for (int i = 0; i < arguments.length(); ++i) {
result += QStringLiteral(" %1 %2\n")
@@ -346,15 +346,18 @@ CommandLineParser::printHelp(QStringList args, const Node* node)
if (argName.isEmpty()) {
argName = qApp->applicationName();
}
- QString argText = node->subNodes.isEmpty() ? "" : "[arguments]";
- helpText += QStringLiteral("Usage: %1 [%2-options] %3\n\n")
+ QString argText =
+ node->subNodes.isEmpty() ? "" : "[" + QObject::tr("arguments") + "]";
+ helpText += QObject::tr("Usage") + ": %1 [%2-" + QObject::tr("options") +
+ QStringLiteral("] %3\n\n")
.arg(args.join(QStringLiteral(" ")))
.arg(argName)
.arg(argText);
// short section about default behavior
- helpText += QStringLiteral("Per default runs Flameshot in the background and \
- adds a tray icon for configuration.\n\n");
+ helpText += QObject::tr("Per default runs Flameshot in the background and \
+ adds a tray icon for configuration.");
+ helpText += "\n\n";
// add command options and subarguments
QList subArgs;
diff --git a/src/main.cpp b/src/main.cpp
index 20f38d6e..c02d4d3a 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -101,59 +101,55 @@ main(int argc, char* argv[])
CommandLineParser parser;
// Add description
parser.setDescription(
- QStringLiteral("Powerful yet simple to use screenshot software."));
- parser.setGeneralErrorMessage(QStringLiteral("See 'flameshot --help'."));
+ QObject::tr("Powerful yet simple to use screenshot software."));
+ parser.setGeneralErrorMessage(QObject::tr("See") + " flameshot --help.");
// Arguments
CommandArgument fullArgument(QStringLiteral("full"),
- QStringLiteral("Capture the entire desktop."));
- CommandArgument launcherArgument(
- QStringLiteral("launcher"), QStringLiteral("Open the capture launcher."));
+ QObject::tr("Capture the entire desktop."));
+ CommandArgument launcherArgument(QStringLiteral("launcher"),
+ QObject::tr("Open the capture launcher."));
CommandArgument guiArgument(
- QStringLiteral("gui"),
- QStringLiteral("Start a manual capture in GUI mode."));
+ QStringLiteral("gui"), QObject::tr("Start a manual capture in GUI mode."));
CommandArgument configArgument(QStringLiteral("config"),
- QStringLiteral("Configure flameshot."));
+ QObject::tr("Configure") + " flameshot.");
CommandArgument screenArgument(QStringLiteral("screen"),
- QStringLiteral("Capture a single screen."));
+ QObject::tr("Capture a single screen."));
// Options
- CommandOption pathOption(
- { "p", "path" },
- QStringLiteral("Path where the capture will be saved"),
- QStringLiteral("path"));
+ CommandOption pathOption({ "p", "path" },
+ QObject::tr("Path where the capture will be saved"),
+ QStringLiteral("path"));
CommandOption clipboardOption(
- { "c", "clipboard" }, QStringLiteral("Save the capture to the clipboard"));
+ { "c", "clipboard" }, QObject::tr("Save the capture to the clipboard"));
CommandOption delayOption({ "d", "delay" },
- QStringLiteral("Delay time in milliseconds"),
+ QObject::tr("Delay time in milliseconds"),
QStringLiteral("milliseconds"));
CommandOption filenameOption({ "f", "filename" },
- QStringLiteral("Set the filename pattern"),
+ QObject::tr("Set the filename pattern"),
QStringLiteral("pattern"));
CommandOption trayOption({ "t", "trayicon" },
- QStringLiteral("Enable or disable the trayicon"),
+ QObject::tr("Enable or disable the trayicon"),
QStringLiteral("bool"));
- CommandOption autostartOption(
- { "a", "autostart" },
- QStringLiteral("Enable or disable run at startup"),
- QStringLiteral("bool"));
+ CommandOption autostartOption({ "a", "autostart" },
+ QObject::tr("Enable or disable run at startup"),
+ QStringLiteral("bool"));
CommandOption showHelpOption(
{ "s", "showhelp" },
- QStringLiteral("Show the help message in the capture mode"),
+ QObject::tr("Show the help message in the capture mode"),
QStringLiteral("bool"));
CommandOption mainColorOption({ "m", "maincolor" },
- QStringLiteral("Define the main UI color"),
+ QObject::tr("Define the main UI color"),
QStringLiteral("color-code"));
- CommandOption contrastColorOption(
- { "k", "contrastcolor" },
- QStringLiteral("Define the contrast UI color"),
- QStringLiteral("color-code"));
+ CommandOption contrastColorOption({ "k", "contrastcolor" },
+ QObject::tr("Define the contrast UI color"),
+ QStringLiteral("color-code"));
CommandOption rawImageOption({ "r", "raw" },
- QStringLiteral("Print raw PNG capture"));
+ QObject::tr("Print raw PNG capture"));
CommandOption screenNumberOption(
{ "n", "number" },
- QStringLiteral(
- "Define the screen to capture,\ndefault: screen containing the cursor"),
- QStringLiteral("Screen number"),
+ QObject::tr("Define the screen to capture") + ",\n" +
+ QObject::tr("default: screen containing the cursor"),
+ QObject::tr("Screen number"),
QStringLiteral("-1"));
// Add checkers
@@ -161,25 +157,26 @@ main(int argc, char* argv[])
QColor parsedColor(colorCode);
return parsedColor.isValid() && parsedColor.alphaF() == 1.0;
};
- QString colorErr = "Invalid color, "
- "this flag supports the following formats:\n"
- "- #RGB (each of R, G, and B is a single hex digit)\n"
- "- #RRGGBB\n- #RRRGGGBBB\n"
- "- #RRRRGGGGBBBB\n"
- "- Named colors like 'blue' or 'red'\n"
- "You may need to escape the '#' sign as in '\\#FFF'";
+ QString colorErr =
+ QObject::tr("Invalid color, "
+ "this flag supports the following formats:\n"
+ "- #RGB (each of R, G, and B is a single hex digit)\n"
+ "- #RRGGBB\n- #RRRGGGBBB\n"
+ "- #RRRRGGGGBBBB\n"
+ "- Named colors like 'blue' or 'red'\n"
+ "You may need to escape the '#' sign as in '\\#FFF'");
const QString delayErr =
- QStringLiteral("Invalid delay, it must be higher than 0");
+ QObject::tr("Invalid delay, it must be higher than 0");
const QString numberErr =
- QStringLiteral("Invalid screen number, it must be non negative");
+ QObject::tr("Invalid screen number, it must be non negative");
auto numericChecker = [](const QString& delayValue) -> bool {
int value = delayValue.toInt();
return value >= 0;
};
const QString pathErr =
- QStringLiteral("Invalid path, it must be a real path in the system");
+ QObject::tr("Invalid path, it must be a real path in the system");
auto pathChecker = [pathErr](const QString& pathValue) -> bool {
bool res = QDir(pathValue).exists();
if (!res) {
@@ -189,7 +186,7 @@ main(int argc, char* argv[])
};
const QString booleanErr =
- QStringLiteral("Invalid value, it must be defined as 'true' or 'false'");
+ QObject::tr("Invalid value, it must be defined as 'true' or 'false'");
auto booleanChecker = [](const QString& value) -> bool {
return value == QLatin1String("true") || value == QLatin1String("false");
};