• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

localize the citation block

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I am trying to localize jforum to Chinese, now I have problem in replacing citation block

e.g. I want to localize "xxx wrote". I need to replace the bbcode specified in bb_config.

Can any one told me how to do it? Should I use ${I18n.getMessage("PostShow.wrote")}?

thank you for the help.
[originally posted on jforum.net by seaman]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not sure that you can do that will the bb_code stuff. This is basically a RegEx pre-processor of the information stored in the database. This is then fed into the templates as just the text of the related object. So you can't use any FreeMarker code in this.. unless Freemarker has some sort of "eval" statement to process template info from data objects.

You may have to add this functionality to the BBCode class. E.g., search for an I18n function and do the replacement there.
[originally posted on jforum.net by monroe]
 
What is that? Is that a mongol hoarde? Can we fend them off with this tiny ad?
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic