<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
  <title>aC forum: [aC2] Migrating translation from 1.1.x to 2.0 : how to ?</title>
  <link>http://www.activecollab.com/forums/topic/3893/</link>
  <description>Recent posts on topic: [aC2] Migrating translation from 1.1.x to 2.0 : how to ?</description>
  <dc:language>en-us</dc:language>
  <pubDate>Mon, 13 Feb 2012 14:56:32 CET</pubDate>
  
  <item>
    <link>http://www.activecollab.com/forums/post/17518/#post17518</link>
    <guid>http://www.activecollab.com/forums/post/17518/#post17518</guid>
    <title>Post #5 by Ilija Studen</title>
    <dc:creator>Ilija Studen</dc:creator>
    <description><![CDATA[<p>Glad to hear it's working. I've updated upgrade instructions so it now tells you where you should move your translation and the fix posted above will be part of the next beta release.</p>]]></description>
    <pubDate>Mon, 16 Feb 2009 14:01:10 CET</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/17517/#post17517</link>
    <guid>http://www.activecollab.com/forums/post/17517/#post17517</guid>
    <title>Post #4 by davidm</title>
    <dc:creator>davidm</dc:creator>
    <description><![CDATA[<p>Right on the money I've modified Language.class.php as instructed and it works like a charm :))<br />
<br />
Thanks !<br />
Now I can work on completing french translation for 2.0 :)</p>]]></description>
    <pubDate>Mon, 16 Feb 2009 13:53:51 CET</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/17516/#post17516</link>
    <guid>http://www.activecollab.com/forums/post/17516/#post17516</guid>
    <title>Post #3 by davidm</title>
    <dc:creator>davidm</dc:creator>
    <description><![CDATA[<p>Thanks a lot for the quick answer, will check that after lunch and get back to you :)</p>]]></description>
    <pubDate>Mon, 16 Feb 2009 13:08:26 CET</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/17515/#post17515</link>
    <guid>http://www.activecollab.com/forums/post/17515/#post17515</guid>
    <title>Post #2 by Ilija Studen</title>
    <dc:creator>Ilija Studen</dc:creator>
    <description><![CDATA[<p>Translation system is the same as before, just move from /activecollab folder into /custom to avoid situation where you can by accident overwrite localization folder when upgrading. XML is added as format for easy import / export, but translation files are still in PHP (no need to parse them on each request).<br />
<br />
There is a known issue with translation files not being loaded properly in activeCollab 2.0 beta. To work around these issues, open Language.class.php in /activecollab/application/modules/system/models/langauges and make sure that loadTranslations() method works like this:<br />
<br />
<pre name="code" class="brush: php">/**
 * Load translations into given array
 *
 * @param string $locale
 * @return null
 */
function loadTranslations($locale) {
  $files = $this-&gt;getTranslationFiles();
        
  if(is_foreachable($files)) {
    foreach ($files as $file) {
      $GLOBALS['current_locale_translations'][$locale] = array_merge($GLOBALS['current_locale_translations'][$locale], (array) Languages::getTranslation($this, $file));
    } // foreach
  } // if
} // loadTranslations</pre><br />
<br />
Please let me know how it went.</p>]]></description>
    <pubDate>Mon, 16 Feb 2009 12:59:42 CET</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/17514/#post17514</link>
    <guid>http://www.activecollab.com/forums/post/17514/#post17514</guid>
    <title>Post #1 by davidm</title>
    <dc:creator>davidm</dc:creator>
    <description><![CDATA[<p>Just installed aC 2.0 beta local, everything went smooth except for one thing : the 1.1.x translation is not there anymore.<br />
<br />
I understand the translation system is different with a XML file instead of the previous localization folder with module.xxx.php files.<br />
But given the amount of work done, how do I import the existing translation into the new system ?  <br />
<br />
Also, I don't remember which folder I have to make writeable to create a translation file, I have a &quot;Cannot create translation file&quot; error when I try to generate a language file from the dictionnary.<br />
<br />
Thanks !</p>]]></description>
    <pubDate>Mon, 16 Feb 2009 12:43:34 CET</pubDate>
  </item>
</channel>
</rss>
