equal
deleted
inserted
replaced
611 TBuf<KRealWidth> tempString; |
611 TBuf<KRealWidth> tempString; |
612 |
612 |
613 if( !aSeconds ) |
613 if( !aSeconds ) |
614 { |
614 { |
615 tempString.Num(aSeconds); |
615 tempString.Num(aSeconds); |
|
616 AknTextUtils::LanguageSpecificNumberConversion(tempString); |
616 aTimeString = StringLoader::LoadL( R_LOC_SUPL_TRIGGER_TIME_MINUTES, tempString ); |
617 aTimeString = StringLoader::LoadL( R_LOC_SUPL_TRIGGER_TIME_MINUTES, tempString ); |
617 return; |
618 return; |
618 } |
619 } |
619 |
620 |
620 TReal hrs = TReal(aSeconds)/KHrToSecs; |
621 TReal hrs = TReal(aSeconds)/KHrToSecs; |
623 if( hrs < 1 ) |
624 if( hrs < 1 ) |
624 { |
625 { |
625 TReal mins = TReal(aSeconds)/KMinToSecs; |
626 TReal mins = TReal(aSeconds)/KMinToSecs; |
626 Math::Round( approxValue, mins, 2 ); |
627 Math::Round( approxValue, mins, 2 ); |
627 tempString.Num(approxValue, fmt); |
628 tempString.Num(approxValue, fmt); |
|
629 AknTextUtils::LanguageSpecificNumberConversion(tempString); |
628 aTimeString = StringLoader::LoadL( R_LOC_SUPL_TRIGGER_TIME_MINUTES, tempString ); |
630 aTimeString = StringLoader::LoadL( R_LOC_SUPL_TRIGGER_TIME_MINUTES, tempString ); |
629 } |
631 } |
630 else if( hrs == 1 ) |
632 else if( hrs == 1 ) |
631 { |
633 { |
632 aTimeString = StringLoader::LoadL( R_LOC_SUPL_TRIGGER_TIME_ONEHOUR ); |
634 aTimeString = StringLoader::LoadL( R_LOC_SUPL_TRIGGER_TIME_ONEHOUR ); |
636 TReal days = TReal(aSeconds)/KdayToSecs; |
638 TReal days = TReal(aSeconds)/KdayToSecs; |
637 if( days < 1 ) |
639 if( days < 1 ) |
638 { |
640 { |
639 Math::Round( approxValue, hrs, 2 ); |
641 Math::Round( approxValue, hrs, 2 ); |
640 tempString.Num(approxValue, fmt); |
642 tempString.Num(approxValue, fmt); |
|
643 AknTextUtils::LanguageSpecificNumberConversion(tempString); |
641 aTimeString = StringLoader::LoadL( R_LOC_SUPL_TRIGGER_TIME_HOURS, tempString ); |
644 aTimeString = StringLoader::LoadL( R_LOC_SUPL_TRIGGER_TIME_HOURS, tempString ); |
642 } |
645 } |
643 else if( days == 1 ) |
646 else if( days == 1 ) |
644 { |
647 { |
645 aTimeString = StringLoader::LoadL( R_LOC_SUPL_TRIGGER_TIME_ONEDAY ); |
648 aTimeString = StringLoader::LoadL( R_LOC_SUPL_TRIGGER_TIME_ONEDAY ); |
646 } |
649 } |
647 else |
650 else |
648 { |
651 { |
649 Math::Round( approxValue, days, 2 ); |
652 Math::Round( approxValue, days, 2 ); |
650 tempString.Num(approxValue, fmt); |
653 tempString.Num(approxValue, fmt); |
651 aTimeString = StringLoader::LoadL( R_LOC_SUPL_TRIGGER_TIME_DAYS, tempString ); |
654 AknTextUtils::LanguageSpecificNumberConversion(tempString); |
|
655 aTimeString = StringLoader::LoadL( R_LOC_SUPL_TRIGGER_TIME_DAYS, tempString ); |
652 } |
656 } |
653 } |
657 } |
654 } |
658 } |
655 |
659 |
656 // End of file |
660 // End of file |