Changeset 885efac6


Ignore:
Timestamp:
2007-12-16T02:55:56Z (16 years ago)
Author:
Miklos Vajna <vmiklos@…>
Branches:
master
Children:
bdde805
Parents:
93052e1
Message:

fixed country and language format

File:
1 edited

Legend:

Unmodified
Added
Removed
  • skype/skype.c

    r93052e1 r885efac6  
    351351                                        {
    352352                                                if(strlen(sd->info_tz))
     353                                                {
     354                                                        // FIXME secs -> str
    353355                                                        g_string_append_printf(st, "Local Time: %s\n", sd->info_tz);
     356                                                }
    354357                                                g_free(sd->info_tz);
    355358                                        }
     
    357360                                        {
    358361                                                if(strlen(sd->info_seen))
     362                                                {
     363                                                        // FIXME unixtimestamp -> str
    359364                                                        g_string_append_printf(st, "Last Seen: %s\n", sd->info_seen);
     365                                                }
    360366                                                g_free(sd->info_seen);
    361367                                        }
     
    363369                                        {
    364370                                                if(strlen(sd->info_birthday))
     371                                                {
     372                                                        // FIXME 19880101 -> str
    365373                                                        g_string_append_printf(st, "Birthday: %s\n", sd->info_birthday);
     374                                                        g_string_append_printf(st, "Age:\n");
     375                                                }
    366376                                                g_free(sd->info_birthday);
    367377                                        }
     
    369379                                        {
    370380                                                if(strlen(sd->info_sex))
     381                                                {
     382                                                        // FIXME: UNKNOWN -> Unknown
    371383                                                        g_string_append_printf(st, "Gender: %s\n", sd->info_sex);
     384                                                }
    372385                                                g_free(sd->info_sex);
    373386                                        }
     
    375388                                        {
    376389                                                if(strlen(sd->info_language))
    377                                                         g_string_append_printf(st, "Language: %s\n", sd->info_language);
     390                                                {
     391                                                        char *iptr = strchr(sd->info_language, ' ');
     392                                                        if(iptr)
     393                                                                iptr++;
     394                                                        else
     395                                                                iptr = sd->info_language;
     396                                                        g_string_append_printf(st, "Language: %s\n", iptr);
     397                                                }
    378398                                                g_free(sd->info_language);
    379399                                        }
     
    381401                                        {
    382402                                                if(strlen(sd->info_country))
    383                                                         g_string_append_printf(st, "Country: %s\n", sd->info_country);
     403                                                {
     404                                                        char *iptr = strchr(sd->info_country, ' ');
     405                                                        if(iptr)
     406                                                                iptr++;
     407                                                        else
     408                                                                iptr = sd->info_country;
     409                                                        g_string_append_printf(st, "Country: %s\n", sd->iptr);
     410                                                }
    384411                                                g_free(sd->info_country);
    385412                                        }
Note: See TracChangeset for help on using the changeset viewer.