<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
  <title>aC forum: Localizing ac 1.0 before the localization system is available : almost there !</title>
  <link>http://www.activecollab.com/forums/topic/2267/</link>
  <description>Recent posts on topic: Localizing ac 1.0 before the localization system is available : almost there !</description>
  <dc:language>en-us</dc:language>
  <pubDate>Fri, 05 Sep 2008 07:39:07 CDT</pubDate>
  
  <item>
    <link>http://www.activecollab.com/forums/post/11068/#post11068</link>
    <guid>http://www.activecollab.com/forums/post/11068/#post11068</guid>
    <title>Post #15 by davidm</title>
    <dc:creator>davidm</dc:creator>
    <description><![CDATA[<p>*bump* <br />
<br />
It's the last thing I need to complete 100% translation !<br />
<br />
And by the way, my clients love ActiveCollab 1.0 :)<br />
There is a french market :D</p>]]></description>
    <pubDate>Fri, 07 Dec 2007 03:16:15 CST</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/10901/#post10901</link>
    <guid>http://www.activecollab.com/forums/post/10901/#post10901</guid>
    <title>Post #14 by davidm</title>
    <dc:creator>davidm</dc:creator>
    <description><![CDATA[<p>Ok I self answered the one above, just some smarty thing line 3 I changed action=started into action=Démarré<br />
<br />
Now I have another one to solve. <br />
<br />
I need to get the &quot;Recent Activities&quot; translated on the dashboard, and there is one thing which escapes me and doesn't seem to be translatable. It's in <b>application/modules/system/views</b>, the <b>_activities.tpl</b> file :<br />
`<br />
<br />
<pre name="code" class="html"> &lt;table&gt;
    &lt;tbody&gt;
    {foreach from=$activities item=activity}
      {assign var=object value=$activity-&gt;getObject()}
      {if instance_of($object, 'ProjectObject')}
        &lt;tr class=&quot;{cycle values='odd,even'}&quot;&gt;
          &lt;td class=&quot;star&quot;&gt;{object_star object=$object user=$logged_user}&lt;/td&gt;
          {if $activity-&gt;getAction() == 'Completed'}
            &lt;td class=&quot;name completed&quot;&gt;&lt;strong&gt;{$object-&gt;getTypeName()|humanize|clean}&lt;/strong&gt;: {object_link object=$object}
          {else}
            &lt;td class=&quot;name&quot;&gt;&lt;strong&gt;{$object-&gt;getTypeName()|humanize|clean}&lt;/strong&gt;: {object_link object=$object del_completed=no}
          {/if}</pre><br />
<br />
The part which interrests me is :<br />
<br />
<pre name="code" class="html">{$object-&gt;getTypeName()|humanize|clean}</pre><br />
<br />
Which return the object type's name, e.g Task, Timerecord...<br />
<br />
At some point I thought the <b>on_get_project_object_types.php</b> were the answer to defining the array of project object type's name but it would seem it's not...<br />
<br />
Any pointer ?</p>]]></description>
    <pubDate>Mon, 26 Nov 2007 12:23:14 CST</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/10877/#post10877</link>
    <guid>http://www.activecollab.com/forums/post/10877/#post10877</guid>
    <title>Post #13 by davidm</title>
    <dc:creator>davidm</dc:creator>
    <description><![CDATA[<p>Still on localizing.<br />
<br />
There are a few things I still have to iron out to get a fully localized ac1.0.<br />
<br />
In <b>activecollab/application/modules/system/helpers/function.action_by.php</b> :<br />
<br />
<pre name="code" class="html">if(instance_of($user, 'User')) {
      return lang(&quot;&lt;span class='no_break'&gt;$action&lt;/span&gt; By &lt;a href=\&quot;:user_url\&quot;&gt;:user_name&lt;/a&gt;&quot;, array(
        'user_name' =&gt; $user-&gt;getDisplayName($short_names),
        'user_url' =&gt; $user-&gt;getViewUrl(),
      ));</pre><br />
<br />
$action value is in english and I can't figure out how to change it without breaking anything.<br />
For Discussions, the matching index.tpl is :<br />
<br />
<pre name="code" class="html">&lt;td class=&quot;name&quot;&gt;
 &lt;h3&gt;&lt;a href=&quot;{$discussion-&gt;getViewUrl()}&quot;&gt;{$discussion-&gt;getName()|clean}&lt;/a&gt;&lt;/h3&gt;
{action_by user=$discussion-&gt;getCreatedBy() action=Started} dans {category_link object=$discussion}
&lt;/td&gt;</pre><br />
<br />
How can this be localized ?<br />
Is there an array of actions somewhere, and can it be localized ?<br />
<br />
Thanks !<br />
</p>]]></description>
    <pubDate>Sat, 24 Nov 2007 05:05:36 CST</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/10862/#post10862</link>
    <guid>http://www.activecollab.com/forums/post/10862/#post10862</guid>
    <title>Post #12 by davidm</title>
    <dc:creator>davidm</dc:creator>
    <description><![CDATA[<p>Last but not least the first item was in wireframe.php in <b>applications/modules/system/layout</b></p>]]></description>
    <pubDate>Thu, 22 Nov 2007 08:36:29 CST</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/10861/#post10861</link>
    <guid>http://www.activecollab.com/forums/post/10861/#post10861</guid>
    <title>Post #11 by davidm</title>
    <dc:creator>davidm</dc:creator>
    <description><![CDATA[<p>And got the third one : it's in <b>on_project_tabs.php</b> in <b>activecollab/application/modules/name_of_the_module/handlers</b></p>]]></description>
    <pubDate>Thu, 22 Nov 2007 08:29:53 CST</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/10860/#post10860</link>
    <guid>http://www.activecollab.com/forums/post/10860/#post10860</guid>
    <title>Post #10 by davidm</title>
    <dc:creator>davidm</dc:creator>
    <description><![CDATA[<p>OK got the second one, it's in <b>activecollab/application/modules/system/handlers/on_build_menu.php</b></p>]]></description>
    <pubDate>Thu, 22 Nov 2007 08:24:52 CST</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/10857/#post10857</link>
    <guid>http://www.activecollab.com/forums/post/10857/#post10857</guid>
    <title>Post #9 by davidm</title>
    <dc:creator>davidm</dc:creator>
    <description><![CDATA[<p>Well, I am short on php skills to do what you suggested, thus I spent the afternoon altering the views for every modules and got down to having a french 1.0.4 version, except for a few strings which I have been trying to locate.<br />
<br />
Here is what I am looking for :<br />
<br />
* the &quot;Welcome back xxxxxxxxx | Admin | Profile | Logout&quot; on top<br />
<br />
* the &quot;People | Projetcs | Calendar | Search | Assignmt. Starred Trash Quick Add&quot;  main menu<br />
<br />
* the &quot;Discussions, Milestones, Files, Checklists, Calendar, Pages, Tickets, Time, People&quot;  project menu bar<br />
<br />
I have looked for tpl files since ActiveCollab uses smarty but I failed to find the proper location for those strings... where are they ? ? ?<br />
</p>]]></description>
    <pubDate>Thu, 22 Nov 2007 06:28:20 CST</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/10835/#post10835</link>
    <guid>http://www.activecollab.com/forums/post/10835/#post10835</guid>
    <title>Post #8 by davidm</title>
    <dc:creator>davidm</dc:creator>
    <description><![CDATA[<p>Thank you !</p>]]></description>
    <pubDate>Wed, 21 Nov 2007 04:38:35 CST</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/10834/#post10834</link>
    <guid>http://www.activecollab.com/forums/post/10834/#post10834</guid>
    <title>Post #7 by Ilija Studen</title>
    <dc:creator>Ilija Studen</dc:creator>
    <description><![CDATA[<p>lang() function is located in /activecollab/angie/functions/environment.php somewhere around line 318</p>]]></description>
    <pubDate>Wed, 21 Nov 2007 04:29:29 CST</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/10833/#post10833</link>
    <guid>http://www.activecollab.com/forums/post/10833/#post10833</guid>
    <title>Post #6 by davidm</title>
    <dc:creator>davidm</dc:creator>
    <description><![CDATA[<p>Back on translating, I find myself wondering where is the lang() function ?<br />
</p>]]></description>
    <pubDate>Wed, 21 Nov 2007 04:16:18 CST</pubDate>
  </item>
</channel>
</rss>