Skip to content

Commit

Permalink
Modificado o arquivo de strings para o formato .properties
Browse files Browse the repository at this point in the history
  • Loading branch information
dfdf committed Sep 3, 2013
1 parent 24a8a0e commit d85aeaa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import rgms.XMLService
//#end
import org.apache.shiro.SecurityUtils
import org.springframework.web.multipart.MultipartHttpServletRequest
import rgms.publication.Strings.ConferenciaStrings

class ConferenciaController {

Expand Down Expand Up @@ -69,7 +68,7 @@ class ConferenciaController {
if (conferenciaInstance.version > version) {
conferenciaInstance.errors.rejectValue("version", "default.optimistic.locking.failure",
[message(code: 'conferencia.label', default: 'Conferencia')] as Object[],
ConferenciaStrings.updateError)
message(code: 'default.updateError.message'))
render(view: "edit", model: [conferenciaInstance: conferenciaInstance])
return } }
conferenciaInstance.properties = params
Expand Down Expand Up @@ -106,7 +105,7 @@ class ConferenciaController {
}

def enviarConferenciaXML(){
String flashMessage = ConferenciaStrings.importedMsg
String flashMessage = message(code: 'default.importedMsg.message')
XMLService serv = new XMLService()
Node xmlFile = serv.parseReceivedFile(request as MultipartHttpServletRequest)
serv.Import(saveConferencias, returnWithMessage, flashMessage, xmlFile)
Expand Down

This file was deleted.

2 changes: 2 additions & 0 deletions messagesConferencia.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
default.updateError.message = Another user has updated this Conferencia while you were editing
default.importedMsg.message = The non existent conferences were successfully imported

0 comments on commit d85aeaa

Please sign in to comment.