[Vtigercrm-developers] Translations always

Allan Bush allan.bush+vtiger_dev at gmail.com
Mon Aug 14 08:47:48 PDT 2006


Most contact list's I don't see as a problem because you can edit
they're values through the web interface.  It may be nice to abstract
the population of there default values somewhat to make it easier to
provide an installation in different languages.

The problem is with the drop down lists you can't modify.  Usually the
reason you can't modify them is because there values are hard coded
throughout the application.  I suppose all that needs to be done is to
abstract the value and the display of the value within the
application.  From that point of view something like they may work.

The only drop down which is a problem as far as I know is the Activity
Type drop done under event.  To me the best thing to do here is to
create a separate field in activity table to distinguish between
event, task and email (which is what that field does now, which it a
pretty stupid design in the first place) and then make that field
fully editable (as it will only appear under events and it's value
won't determine anything).  Outside of removing all the hard coded
references to the activity type value the only other change would be
to the lose of a different icon for calls and meetings in the
calendar.

On 8/14/06, Aïssa <webmaster at vtigerfacile.com> wrote:
> Hi team,
> what do you think about add this kind of things on
> /includes/Utils/ListViewUtils.php at the end of getValue function, this
> allow to have the "dropdown values" (like Call/Meeting/Created...)
> translated if exists on lang file.
> I have not really tested (specially with relatedlists).
> Now the same thing with Detailview, email notice (if your customers are
> from different country!) to keep the system work with full multilang
> environnement.
>
> //Added for listviews "dropdown values" translations
>     if(($module=="Contacts") && ($colname=="title")){
>         if($app_strings[$value]){
>             $value = $app_strings[$value];
>         }
>         else{
>             $value=$value;
>         }
>         }
>
>
>
>     if(($module=="Potentials") && ($colname=='sales_stage') or
> ($colname=='leadsource')){
>
>
>         if($app_strings[$value]){
>             $value = $app_strings[$value];
>         }
>         else{
>             $value=$value;
>         }
>     }
>
>     if(($colname=='quotestage') OR ($colname=="invoicestatus") OR
> ($colname=="campaigntype") OR ($colname=="campaignstatus") OR
> ($colname=='activitytype') or ($colname=='activitystatus')){
>         if($app_strings[$value]){
>             $value = $app_strings[$value];
>         }
>         else{
>             $value=$value;
>         }
>
>     }
>     if(($module=='HelpDesk') && ($colname=="status") or
> ($colname=="priority")){
>         if($app_strings[$value]){
>             $value = $app_strings[$value];
>         }
>         else{
>             $value=$value;
>         }
>
>     }
>         if(($module=="Faq") && ($colname=='category')){
>
>
>         if($app_strings[$value]){
>             $value = $app_strings[$value];
>         }
>         else{
>             $value=$value;
>         }
>     }
>
>     //End lisview "dropdown values" translations
>
>
> Best regards,
> Aïssa
> _______________________________________________
> Get started with creating presentations online - http://zohoshow.com?vt
>




More information about the vtigercrm-developers mailing list