My Subscriptions

No active or expired subscriptions. View Available Subscriptions

Advanced Search

Home arrow Forum arrow JCal Pro 1.5.xarrow Translationsarrow Small correction to code for french mod_jcalprolatest
Pages: [1]
Print
Author Topic: Small correction to code for french mod_jcalprolatest  (Read 567 times)
mczn
Newbie
*
Posts: 3



View Profile
« on: March 13, 2007, 07:16:39 PM »

I did a little modification in the code of the module (1.5.2 RC) to replace part of english hardcoded version in function
Code:
function mf_get_daterange_string()
.

This change is made in order to get a correct french point of vue :

 
Code:
      if ( $days >= 0 )
     
        [b]$returnstring = 'Dans ' . round ( $days )  . ' jour(s)';[/b]                //$returnstring = round ( $days ) . ' More Days';
        }
        else
        {
        [b]$returnstring = 'Il y a ' . round ( $days * -1 ) . ' jour(s)';[/b]
        //$returnstring = round ( $days * -1 ) . ' Days Ago';
        }
 

In english one says "21 more days" in french we say "dans 21 jour(s)" (in 21 days)

Perhaps should it be possible to consider that it is more correct to make difference between 1 day (no s) or 2 days (with s) and in that case to extend the if else statement (this could also take account of today, next week or next month formulas)

Anyway, this is a great job and i do this contribution to help this really interesting and professionnaly coded product.

MCZN  Cheesy
Logged
emfglobal
Newbie
*
Posts: 6


View Profile
« Reply #1 on: February 01, 2008, 05:47:17 AM »

Is there anyone who has looked into this?

If so would you be so kind to post the code and resolution here???


Espen
Logged
Pages: [1]
Print
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com

Original Joomla Template design by RocketTheme ( Conversion by Bloc)