Commit d2dd28e
Accept underscore locale filenames by renaming to BCP-47 form
Files like pt_BR.yml were being silently ignored because Locale.forLanguageTag
returns Locale.ROOT for underscore-separated tags. Instead, when a tag contains
'_', replace it with '-', rename the file on disk to the corrected name, and
load it normally. A warning is logged so server admins know the file was
renamed. If a correctly-named file already exists the underscore file is
skipped with a warning.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent d3a04e2 commit d2dd28e
File tree
1 file changed
+22
-3
lines changed- src/main/java/world/bentobox/bentobox/managers
1 file changed
+22
-3
lines changedLines changed: 22 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
275 | | - | |
276 | | - | |
277 | | - | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
278 | 297 | | |
279 | 298 | | |
280 | 299 | | |
| |||
0 commit comments