<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
<br>I think its abit strange, since the only place I can find MacOsX adding the bundle is in OSystem_SDL::addSysArchivesToSearchSet(Common::SearchSet &s, int priority)  and that was called after the translation setup. But of course, if you are using external themes you won't have the problem of the missing translations.dat when its beeing intialized since its beeing read when reading the external theme. (and that is after the addSysArchivesToSearchSet call)<br><br>Cheers<br>Lars<br><hr id="stopSpelling">Date: Thu, 23 Sep 2010 14:35:05 +0100<br>From: criezy@scummvm.org<br>To: larspp@hotmail.com<br>CC: scummvm-devel@lists.sourceforge.net<br>Subject: Re: [Scummvm-devel] Translation.dat<br><br>When I debugged the code a few weeks ago on MacOS X, the SearchMan had two paths set-up at the time it was loading the translation file: . (current directory) and the Bundle Resources directory.<br><br>And yes, Themes are (or were) initialized after localisation, but what it does is look in the ConfMan for the theme path and then look for the translations file in that path. So the Themes do not need to be initialized at the time it looks for the translations file. The ConfMan does. But for ports that are only using the built-in Classic Theme, that's not really usefull indeed.<br>
<br>Thierry<br><br><div class="ecxgmail_quote">On 23 September 2010 14:13, Lars Persson <span dir="ltr"><<a href="mailto:larspp@hotmail.com">larspp@hotmail.com</a>></span> wrote:<br><blockquote class="ecxgmail_quote" style="padding-left: 1ex;">




<div>
The SearchMan always adds "." to the search path as default, so if your bundle contains the translations.dat file I guess it will find it there(i.e your bundle is your current directory path). <br><br>Themes was initialized after localisation so that path was never search when loading. But small devices are not using external themes to a large exent anyhow.  <br>
<br>Best regards<br>Lars<br><br><hr>Date: Thu, 23 Sep 2010 14:09:23 +0100<div class="ecxim"><br>Subject: Re: [Scummvm-devel] Translation.dat<br></div>From: <a href="mailto:criezy@scummvm.org">criezy@scummvm.org</a><br>
To: <a href="mailto:larspp@hotmail.com">larspp@hotmail.com</a><div><div></div><div class="h5"><br>CC: <a href="mailto:scummvm-devel@lists.sourceforge.net">scummvm-devel@lists.sourceforge.net</a><br>
<br>Hi Lars,<br><br>I see no problem with your change but I am a bit surprised because before that change it was already working fine on MacOS X and looking for the translations file inside the application bundle. I am not sure when that path is added to the SearchMan but I suppose it is done before system creation then. That seems strange.<br>

<br>Secondly, the translations file is supposed to be installed with the themes, and in addition to the SearchMan, it also looks into the theme path (and its sub-directories) for the translations file.<br><br>Thierry<br>
<br>
<div>On 23 September 2010 12:19, Lars Persson <span dir="ltr"><<a href="mailto:larspp@hotmail.com">larspp@hotmail.com</a>></span> wrote:<br><blockquote style="padding-left: 1ex;">




<div>
Hi! Ok.. found one function missing in symbian version to register the 
system wide folder, but it could n't be used until the system had been 
created so I moved the init of the translation manager to after system 
creation. Seems to work fine. <br><br>Cheers<br><br><hr>From: <a href="mailto:larspp@hotmail.com">larspp@hotmail.com</a><br>CC: <a href="mailto:scummvm-devel@lists.sourceforge.net">scummvm-devel@lists.sourceforge.net</a><br>

Date: Thu, 23 Sep 2010 10:03:56 +0000<br>Subject: Re: [Scummvm-devel] Translation.dat<div><div></div><div><br><br>






Hi!<br>Even though the code is commented with "using searchman to find translations.dat" it does n't do much good since the only path available in searchman at the time of loading the translations is "."<br>

<br>In Symbian I would use the extrapath OR config path to load the translations.dat, but then it has to be added to the SearchMan before creating the TranslationManager.<br>That will surely fix any problems we have with loading the translations.dat.<br>

<br>Cheers<br>Lars<br>                                          
<br></div></div>------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
<a href="http://p.sf.net/sfu/novell-sfdev2dev" target="_blank">http://p.sf.net/sfu/novell-sfdev2dev</a><br>_______________________________________________
Scummvm-devel mailing list
<a href="mailto:Scummvm-devel@lists.sourceforge.net">Scummvm-devel@lists.sourceforge.net</a>
<a href="https://lists.sourceforge.net/lists/listinfo/scummvm-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/scummvm-devel</a>                                       </div>
<br>------------------------------------------------------------------------------<br>
Start uncovering the many advantages of virtual appliances<br>
and start using them to simplify application deployment and<br>
accelerate your shift to cloud computing.<br>
<a href="http://p.sf.net/sfu/novell-sfdev2dev" target="_blank">http://p.sf.net/sfu/novell-sfdev2dev</a><br>_______________________________________________<br>
Scummvm-devel mailing list<br>
<a href="mailto:Scummvm-devel@lists.sourceforge.net">Scummvm-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/scummvm-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/scummvm-devel</a><br>
<br></blockquote></div><br>                                       </div></div></div>
<br>------------------------------------------------------------------------------<br>
Start uncovering the many advantages of virtual appliances<br>
and start using them to simplify application deployment and<br>
accelerate your shift to cloud computing.<br>
<a href="http://p.sf.net/sfu/novell-sfdev2dev" target="_blank">http://p.sf.net/sfu/novell-sfdev2dev</a><br>_______________________________________________<br>
Scummvm-devel mailing list<br>
<a href="mailto:Scummvm-devel@lists.sourceforge.net">Scummvm-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/scummvm-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/scummvm-devel</a><br>
<br></blockquote></div><br>
<br>------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev<br>_______________________________________________
Scummvm-devel mailing list
Scummvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scummvm-devel                                        </body>
</html>