chrigu
12 years agoGuide
Problems when using text.format
Hi there I defined some custom language keys e.g. some.text = "lorem ipsum" in two different languages. In the code I'm trying to get the value by: text.format{"some.text"} Now the fu...
- 12 years ago
Are you assigning a value to the varible "text" elsewhere in your code, perhaps in one of the macros you've created? If so, I'd suggest renaming the variables you're using because you're likely overwriting the "text" custom context object that already exists. Alternately, you could create a namespace for your macros, which might help prevent them from overwriting your main namespace variables:
http://freemarker.sourceforge.net/docs/dgui_misc_namespace.html