I’ve searched a bid for tutorials on creating resource bundle files for Coldfusion (or internationalization). I’m finding stuff for Coldbox and Mura quite easily. I’ve also found tutorials for Java, but I wonder how they apply in this situation.
However, I’m using Fusebox 3 and Coldfusion 8. I’m not convinced that these would be easily applicable in this situation.
What would be the most basic way to use resource files for language purposes?
You can use the JavaRB CFC along with I18NUtil. JavaRB can be used to load pure java resource bundles and I18NUtil contains lots of number/currency/other functions. We’ve used them successfully for many years.
You can load the resources into the APPLICATION scope which makes key retrieval extremely quick. You just need a way to reload them once you add/updated the resource files.