Localizing ac 1.0 before the localization system is available : almost there !
Page: 1, 2
And got the third one : it's in on_project_tabs.php in activecollab/application/modules/name_of_the_module/handlers
The best way to predict the future is to invent it
------------------------------------------
Apache 2.2.8 - MySQL 5.0.45 - PHP 5.2.6 | Debian 4.0 (Etch)
------------------------------------------
Apache 2.2.8 - MySQL 5.0.45 - PHP 5.2.6 | Debian 4.0 (Etch)
Last but not least the first item was in wireframe.php in applications/modules/system/layout
The best way to predict the future is to invent it
------------------------------------------
Apache 2.2.8 - MySQL 5.0.45 - PHP 5.2.6 | Debian 4.0 (Etch)
------------------------------------------
Apache 2.2.8 - MySQL 5.0.45 - PHP 5.2.6 | Debian 4.0 (Etch)
Still on localizing.
There are a few things I still have to iron out to get a fully localized ac1.0.
In activecollab/application/modules/system/helpers/function.action_by.php :
$action value is in english and I can't figure out how to change it without breaking anything.
For Discussions, the matching index.tpl is :
How can this be localized ?
Is there an array of actions somewhere, and can it be localized ?
Thanks !
There are a few things I still have to iron out to get a fully localized ac1.0.
In activecollab/application/modules/system/helpers/function.action_by.php :
if(instance_of($user, 'User')) {
return lang("<span class='no_break'>$action</span> By <a href=\":user_url\">:user_name</a>", array(
'user_name' => $user->getDisplayName($short_names),
'user_url' => $user->getViewUrl(),
));$action value is in english and I can't figure out how to change it without breaking anything.
For Discussions, the matching index.tpl is :
<td class="name">
<h3><a href="{$discussion->getViewUrl()}">{$discussion->getName()|clean}</a></h3>
{action_by user=$discussion->getCreatedBy() action=Started} dans {category_link object=$discussion}
</td>How can this be localized ?
Is there an array of actions somewhere, and can it be localized ?
Thanks !
The best way to predict the future is to invent it
------------------------------------------
Apache 2.2.8 - MySQL 5.0.45 - PHP 5.2.6 | Debian 4.0 (Etch)
------------------------------------------
Apache 2.2.8 - MySQL 5.0.45 - PHP 5.2.6 | Debian 4.0 (Etch)
Ok I self answered the one above, just some smarty thing line 3 I changed action=started into action=Démarré
Now I have another one to solve.
I need to get the "Recent Activities" translated on the dashboard, and there is one thing which escapes me and doesn't seem to be translatable. It's in application/modules/system/views, the _activities.tpl file :
`
The part which interrests me is :
Which return the object type's name, e.g Task, Timerecord...
At some point I thought the on_get_project_object_types.php were the answer to defining the array of project object type's name but it would seem it's not...
Any pointer ?
Now I have another one to solve.
I need to get the "Recent Activities" translated on the dashboard, and there is one thing which escapes me and doesn't seem to be translatable. It's in application/modules/system/views, the _activities.tpl file :
`
<table>
<tbody>
{foreach from=$activities item=activity}
{assign var=object value=$activity->getObject()}
{if instance_of($object, 'ProjectObject')}
<tr class="{cycle values='odd,even'}">
<td class="star">{object_star object=$object user=$logged_user}</td>
{if $activity->getAction() == 'Completed'}
<td class="name completed"><strong>{$object->getTypeName()|humanize|clean}</strong>: {object_link object=$object}
{else}
<td class="name"><strong>{$object->getTypeName()|humanize|clean}</strong>: {object_link object=$object del_completed=no}
{/if}The part which interrests me is :
{$object->getTypeName()|humanize|clean}Which return the object type's name, e.g Task, Timerecord...
At some point I thought the on_get_project_object_types.php were the answer to defining the array of project object type's name but it would seem it's not...
Any pointer ?
The best way to predict the future is to invent it
------------------------------------------
Apache 2.2.8 - MySQL 5.0.45 - PHP 5.2.6 | Debian 4.0 (Etch)
------------------------------------------
Apache 2.2.8 - MySQL 5.0.45 - PHP 5.2.6 | Debian 4.0 (Etch)



