mirror of https://github.com/zlatinb/muwire
externalize strings in sign tool
parent
cc9e4828db
commit
abdc33b736
|
@ -465,8 +465,14 @@ MESSAGES=Messages
|
||||||
FEED_CONFIGURATION=Feed Configuration
|
FEED_CONFIGURATION=Feed Configuration
|
||||||
FEED_CONFIGURATION_FOR=Configuration for feed {0}
|
FEED_CONFIGURATION_FOR=Configuration for feed {0}
|
||||||
|
|
||||||
# Watched directory configuration dialog
|
## Watched directory configuration dialog
|
||||||
WATCHED_DIRECTORY_CONFIGURATION=Watched Directory Configuration
|
WATCHED_DIRECTORY_CONFIGURATION=Watched Directory Configuration
|
||||||
WATCHED_DIRECTORY_CONFIGURATION_FOR=Configuration for directory {0}
|
WATCHED_DIRECTORY_CONFIGURATION_FOR=Configuration for directory {0}
|
||||||
WATCHED_DIRECTORY_AUTO=Auto-watch directory using operating system
|
WATCHED_DIRECTORY_AUTO=Auto-watch directory using operating system
|
||||||
WATCHED_DIRECTORY_INTERVAL=Directory sync frequency (seconds, 0 means never)
|
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
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package com.muwire.gui
|
package com.muwire.gui
|
||||||
|
|
||||||
import griffon.core.artifact.GriffonView
|
import griffon.core.artifact.GriffonView
|
||||||
|
import static com.muwire.gui.Translator.trans
|
||||||
import griffon.inject.MVCMember
|
import griffon.inject.MVCMember
|
||||||
import griffon.metadata.ArtifactProviderFor
|
import griffon.metadata.ArtifactProviderFor
|
||||||
|
|
||||||
|
@ -27,12 +28,12 @@ class SignView {
|
||||||
void initUI() {
|
void initUI() {
|
||||||
mainFrame = application.windowManager.findWindow("main-frame")
|
mainFrame = application.windowManager.findWindow("main-frame")
|
||||||
|
|
||||||
dialog = new JDialog(mainFrame, "Sign Text", true)
|
dialog = new JDialog(mainFrame, trans("SIGN_TEXT"), true)
|
||||||
|
|
||||||
p = builder.panel {
|
p = builder.panel {
|
||||||
borderLayout()
|
borderLayout()
|
||||||
panel (constraints : BorderLayout.NORTH) {
|
panel (constraints : BorderLayout.NORTH) {
|
||||||
label("Enter text to be signed")
|
label(trans("ENTER_TEXT_TO_SIGN"))
|
||||||
}
|
}
|
||||||
panel (constraints : BorderLayout.CENTER) {
|
panel (constraints : BorderLayout.CENTER) {
|
||||||
gridLayout(rows : 2, cols: 1)
|
gridLayout(rows : 2, cols: 1)
|
||||||
|
@ -44,9 +45,9 @@ class SignView {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
panel (constraints : BorderLayout.SOUTH) {
|
panel (constraints : BorderLayout.SOUTH) {
|
||||||
button(text : "Sign", signAction)
|
button(text : trans("SIGN"), signAction)
|
||||||
button(text : "Copy To Clipboard", copyAction)
|
button(text : trans("COPY_TO_CLIPBOARD"), copyAction)
|
||||||
button(text : "Dismiss", closeAction)
|
button(text : trans("DISMISS"), closeAction)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue