externalize strings in update dialog

pull/53/head
Zlatin Balevsky 2020-09-29 13:55:37 +01:00
parent c69f55905b
commit 3f9e183f9d
No known key found for this signature in database
GPG Key ID: A72832072D525E41
2 changed files with 9 additions and 3 deletions

View File

@ -398,3 +398,8 @@ CLOSE_MUWIRE_QUESTION=Close MuWire?
MINIMIZE_OR_EXIT=Would you like to minimize to system tray or exit immediately?
REMEMBER_DECISION=Remember my decision
EXIT_MUWIRE=Exit MuWire
## Update dialog
UPDATE_DOWNLOADED=Update Downloaded
UPDATE_AVAILABLE=Update Available
FIND=Find

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
@ -26,7 +27,7 @@ class UpdateView {
void initUI() {
mainFrame = application.windowManager.findWindow("main-frame")
String title = model.downloaded != null ? "Update Downloaded" : "Update Available"
String title = model.downloaded != null ? trans("UPDATE_DOWNLOADED") : trans("UPDATE_AVAILABLE")
dialog = new JDialog(mainFrame, title, true)
dialog.setResizable(true)
@ -40,8 +41,8 @@ class UpdateView {
}
panel (constraints : BorderLayout.SOUTH) {
if (model.available != null)
button(text : "Find", searchAction)
button(text : "Close", closeAction)
button(text : trans("FIND"), searchAction)
button(text : trans("CLOSE"), closeAction)
}
}
}