How can the starsigns be translated.

THOOR - October 22, 2009 - 15:19
Project:Birthdays
Version:6.x-1.0
Component:Documentation
Category:support request
Priority:normal
Assigned:THOOR
Status:active
Description

First of all - Thx for the module and for the german translation. But what I miss is a translation of the starsigns themselves!

For example a english capricorn would be a german Steinbock :-)
I am using an self themed userprofile page and ther i have the Tag:

<?php if($account->birthdays_starsign) {print '<span class="label">Sternzeichen: </span>'.$account->birthdays_starsign.'<br/>' ;}?><(code>

I get all the time the english starsign names. I tried the surface translation of Drupal, and I tried to change the
<code>function _birthdays_get_starsign($day, $month)

in my template.php - Without success!

Can anybody help me?

#1

THOOR - October 27, 2009 - 09:28

Found a solution .... i.E.: for german starsigns:

                <?php
        $replacements
= array(
       
'capricorn' => 'Steinbock',
       
'aquarius' => 'Wassermann',
       
'pisces' => 'Fisch',
       
'aries' => 'Widder',
       
'taurus' => 'Stier',
       
'gemini' => 'Zwilling',
       
'cancer' => 'Krebs',
       
'leo' => 'L&#246;we',
       
'virgo' => 'Jungfrau',
       
'libra' => 'Waage',
       
'scorpio' => 'Skorpion',
       
'sagittarius' => 'Sch&#252;tze',
        );
        if(
$account->birthdays_starsign)
        print
strtr($account->birthdays_starsign, $replacements);
       
?>

hth - if someone else will need starsigns once in another language than english.

 
 

Drupal is a registered trademark of Dries Buytaert.