mirror of https://github.com/zlatinb/muwire
externalize strings in show/add comment frames
parent
3b18ed63cb
commit
9b0dbd0ea9
|
@ -383,3 +383,10 @@ ADD_RULE=Add Rule
|
|||
DELETE_RULE=Delete Rule
|
||||
SEARCHER=Searcher
|
||||
CLEAR_HITS=Clear Hits
|
||||
|
||||
## Show Comment frame
|
||||
DISMISS=Dismiss
|
||||
|
||||
## Add comment frame
|
||||
ADD_COMMENT_MULTIPLE=Add comment to multiple files
|
||||
ADD_COMMENT_SINGLE=Add comment to {0}
|
||||
|
|
|
@ -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
|
||||
import net.i2p.data.Base64
|
||||
|
@ -30,10 +31,10 @@ class AddCommentView {
|
|||
|
||||
void initUI() {
|
||||
mainFrame = application.windowManager.findWindow("main-frame")
|
||||
String title = "Add comment to multiple files"
|
||||
String title = trans("ADD_COMMENT_MULTIPLE")
|
||||
String comment = ""
|
||||
if (model.selectedFiles.size() == 1) {
|
||||
title = "Add comments to " + model.selectedFiles[0].getFile().getName()
|
||||
title = trans("ADD_COMMENT_SINGLE",model.selectedFiles[0].getFile().getName())
|
||||
if (model.selectedFiles[0].comment != null)
|
||||
comment = DataUtil.readi18nString(Base64.decode(model.selectedFiles[0].comment))
|
||||
}
|
||||
|
@ -47,8 +48,8 @@ class AddCommentView {
|
|||
}
|
||||
}
|
||||
panel (constraints : BorderLayout.SOUTH) {
|
||||
button(text : "Save", saveAction)
|
||||
button(text : "Cancel", cancelAction)
|
||||
button(text : trans("SAVE"), saveAction)
|
||||
button(text : trans("CANCEL"), cancelAction)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
import net.i2p.data.Base64
|
||||
|
@ -41,7 +42,7 @@ class ShowCommentView {
|
|||
}
|
||||
}
|
||||
panel (constraints : BorderLayout.SOUTH) {
|
||||
button(text : "Dismiss", dismissAction)
|
||||
button(text : trans("DISMISS"), dismissAction)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue