Skip to content

Commit e60c970

Browse files
committed
Fixes #9373 - custom messages on Jetty
1 parent 50ce415 commit e60c970

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

grails-plugin-i18n/src/main/groovy/org/codehaus/groovy/grails/plugins/i18n/I18nGrailsPlugin.groovy

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,14 +116,14 @@ class I18nGrailsPlugin {
116116
// the first underscore in the file name
117117
int numberOfCharsToRemove = fileName.length() - firstUnderscore
118118
int lastCharacterToRetain = -1 * (numberOfCharsToRemove + 1)
119-
path = path[0..lastCharacterToRetain]
119+
fileName = fileName[0..lastCharacterToRetain]
120120
} else {
121121
// Lop off the extension - the "basenames" property in the
122122
// message source cannot have entries with an extension.
123-
path -= ".properties"
123+
fileName -= ".properties"
124124
}
125125

126-
baseNames << "WEB-INF/$baseDir/$path".toString()
126+
baseNames << "WEB-INF/$baseDir/$fileName".toString()
127127
}
128128
}
129129
}

0 commit comments

Comments
 (0)