Cool. I'm glad we can agree on this.<div><br class="webkit-block-placeholder"></div><div>I'm working away at map method at the moment. I'll either apply the patch or code in the functionalities before end of this week.
</div><div><br class="webkit-block-placeholder"></div><div>John,</div><div>The reason it's in a hash it because Ruby can load a yaml file straight into it. A yaml file is basically a hash in file format. Imagine this in the file:
</div><div>en:</div><div> this_text: "say something here"</div><div> other_text: "say something else"</div><div><div>cn:</div><div> this_text: "i'd type in chinese if I could"</div><div>
other_text: "some more stuff"</div><div><br class="webkit-block-placeholder"></div><div>Ruby can then load all that into a hash to be easily used.</div><div><br><div><span class="gmail_quote">On 23/01/2008, <b class="gmail_sendername">
Tom Hughes</b> <<a href="mailto:tom@compton.nu">tom@compton.nu</a>> wrote:</span><blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex">In message <<a href="mailto:e04cd2420801230920t7eec23e6q4d21e298c38130a3@mail.gmail.com">
e04cd2420801230920t7eec23e6q4d21e298c38130a3@mail.gmail.com</a>><br> Xin Zheng <<a href="mailto:xin@zxv.ltd.uk">xin@zxv.ltd.uk</a>> wrote:<br><br>> My aim is to clean up the code so I can easily and safely add new
<br>> functionality. Extracting the output string like this takes a step in that<br>> direction.<br><br>Clearly this is not bad as such, and it doesn't do any significant<br>damage beyond perhaps making certain types of edit to the code a bit
<br>more of a pain, so if you really want to do it then fine. I just don't<br>think it's worth spending a lot of time on when there are better<br>things to do.<br><br>If you want to do something useful to the map call then review the
<br>patch at <a href="http://trac.openstreetmap.org/ticket/648">http://trac.openstreetmap.org/ticket/648</a> and consider<br>applying it, and see if you can tidy things up now that we have<br>the multi component key stuff - the version in amf_controller
<br>looks quite a lot nicer than the main map call now ;-)<br><br>With that I think I'm going to tune out for a few days and let you<br>three get on with whatever it is you're going to do and I'll look at<br>what you come up with next week or something rather than trying to
<br>keep up in real time.<br><br>Have fun, and try not to do too much damage guys!<br><br>Tom<br><br>--<br>Tom Hughes (<a href="mailto:tom@compton.nu">tom@compton.nu</a>)<br><a href="http://www.compton.nu/">http://www.compton.nu/
</a><br><br>_______________________________________________<br>dev mailing list<br><a href="mailto:dev@openstreetmap.org">dev@openstreetmap.org</a><br><a href="http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev">
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev</a><br></blockquote></div><br> </div></div>