I18n and constructed strings
Craig Miskell <[email protected]>
| Newsgroups | gmane.comp.java.tapestry.devel |
|---|---|
| Message-ID | <Pine.WNT.4.42.0211092013240.220-100000@wench> |
Hi, Just wondering what other people are doing with constructing internationalized strings. What I mean is, say you want to inform how far through a process you are by displaying a string which, in English comes out in the form "x of y steps" where x and y must be supplied programmatically at runtime. Given that we can't rely on the order of words in other languages, I can't localize just the "of" and "steps" seperately, unless I want to come up with a really odd looking translation in some languages. :-) My current plan is to make the localized string contain %x and %y which should be replaced with the relevant data. Obviously I can code this up each time, and I can even end up doing it generically. But has it been done before, and can I save a little time? Or is this something I can contribute to the community once it's done? Thanks, Craig ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf