Hi all,<br>
<br>
I'm playing with the sushi cart of seaside. I'm trying to create a
Dutch version of it. That's simply looking up text and replacing it.<br>
<br>
Hmm, at least that's what I thought.<br>
<br>
Because then I've come across the printStringAsCents method to show the price (for instance $ 1.50 ). <br>
<br>As I live in Europe, I don't want to use $, but Euro's. Of course, if someone gives them to me, I won't say no to a few dollars ;-)<br>
<br>
It seems to be here:<br>
Kernel-Numbers / Integer <br>
printStringAsCents method, which is: <br>
^ '$', (self // 100) displayString, '.', (self \\ 100) asTwoCharacterString<br>
<br>
1a. Should I replace the $ sign here? Can I put the Euro sign here?<br><br>But I don't like changing kernel methods:<br>
- it seems dangerous because I don't know what depends on it<br>
- hard to transfer to other installations<br>
- and it is very likely that I will forget that I changed it for the sushi cart because the code is 'hidden' somewhere else.<br>
<br>
Besides that, I would like to be able to set the kind of currency.<br><br>1b. Is
there multilingual (regarding currencies / display of date and time /
use of an external file with string messages that can be translated
instead of hard coded text) library somewhere out there?<br>
<br>
2. Because of all the help, I know how to find classes, which is great.
But in my search for the printStringAsCents I was wondering how do I
find messages when I know the message name, but not the class name? Or
is it easy to determine the class name in some way?<br>
<br>
Any thoughts are appreciated.<br>