mirror of https://github.com/zlatinb/muwire
externalize strings in certificate view prompts
parent
b3ab1557dc
commit
a7f58c03f7
|
@ -1,6 +1,7 @@
|
||||||
package com.muwire.gui
|
package com.muwire.gui
|
||||||
|
|
||||||
import griffon.core.artifact.GriffonController
|
import griffon.core.artifact.GriffonController
|
||||||
|
import static com.muwire.gui.Translator.trans
|
||||||
import griffon.core.controller.ControllerAction
|
import griffon.core.controller.ControllerAction
|
||||||
import griffon.inject.MVCMember
|
import griffon.inject.MVCMember
|
||||||
import griffon.metadata.ArtifactProviderFor
|
import griffon.metadata.ArtifactProviderFor
|
||||||
|
@ -61,7 +62,7 @@ class FetchCertificatesController {
|
||||||
selectedCerts.each {
|
selectedCerts.each {
|
||||||
core.eventBus.publish(new UIImportCertificateEvent(certificate : it))
|
core.eventBus.publish(new UIImportCertificateEvent(certificate : it))
|
||||||
}
|
}
|
||||||
JOptionPane.showMessageDialog(null, "Certificates imported.")
|
JOptionPane.showMessageDialog(null, trans("CERTIFICATES_IMPORTED"))
|
||||||
}
|
}
|
||||||
|
|
||||||
@ControllerAction
|
@ControllerAction
|
||||||
|
@ -73,7 +74,7 @@ class FetchCertificatesController {
|
||||||
String comment = selectedCerts[0].comment.name
|
String comment = selectedCerts[0].comment.name
|
||||||
def params = [:]
|
def params = [:]
|
||||||
params['text'] = comment
|
params['text'] = comment
|
||||||
params['name'] = "Certificate Comment"
|
params['name'] = trans("CERTIFICATE_COMMENT")
|
||||||
mvcGroup.createMVCGroup("show-comment", params)
|
mvcGroup.createMVCGroup("show-comment", params)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -428,6 +428,8 @@ TRUST_STATUS=Trust Status
|
||||||
ISSUED=Issued
|
ISSUED=Issued
|
||||||
IMPORT=Import
|
IMPORT=Import
|
||||||
SHOW_COMMENT=Show Comment
|
SHOW_COMMENT=Show Comment
|
||||||
|
CERTIFICATES_IMPORTED=Certificates imported.
|
||||||
|
CERTIFICATE_COMMENT=Certificate Comment
|
||||||
|
|
||||||
## Certificate warning dialog
|
## Certificate warning dialog
|
||||||
CERTIFICATE_WARNING=Certificate Warning
|
CERTIFICATE_WARNING=Certificate Warning
|
||||||
|
|
Loading…
Reference in New Issue