commit c89c2e86
Add more translation strings
Changed files
| M | src/shortcutmanager.cpp before |
| M | translations/da.ts before |
diff --git a/src/shortcutmanager.cpp b/src/shortcutmanager.cpp
index 6c60d28..eb8cfa2 100644
--- a/src/shortcutmanager.cpp
+++ b/src/shortcutmanager.cpp
@@ -15,26 +15,26 @@ struct ActionInfo {
// Order must match ShortcutManager::Action enum
static const ActionInfo kDefaults[ShortcutManager::ActionCount] = {
- {"ToggleHelp", QT_TR_NOOP("Show/hide keyboard shortcuts"), QKeySequence(Qt::Key_F1), ShortcutManager::CatNotConfigurable},
- {"CloseViewer", QT_TR_NOOP("Close viewer"), QKeySequence(Qt::Key_Escape), ShortcutManager::CatImageViewer},
- {"CloseViewerAlt", QT_TR_NOOP("Close viewer (alt)"), QKeySequence(Qt::Key_Return), ShortcutManager::CatImageViewer},
- {"NextImage", QT_TR_NOOP("Next image"), QKeySequence(Qt::Key_PageDown), ShortcutManager::CatImageViewer},
- {"PrevImage", QT_TR_NOOP("Previous image"), QKeySequence(Qt::Key_PageUp), ShortcutManager::CatImageViewer},
- {"PanLeft", QT_TR_NOOP("Pan left"), QKeySequence(Qt::Key_Left), ShortcutManager::CatImageViewer},
- {"PanRight", QT_TR_NOOP("Pan right"), QKeySequence(Qt::Key_Right), ShortcutManager::CatImageViewer},
- {"PanUp", QT_TR_NOOP("Pan up"), QKeySequence(Qt::Key_Up), ShortcutManager::CatImageViewer},
- {"PanDown", QT_TR_NOOP("Pan down"), QKeySequence(Qt::Key_Down), ShortcutManager::CatImageViewer},
- {"ZoomOriginal", QT_TR_NOOP("Zoom to original size"), QKeySequence(Qt::Key_Slash), ShortcutManager::CatImageViewer},
- {"ZoomFit", QT_TR_NOOP("Zoom to fit screen"), QKeySequence(Qt::Key_Asterisk), ShortcutManager::CatImageViewer},
- {"ZoomIn", QT_TR_NOOP("Zoom in"), QKeySequence(Qt::Key_Plus), ShortcutManager::CatImageViewer},
- {"ZoomOut", QT_TR_NOOP("Zoom out"), QKeySequence(Qt::Key_Minus), ShortcutManager::CatImageViewer},
- {"ToggleExif", QT_TR_NOOP("Toggle EXIF info"), QKeySequence(Qt::Key_I), ShortcutManager::CatImageViewer},
- {"EditCaption", QT_TR_NOOP("Edit caption"), QKeySequence(Qt::Key_E), ShortcutManager::CatImageViewer},
- {"ToggleFullscreen",QT_TR_NOOP("Toggle fullscreen"), QKeySequence(Qt::Key_F11), ShortcutManager::CatImageViewer},
- {"ActivateEntry", QT_TR_NOOP("Open folder / image"), QKeySequence(Qt::Key_Return), ShortcutManager::CatBrowser},
- {"PrevFolder", QT_TR_NOOP("Previous folder"), QKeySequence(Qt::ALT | Qt::Key_Left), ShortcutManager::CatBrowser},
- {"NextFolder", QT_TR_NOOP("Next folder"), QKeySequence(Qt::ALT | Qt::Key_Right), ShortcutManager::CatBrowser},
- {"MoveToTrash", QT_TR_NOOP("Move image to trash"), QKeySequence(Qt::Key_Delete), ShortcutManager::CatBrowser},
+ {"ToggleHelp", QT_TRANSLATE_NOOP("ShortcutManager", "Show/hide keyboard shortcuts"), QKeySequence(Qt::Key_F1), ShortcutManager::CatNotConfigurable},
+ {"CloseViewer", QT_TRANSLATE_NOOP("ShortcutManager", "Close viewer"), QKeySequence(Qt::Key_Escape), ShortcutManager::CatImageViewer},
+ {"CloseViewerAlt", QT_TRANSLATE_NOOP("ShortcutManager", "Close viewer (alt)"), QKeySequence(Qt::Key_Return), ShortcutManager::CatImageViewer},
+ {"NextImage", QT_TRANSLATE_NOOP("ShortcutManager", "Next image"), QKeySequence(Qt::Key_PageDown), ShortcutManager::CatImageViewer},
+ {"PrevImage", QT_TRANSLATE_NOOP("ShortcutManager", "Previous image"), QKeySequence(Qt::Key_PageUp), ShortcutManager::CatImageViewer},
+ {"PanLeft", QT_TRANSLATE_NOOP("ShortcutManager", "Pan left"), QKeySequence(Qt::Key_Left), ShortcutManager::CatImageViewer},
+ {"PanRight", QT_TRANSLATE_NOOP("ShortcutManager", "Pan right"), QKeySequence(Qt::Key_Right), ShortcutManager::CatImageViewer},
+ {"PanUp", QT_TRANSLATE_NOOP("ShortcutManager", "Pan up"), QKeySequence(Qt::Key_Up), ShortcutManager::CatImageViewer},
+ {"PanDown", QT_TRANSLATE_NOOP("ShortcutManager", "Pan down"), QKeySequence(Qt::Key_Down), ShortcutManager::CatImageViewer},
+ {"ZoomOriginal", QT_TRANSLATE_NOOP("ShortcutManager", "Zoom to original size"), QKeySequence(Qt::Key_Slash), ShortcutManager::CatImageViewer},
+ {"ZoomFit", QT_TRANSLATE_NOOP("ShortcutManager", "Zoom to fit screen"), QKeySequence(Qt::Key_Asterisk), ShortcutManager::CatImageViewer},
+ {"ZoomIn", QT_TRANSLATE_NOOP("ShortcutManager", "Zoom in"), QKeySequence(Qt::Key_Plus), ShortcutManager::CatImageViewer},
+ {"ZoomOut", QT_TRANSLATE_NOOP("ShortcutManager", "Zoom out"), QKeySequence(Qt::Key_Minus), ShortcutManager::CatImageViewer},
+ {"ToggleExif", QT_TRANSLATE_NOOP("ShortcutManager", "Toggle EXIF info"), QKeySequence(Qt::Key_I), ShortcutManager::CatImageViewer},
+ {"EditCaption", QT_TRANSLATE_NOOP("ShortcutManager", "Edit caption"), QKeySequence(Qt::Key_E), ShortcutManager::CatImageViewer},
+ {"ToggleFullscreen",QT_TRANSLATE_NOOP("ShortcutManager", "Toggle fullscreen"), QKeySequence(Qt::Key_F11), ShortcutManager::CatImageViewer},
+ {"ActivateEntry", QT_TRANSLATE_NOOP("ShortcutManager", "Open folder / image"), QKeySequence(Qt::Key_Return), ShortcutManager::CatBrowser},
+ {"PrevFolder", QT_TRANSLATE_NOOP("ShortcutManager", "Previous folder"), QKeySequence(Qt::ALT | Qt::Key_Left), ShortcutManager::CatBrowser},
+ {"NextFolder", QT_TRANSLATE_NOOP("ShortcutManager", "Next folder"), QKeySequence(Qt::ALT | Qt::Key_Right), ShortcutManager::CatBrowser},
+ {"MoveToTrash", QT_TRANSLATE_NOOP("ShortcutManager", "Move image to trash"), QKeySequence(Qt::Key_Delete), ShortcutManager::CatBrowser},
};
} // namespace
diff --git a/translations/da.ts b/translations/da.ts
index 4fa7ba7..77f8a08 100644
--- a/translations/da.ts
+++ b/translations/da.ts
@@ -2,6 +2,25 @@
<!DOCTYPE TS>
<TS version="2.1" language="da_DK">
<context>
+ <name>ImageViewWidget</name>
+ <message>
+ <source>Close viewer</source>
+ <translation>Luk fremviser</translation>
+ </message>
+ <message>
+ <source>Next / previous image</source>
+ <translation>Næste / forrige billede</translation>
+ </message>
+ <message>
+ <source>Pan image</source>
+ <translation>Panorer billede</translation>
+ </message>
+ <message>
+ <source>Zoom in / out</source>
+ <translation>Zoom ind / ud</translation>
+ </message>
+</context>
+<context>
<name>MainWindow</name>
<message>
<source>Go</source>
@@ -69,7 +88,7 @@
</message>
<message>
<source>The file is write-protected. Cannot save caption.</source>
- <translation>Filen er skrivebeskyttet. Kan ikke gemme billedtekst.</translation>
+ <translation type="vanished">Filen er skrivebeskyttet. Kan ikke gemme billedtekst.</translation>
</message>
<message>
<source>Edit Caption</source>
@@ -79,6 +98,82 @@
<source>Caption-Abstract:</source>
<translation>Billedtekst:</translation>
</message>
+ <message>
+ <source>Click to open in browser</source>
+ <translation>Klik for at åbne i browseren</translation>
+ </message>
+ <message>
+ <source>The file is write-protected and cannot be edited.
+
+%1</source>
+ <translation>Filen er skrivebeskyttet og kan ikke redigeres.
+
+%1</translation>
+ </message>
+ <message>
+ <source>Copy filename</source>
+ <translation>Kopier filnavn</translation>
+ </message>
+ <message>
+ <source>Copy full path</source>
+ <translation>Kopier fuld sti</translation>
+ </message>
+ <message>
+ <source>Rotate Left</source>
+ <translation>Roter mod venstre</translation>
+ </message>
+ <message>
+ <source>Rotate Right</source>
+ <translation>Roter mod højre</translation>
+ </message>
+ <message>
+ <source>Edit description</source>
+ <translation>Rediger beskrivelse</translation>
+ </message>
+ <message>
+ <source>Move to trash</source>
+ <translation>Flyt til papirkurv</translation>
+ </message>
+ <message>
+ <source>Cannot Rotate Image</source>
+ <translation>Kan ikke rotere billede</translation>
+ </message>
+ <message>
+ <source>The file is write-protected and cannot be rotated.
+
+%1</source>
+ <translation>Filen er skrivebeskyttet og kan ikke roteres.
+
+%1</translation>
+ </message>
+ <message>
+ <source>The image orientation could not be changed. The format may not support EXIF orientation.
+
+%1</source>
+ <translation>Billedets orientering kunne ikke ændres. Formatet understøtter muligvis ikke EXIF-orientering.
+
+%1</translation>
+ </message>
+ <message>
+ <source>Move to Trash</source>
+ <translation>Flyt til papirkurv</translation>
+ </message>
+ <message>
+ <source>Move "%1" to the trash?</source>
+ <translation>Flyt "%1" til papirkurven?</translation>
+ </message>
+ <message>
+ <source>Cannot Move to Trash</source>
+ <translation>Kan ikke flytte til papirkurv</translation>
+ </message>
+ <message>
+ <source>The file could not be moved to the trash.
+
+%1</source>
+ <translation>Filen kunne ikke flyttes til papirkurven.
+
+%1</translation>
+ </message>
</context>
<context>
<name>PreferencesDialog</name>
@@ -168,25 +263,6 @@
</message>
</context>
<context>
- <name>ImageViewWidget</name>
- <message>
- <source>Close viewer</source>
- <translation>Luk fremviser</translation>
- </message>
- <message>
- <source>Next / previous image</source>
- <translation>Næste / forrige billede</translation>
- </message>
- <message>
- <source>Pan image</source>
- <translation>Panorer billede</translation>
- </message>
- <message>
- <source>Zoom in / out</source>
- <translation>Zoom ind / ud</translation>
- </message>
-</context>
-<context>
<name>ShortcutManager</name>
<message>
<source>Show/hide keyboard shortcuts</source>
@@ -264,5 +340,9 @@
<source>Next folder</source>
<translation>Næste mappe</translation>
</message>
+ <message>
+ <source>Move image to trash</source>
+ <translation>Flyt billede til papirkurv</translation>
+ </message>
</context>
</TS>