externalize strings in sign tool

This commit is contained in:
Zlatin Balevsky
2020-09-29 15:15:58 +01:00
parent cc9e4828db
commit abdc33b736
2 changed files with 13 additions and 6 deletions

View File

@ -465,8 +465,14 @@ MESSAGES=Messages
FEED_CONFIGURATION=Feed Configuration
FEED_CONFIGURATION_FOR=Configuration for feed {0}
# Watched directory configuration dialog
## Watched directory configuration dialog
WATCHED_DIRECTORY_CONFIGURATION=Watched Directory Configuration
WATCHED_DIRECTORY_CONFIGURATION_FOR=Configuration for directory {0}
WATCHED_DIRECTORY_AUTO=Auto-watch directory using operating system
WATCHED_DIRECTORY_INTERVAL=Directory sync frequency (seconds, 0 means never)
## Sign Tool
SIGN_TEXT=Sign Text
ENTER_TEXT_TO_SIGN=Enter text to be signed
SIGN=Sign
COPY_TO_CLIPBOARD=Copy To Clipboard

View File

@ -1,6 +1,7 @@
package com.muwire.gui
import griffon.core.artifact.GriffonView
import static com.muwire.gui.Translator.trans
import griffon.inject.MVCMember
import griffon.metadata.ArtifactProviderFor
@ -27,12 +28,12 @@ class SignView {
void initUI() {
mainFrame = application.windowManager.findWindow("main-frame")
dialog = new JDialog(mainFrame, "Sign Text", true)
dialog = new JDialog(mainFrame, trans("SIGN_TEXT"), true)
p = builder.panel {
borderLayout()
panel (constraints : BorderLayout.NORTH) {
label("Enter text to be signed")
label(trans("ENTER_TEXT_TO_SIGN"))
}
panel (constraints : BorderLayout.CENTER) {
gridLayout(rows : 2, cols: 1)
@ -44,9 +45,9 @@ class SignView {
}
}
panel (constraints : BorderLayout.SOUTH) {
button(text : "Sign", signAction)
button(text : "Copy To Clipboard", copyAction)
button(text : "Dismiss", closeAction)
button(text : trans("SIGN"), signAction)
button(text : trans("COPY_TO_CLIPBOARD"), copyAction)
button(text : trans("DISMISS"), closeAction)
}
}
}