annotate src/protocols/yahoo/yahoo_profile.c @ 12367:bfc0a52f0cf4

[gaim-migrate @ 14671] A patch from Peter Lawler to make a Yahoo error message more correct. "with the 'new' yahoo 360 profile pages, the language is fine. it's the format that screws us up" committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Tue, 06 Dec 2005 00:09:03 +0000
parents df93ed932b3a
children 6609528f7099
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1 /*
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
2 * gaim
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
3 *
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
4 * Gaim is the legal property of its developers, whose names are too numerous
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
5 * to list here. Please refer to the COPYRIGHT file distributed with this
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
6 * source distribution.
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
7 *
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
8 * This program is free software; you can redistribute it and/or modify
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
9 * it under the terms of the GNU General Public License as published by
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
10 * the Free Software Foundation; either version 2 of the License, or
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
11 * (at your option) any later version.
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
12 *
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
13 * This program is distributed in the hope that it will be useful,
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
16 * GNU General Public License for more details.
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
17 *
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
18 * You should have received a copy of the GNU General Public License
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
19 * along with this program; if not, write to the Free Software
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
21 *
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
22 */
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
23
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
24 #define PHOTO_SUPPORT 1
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
25
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
26 #include "internal.h"
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
27 #include "debug.h"
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
28 #include "notify.h"
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
29 #include "util.h"
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
30 #if PHOTO_SUPPORT
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
31 #include "imgstore.h"
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
32 #endif
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
33
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
34 #include "yahoo.h"
9281
adde46ad65e9 [gaim-migrate @ 10084]
Tim Ringenbach <marv@pidgin.im>
parents: 9242
diff changeset
35 #include "yahoo_friend.h"
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
36
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
37 typedef struct {
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
38 GaimConnection *gc;
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
39 char *name;
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
40 } YahooGetInfoData;
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
41
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
42 typedef enum profile_lang_id {
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
43 XX, DA, DE, EL,
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
44 EN, EN_GB,
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
45 ES_AR, ES_ES, ES_MX, ES_US,
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
46 FR_CA, FR_FR,
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
47 IT, JA, KO, NO, PT, SV,
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
48 ZH_CN, ZH_HK, ZH_TW, ZH_US
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
49 } profile_lang_id_t;
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
50
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
51 typedef struct profile_lang_node {
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
52 profile_lang_id_t lang;
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
53 char *last_updated_string;
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
54 char *det;
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
55 } profile_lang_node_t;
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
56
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
57 typedef struct profile_strings_node {
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
58 profile_lang_id_t lang;
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
59 char *lang_string; /* Only to make debugging output saner */
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
60 char *charset;
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
61 char *yahoo_id_string;
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
62 char *private_string;
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
63 char *no_answer_string;
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
64 char *my_email_string;
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
65 char *realname_string;
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
66 char *location_string;
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
67 char *age_string;
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
68 char *maritalstatus_string;
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
69 char *gender_string;
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
70 char *occupation_string;
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
71 char *hobbies_string;
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
72 char *latest_news_string;
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
73 char *favorite_quote_string;
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
74 char *links_string;
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
75 char *no_home_page_specified_string;
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
76 char *home_page_string;
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
77 char *no_cool_link_specified_string;
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
78 char *cool_link_1_string;
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
79 char *cool_link_2_string;
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
80 char *cool_link_3_string;
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
81 char *dummy;
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
82 } profile_strings_node_t;
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
83
9510
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
84 typedef enum profile_state {
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
85 PROFILE_STATE_DEFAULT,
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
86 PROFILE_STATE_NOT_FOUND,
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
87 PROFILE_STATE_UNKNOWN_LANGUAGE
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
88 } profile_state_t;
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
89
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
90 typedef struct {
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
91 YahooGetInfoData *info_data;
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
92 char *url_buffer;
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
93 GString *s;
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
94 char *photo_url_text;
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
95 char *profile_url_text;
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
96 char *tooltip_text;
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
97 const profile_strings_node_t *strings;
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
98 const char *last_updated_string;
9510
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
99 const char *title;
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
100 profile_state_t profile_state;
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
101 } YahooGetInfoStepTwoData;
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
102
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
103 /* Strings to determine the profile "language" (more accurately "locale").
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
104 * Strings in this list must be in the original charset in the profile.
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
105 * The "Last Updated" string is used, but sometimes is not sufficient to
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
106 * distinguish 2 locales with this (e.g., ES_ES from ES_US, or FR_CA from
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
107 * FR_FR, or EL from EN_GB), in which case a second string is added and
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
108 * such special cases must be placed before the more general case.
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
109 */
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
110 static const profile_lang_node_t profile_langs[] = {
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
111 { DA, "Opdateret sidste gang&nbsp;", NULL },
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
112 { DE, "Letzter Update&nbsp;", NULL },
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
113 { EL, "Last Updated:", "http://gr.profiles.yahoo.com" },
11045
d456fdaf6c73 [gaim-migrate @ 12961]
Richard Laager <rlaager@wiktel.com>
parents: 10604
diff changeset
114 { EN_GB, "Last Update&nbsp;", "Favourite Quote" },
d456fdaf6c73 [gaim-migrate @ 12961]
Richard Laager <rlaager@wiktel.com>
parents: 10604
diff changeset
115 { EN, "Last Update:", NULL },
d456fdaf6c73 [gaim-migrate @ 12961]
Richard Laager <rlaager@wiktel.com>
parents: 10604
diff changeset
116 { EN, "Last Update&nbsp;", NULL },
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
117 { ES_AR, "\332ltima actualizaci\363n&nbsp;", NULL },
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
118 { ES_ES, "Actualizada el&nbsp;", "http://es.profiles.yahoo.com" },
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
119 { ES_MX, "Actualizada el &nbsp;", "http://mx.profiles.yahoo.com" },
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
120 { ES_US, "Actualizada el &nbsp;", NULL },
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
121 { FR_CA, "Derni\xe8re mise \xe0 jour", "http://cf.profiles.yahoo.com" },
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
122 { FR_FR, "Derni\xe8re mise \xe0 jour", NULL },
11626
52695596064d [gaim-migrate @ 13901]
Tim Ringenbach <marv@pidgin.im>
parents: 11533
diff changeset
123 { IT, "Ultimo aggiornamento:", NULL },
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
124 { JA, "\xba\xc7\xbd\xaa\xb9\xb9\xbf\xb7\xc6\xfc\xa1\xa7", NULL },
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
125 { KO, "\xb0\xbb\xbd\xc5\x20\xb3\xaf\xc2\xa5&nbsp;", NULL },
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
126 { NO, "Sist oppdatert&nbsp;", NULL },
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
127 { PT, "\332ltima atualiza\347\343o&nbsp;", NULL },
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
128 { SV, "Senast uppdaterad&nbsp;", NULL },
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
129 { ZH_CN, "\xd7\xee\xba\xf3\xd0\xde\xb8\xc4\xc8\xd5\xc6\xda", NULL },
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
130 { ZH_HK, "\xb3\xcc\xaa\xf1\xa7\xf3\xb7\x73\xae\xc9\xb6\xa1", NULL },
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
131 { ZH_US, "\xb3\xcc\xab\xe1\xad\xd7\xa7\xef\xa4\xe9\xb4\xc1", "http://chinese.profiles.yahoo.com" },
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
132 { ZH_TW, "\xb3\xcc\xab\xe1\xad\xd7\xa7\xef\xa4\xe9\xb4\xc1", NULL },
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
133 { XX, NULL, NULL }
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
134 };
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
135
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
136 /* Strings in this list must be in UTF-8; &nbsp;'s should be specified as spaces. */
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
137 static const profile_strings_node_t profile_strings[] = {
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
138 { DA, "da", "ISO-8859-1",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
139 "Yahoo! ID:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
140 "Privat",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
141 "Intet svar",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
142 "Min Email",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
143 "Rigtige navn:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
144 "Opholdssted:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
145 "Alder:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
146 "Ægteskabelig status:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
147 "Køn:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
148 "Erhverv:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
149 "Hobbyer:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
150 "Sidste nyt:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
151 "Favoritcitat",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
152 "Links",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
153 "Ingen hjemmeside specificeret",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
154 "Forside:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
155 "Intet cool link specificeret",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
156 "Cool link 1:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
157 "Cool link 2:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
158 "Cool link 3:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
159 NULL
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
160 },
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
161 { DE, "de", "ISO-8859-1",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
162 "Yahoo!-ID:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
163 "Privat",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
164 "Keine Antwort",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
165 "Meine E-Mail",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
166 "Realer Name:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
167 "Ort:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
168 "Alter:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
169 "Familienstand:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
170 "Geschlecht:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
171 "Beruf:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
172 "Hobbys:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
173 "Neuste Nachrichten:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
174 "Mein Lieblingsspruch",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
175 "Links",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
176 "Keine Homepage angegeben",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
177 "Homepage:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
178 "Keinen coolen Link angegeben",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
179 "Cooler Link 1:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
180 "Cooler Link 2:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
181 "Cooler Link 3:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
182 NULL
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
183 },
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
184 { EL, "el", "ISO-8859-7", /* EL is identical to EN, except no_answer_string */
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
185 "Yahoo! ID:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
186 "Private",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
187 "Καμία απάντηση",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
188 "My Email",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
189 "Real Name:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
190 "Location:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
191 "Age:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
192 "Marital Status:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
193 "Gender:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
194 "Occupation:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
195 "Hobbies:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
196 "Latest News",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
197 "Favorite Quote",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
198 "Links",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
199 "No home page specified",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
200 "Home Page:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
201 "No cool link specified",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
202 "Cool Link 1:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
203 "Cool Link 2:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
204 "Cool Link 3:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
205 NULL
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
206 },
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
207 { EN, "en", "ISO-8859-1",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
208 "Yahoo! ID:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
209 "Private",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
210 "No Answer",
11045
d456fdaf6c73 [gaim-migrate @ 12961]
Richard Laager <rlaager@wiktel.com>
parents: 10604
diff changeset
211 "My Email:",
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
212 "Real Name:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
213 "Location:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
214 "Age:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
215 "Marital Status:",
11626
52695596064d [gaim-migrate @ 13901]
Tim Ringenbach <marv@pidgin.im>
parents: 11533
diff changeset
216 "Gender:",
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
217 "Occupation:",
11045
d456fdaf6c73 [gaim-migrate @ 12961]
Richard Laager <rlaager@wiktel.com>
parents: 10604
diff changeset
218 "Hobbies",
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
219 "Latest News",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
220 "Favorite Quote",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
221 "Links",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
222 "No home page specified",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
223 "Home Page:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
224 "No cool link specified",
11045
d456fdaf6c73 [gaim-migrate @ 12961]
Richard Laager <rlaager@wiktel.com>
parents: 10604
diff changeset
225 "Cool Link 1",
d456fdaf6c73 [gaim-migrate @ 12961]
Richard Laager <rlaager@wiktel.com>
parents: 10604
diff changeset
226 "Cool Link 2",
d456fdaf6c73 [gaim-migrate @ 12961]
Richard Laager <rlaager@wiktel.com>
parents: 10604
diff changeset
227 "Cool Link 3",
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
228 NULL
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
229 },
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
230 { EN_GB, "en_GB", "ISO-8859-1", /* Same as EN except spelling of "Favourite" */
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
231 "Yahoo! ID:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
232 "Private",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
233 "No Answer",
11045
d456fdaf6c73 [gaim-migrate @ 12961]
Richard Laager <rlaager@wiktel.com>
parents: 10604
diff changeset
234 "My Email:",
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
235 "Real Name:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
236 "Location:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
237 "Age:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
238 "Marital Status:",
11626
52695596064d [gaim-migrate @ 13901]
Tim Ringenbach <marv@pidgin.im>
parents: 11533
diff changeset
239 "Gender:",
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
240 "Occupation:",
11045
d456fdaf6c73 [gaim-migrate @ 12961]
Richard Laager <rlaager@wiktel.com>
parents: 10604
diff changeset
241 "Hobbies",
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
242 "Latest News",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
243 "Favourite Quote",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
244 "Links",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
245 "No home page specified",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
246 "Home Page:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
247 "No cool link specified",
11045
d456fdaf6c73 [gaim-migrate @ 12961]
Richard Laager <rlaager@wiktel.com>
parents: 10604
diff changeset
248 "Cool Link 1",
d456fdaf6c73 [gaim-migrate @ 12961]
Richard Laager <rlaager@wiktel.com>
parents: 10604
diff changeset
249 "Cool Link 2",
d456fdaf6c73 [gaim-migrate @ 12961]
Richard Laager <rlaager@wiktel.com>
parents: 10604
diff changeset
250 "Cool Link 3",
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
251 NULL
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
252 },
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
253 { ES_AR, "es_AR", "ISO-8859-1",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
254 "Usuario de Yahoo!:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
255 "Privado",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
256 "No introdujiste una respuesta",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
257 "Mi dirección de correo electrónico",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
258 "Nombre real:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
259 "Ubicación:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
260 "Edad:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
261 "Estado civil:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
262 "Sexo:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
263 "Ocupación:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
264 "Pasatiempos:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
265 "Últimas noticias:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
266 "Tu cita favorita",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
267 "Enlaces",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
268 "Ninguna página de inicio especificada",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
269 "Página de inicio:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
270 "Ningún enlace preferido",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
271 "Enlace genial 1:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
272 "Enlace genial 2:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
273 "Enlace genial 3:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
274 NULL
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
275 },
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
276 { ES_ES, "es_ES", "ISO-8859-1",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
277 "ID de Yahoo!:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
278 "Privado",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
279 "Sin respuesta",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
280 "Mi correo-e",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
281 "Nombre verdadero:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
282 "Lugar:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
283 "Edad:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
284 "Estado civil:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
285 "Sexo:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
286 "Ocupación:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
287 "Aficiones:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
288 "Ultimas Noticias:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
289 "Tu cita Favorita",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
290 "Enlace",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
291 "Ninguna página personal especificada",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
292 "Página de Inicio:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
293 "Ningún enlace preferido",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
294 "Enlaces Preferidos 1:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
295 "Enlaces Preferidos 2:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
296 "Enlaces Preferidos 3:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
297 NULL
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
298 },
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
299 { ES_MX, "es_MX", "ISO-8859-1",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
300 "ID de Yahoo!:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
301 "Privado",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
302 "Sin responder",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
303 "Mi Dirección de correo-e",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
304 "Nombre real:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
305 "Ubicación:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
306 "Edad:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
307 "Estado civil:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
308 "Sexo:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
309 "Ocupación:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
310 "Pasatiempos:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
311 "Ultimas Noticias:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
312 "Su cita favorita",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
313 "Enlaces",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
314 "Ninguna Página predefinida",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
315 "Página web:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
316 "Ningún Enlace preferido",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
317 "Enlaces Preferidos 1:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
318 "Enlaces Preferidos 2:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
319 "Enlaces Preferidos 3:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
320 NULL
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
321 },
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
322 { ES_US, "es_US", "ISO-8859-1",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
323 "ID de Yahoo!:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
324 "Privado",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
325 "No introdujo una respuesta",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
326 "Mi Dirección de correo-e",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
327 "Nombre real:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
328 "Localidad:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
329 "Edad:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
330 "Estado civil:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
331 "Sexo:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
332 "Ocupación:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
333 "Pasatiempos:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
334 "Ultimas Noticias:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
335 "Su cita Favorita",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
336 "Enlaces",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
337 "Ninguna Página de inicio predefinida",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
338 "Página de inicio:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
339 "Ningún Enlace preferido",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
340 "Enlaces Preferidos 1:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
341 "Enlaces Preferidos 2:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
342 "Enlaces Preferidos 3:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
343 NULL
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
344 },
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
345 { FR_CA, "fr_CA", "ISO-8859-1",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
346 "Compte Yahoo!:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
347 "Privé",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
348 "Sans réponse",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
349 "Mon courriel",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
350 "Nom réel:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
351 "Lieu:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
352 "Âge:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
353 "État civil:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
354 "Sexe:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
355 "Profession:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
356 "Passe-temps:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
357 "Actualités:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
358 "Citation préférée",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
359 "Liens",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
360 "Pas de mention d'une page personnelle",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
361 "Page personnelle:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
362 "Pas de mention d'un lien favori",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
363 "Lien préféré 1:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
364 "Lien préféré 2:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
365 "Lien préféré 3:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
366 NULL
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
367 },
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
368 { FR_FR, "fr_FR", "ISO-8859-1",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
369 "Compte Yahoo!:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
370 "Privé",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
371 "Sans réponse",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
372 "Mon E-mail",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
373 "Nom réel:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
374 "Lieu:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
375 "Âge:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
376 "Situation de famille:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
377 "Sexe:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
378 "Profession:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
379 "Centres d'intérêts:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
380 "Actualités:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
381 "Citation préférée",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
382 "Liens",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
383 "Pas de mention d'une page perso",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
384 "Page perso:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
385 "Pas de mention d'un lien favori",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
386 "Lien préféré 1:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
387 "Lien préféré 2:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
388 "Lien préféré 3:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
389 NULL
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
390 },
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
391 { IT, "it", "ISO-8859-1",
11626
52695596064d [gaim-migrate @ 13901]
Tim Ringenbach <marv@pidgin.im>
parents: 11533
diff changeset
392 "Yahoo! ID:",
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
393 "Non pubblica",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
394 "Nessuna risposta",
11626
52695596064d [gaim-migrate @ 13901]
Tim Ringenbach <marv@pidgin.im>
parents: 11533
diff changeset
395 "La mia e-mail:",
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
396 "Nome vero:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
397 "Località:",
11626
52695596064d [gaim-migrate @ 13901]
Tim Ringenbach <marv@pidgin.im>
parents: 11533
diff changeset
398 "Età:",
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
399 "Stato civile:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
400 "Sesso:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
401 "Occupazione:",
11626
52695596064d [gaim-migrate @ 13901]
Tim Ringenbach <marv@pidgin.im>
parents: 11533
diff changeset
402 "Hobby",
52695596064d [gaim-migrate @ 13901]
Tim Ringenbach <marv@pidgin.im>
parents: 11533
diff changeset
403 "Ultime notizie",
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
404 "Citazione preferita",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
405 "Link",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
406 "Nessuna home page specificata",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
407 "Inizio:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
408 "Nessun link specificato",
11626
52695596064d [gaim-migrate @ 13901]
Tim Ringenbach <marv@pidgin.im>
parents: 11533
diff changeset
409 "Cool Link 1",
52695596064d [gaim-migrate @ 13901]
Tim Ringenbach <marv@pidgin.im>
parents: 11533
diff changeset
410 "Cool Link 2",
52695596064d [gaim-migrate @ 13901]
Tim Ringenbach <marv@pidgin.im>
parents: 11533
diff changeset
411 "Cool Link 3",
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
412 NULL
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
413 },
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
414 { JA, "ja", "EUC-JP",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
415 "Yahoo! JAPAN ID:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
416 "非公開",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
417 "無回答",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
418 "メール:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
419 "名前:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
420 "住所:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
421 "年齢:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
422 "未婚/既婚:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
423 "性別:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
424 "職業:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
425 "趣味:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
426 "最近の出来事:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
427 NULL,
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
428 #if 0
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
429 "おすすめサイト",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
430 #else
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
431 "自己PR", /* "Self description" comes before "Links" for yahoo.co.jp */
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
432 #endif
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
433 NULL,
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
434 NULL,
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
435 NULL,
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
436 "おすすめサイト1:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
437 "おすすめサイト2:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
438 "おすすめサイト3:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
439 NULL
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
440 },
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
441 { KO, "ko", "EUC-KR",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
442 "야후! ID:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
443 "비공개",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
444 "비공개",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
445 "My Email",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
446 "실명:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
447 "거주지:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
448 "나이:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
449 "결혼 여부:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
450 "성별:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
451 "직업:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
452 "취미:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
453 "자기 소개:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
454 "좋아하는 명언",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
455 "링크",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
456 "홈페이지를 지정하지 않았습니다.",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
457 "홈페이지:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
458 "추천 사이트가 없습니다.",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
459 "추천 사이트 1:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
460 "추천 사이트 2:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
461 "추천 사이트 3:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
462 NULL
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
463 },
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
464 { NO, "no", "ISO-8859-1",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
465 "Yahoo! ID:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
466 "Privat",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
467 "Ikke noe svar",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
468 "Min e-post",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
469 "Virkelig navn:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
470 "Sted:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
471 "Alder:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
472 "Sivilstatus:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
473 "Kjønn:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
474 "Yrke:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
475 "Hobbyer:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
476 "Siste nytt:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
477 "Yndlingssitat",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
478 "Lenker",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
479 "Ingen hjemmeside angitt",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
480 "Hjemmeside:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
481 "No cool link specified",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
482 "Bra lenke 1:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
483 "Bra lenke 2:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
484 "Bra lenke 3:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
485 NULL
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
486 },
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
487 { PT, "pt", "ISO-8859-1",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
488 "ID Yahoo!:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
489 "Particular",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
490 "Sem resposta",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
491 "Meu e-mail",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
492 "Nome verdadeiro:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
493 "Local:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
494 "Idade:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
495 "Estado civil:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
496 "Sexo:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
497 "Ocupação:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
498 "Hobbies:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
499 "Últimas notícias:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
500 "Frase favorita",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
501 "Links",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
502 "Nenhuma página pessoal especificada",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
503 "Página pessoal:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
504 "Nenhum site legal especificado",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
505 "Site legal 1:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
506 "Site legal 2:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
507 "Site legal 3:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
508 NULL
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
509 },
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
510 { SV, "sv", "ISO-8859-1",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
511 "Yahoo!-ID:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
512 "Privat",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
513 "Inget svar",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
514 "Min mail",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
515 "Riktigt namn:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
516 "Plats:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
517 "Ålder:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
518 "Civilstånd:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
519 "Kön:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
520 "Yrke:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
521 "Hobby:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
522 "Senaste nytt:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
523 "Favoritcitat",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
524 "Länkar",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
525 "Ingen hemsida specificerad",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
526 "Hemsida:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
527 "Ingen cool länk specificerad",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
528 "Coola länkar 1:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
529 "Coola länkar 2:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
530 "Coola länkar 3:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
531 NULL
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
532 },
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
533 { ZH_CN, "zh_CN", "GB2312",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
534 "Yahoo! ID:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
535 "没有提供",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
536 "没有回答",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
537 "个人电邮地址",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
538 "真实姓名:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
539 "所在地点:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
540 "年龄:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
541 "婚姻状况:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
542 "性别:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
543 "职业:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
544 "业余爱好:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
545 "个人近况:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
546 "喜欢的引言",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
547 "链接",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
548 "没有个人主页",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
549 "个人主页:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
550 "没有推荐网站链接",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
551 "推荐网站链接 1:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
552 "推荐网站链接 2:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
553 "推荐网站链接 3:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
554 NULL
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
555 },
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
556 { ZH_HK, "zh_HK", "Big5",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
557 "Yahoo! ID:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
558 "私人的",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
559 "沒有回答",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
560 "電子信箱",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
561 "真實姓名:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
562 "地點:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
563 "年齡:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
564 "婚姻狀況:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
565 "性別:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
566 "職業:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
567 "嗜好:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
568 "最新消息:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
569 "最喜愛的股票叫價", /* [sic] Yahoo!'s translators don't check context */
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
570 "連結",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
571 "沒有注明個人網頁", /* [sic] */
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
572 "個人網頁:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
573 "沒有注明 Cool 連結", /* [sic] */
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
574 "Cool 連結 1:", /* TODO */
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
575 "Cool 連結 2:", /* TODO */
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
576 "Cool 連結 3:", /* TODO */
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
577 NULL
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
578 },
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
579 { ZH_TW, "zh_TW", "Big5",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
580 "帳 號:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
581 "沒有提供",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
582 "沒有回應",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
583 "電子信箱",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
584 "姓名:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
585 "地點:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
586 "年齡:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
587 "婚姻狀態:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
588 "性別:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
589 "職業:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
590 "興趣:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
591 "個人近況:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
592 "喜歡的名句",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
593 "連結",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
594 "沒有個人網頁",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
595 "個人網頁:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
596 "沒有推薦網站連結",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
597 "推薦網站連結 1:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
598 "推薦網站連結 2:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
599 "推薦網站連結 3:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
600 NULL
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
601 },
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
602 { ZH_US, "zh_US", "Big5", /* ZH_US is like ZH_TW, but also a bit like ZH_HK */
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
603 "Yahoo! ID:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
604 "沒有提供",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
605 "沒有回答",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
606 "個人Email地址",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
607 "真實姓名:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
608 "地點:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
609 "年齡:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
610 "婚姻狀態:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
611 "性別:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
612 "職業:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
613 "嗜好:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
614 "個人近況:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
615 "喜歡的名句",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
616 "連結",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
617 "沒有個人網頁",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
618 "個人網頁:",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
619 "沒有推薦網站連結",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
620 "推薦網站連結 1:", /* TODO */
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
621 "推薦網站連結 2:", /* TODO */
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
622 "推薦網站連結 3:", /* TODO */
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
623 NULL
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
624 },
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
625 { XX, NULL, NULL, NULL, NULL, NULL, NULL },
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
626 };
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
627
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
628 static char *yahoo_remove_nonbreaking_spaces(char *str)
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
629 {
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
630 char *p;
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
631 while ((p = strstr(str, "&nbsp;")) != NULL) {
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
632 *p = ' '; /* Turn &nbsp;'s into ordinary blanks */
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
633 p += 1;
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
634 memmove(p, p + 5, strlen(p + 5));
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
635 str[strlen(str) - 5] = '\0';
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
636 }
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
637 return str;
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
638 }
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
639
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
640 static char *yahoo_tooltip_info_text(YahooGetInfoData *info_data) {
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
641 GString *s = g_string_sized_new(80); /* wild guess */
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
642 GaimBuddy *b;
9281
adde46ad65e9 [gaim-migrate @ 10084]
Tim Ringenbach <marv@pidgin.im>
parents: 9242
diff changeset
643 YahooFriend *f;
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
644
9510
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
645 g_string_printf(s, "<span style=\"font-size: larger\"><b>%s</b></span><br>",
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
646 info_data->name);
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
647 b = gaim_find_buddy(gaim_connection_get_account(info_data->gc),
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
648 info_data->name);
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
649
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
650 if (b) {
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
651 char *statustext = yahoo_tooltip_text(b);
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
652 if(b->alias && b->alias[0]) {
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
653 char *aliastext = g_markup_escape_text(b->alias, -1);
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
654 g_string_append_printf(s, _("<b>Alias:</b> %s<br>"), aliastext);
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
655 g_free(aliastext);
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
656 }
9984
e4a032202d49 [gaim-migrate @ 10895]
Tim Ringenbach <marv@pidgin.im>
parents: 9797
diff changeset
657 #if 0
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
658 if (b->idle > 0) {
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
659 char *idletime = gaim_str_seconds_to_string(time(NULL) - b->idle);
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
660 g_string_append_printf(s, _("<b>%s:</b> %s<br>"), _("Idle"),
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
661 idletime);
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
662 g_free(idletime);
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
663 }
9984
e4a032202d49 [gaim-migrate @ 10895]
Tim Ringenbach <marv@pidgin.im>
parents: 9797
diff changeset
664 #endif
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
665 if (statustext) {
12267
df93ed932b3a [gaim-migrate @ 14569]
Richard Laager <rlaager@wiktel.com>
parents: 11920
diff changeset
666 char *tmp;
df93ed932b3a [gaim-migrate @ 14569]
Richard Laager <rlaager@wiktel.com>
parents: 11920
diff changeset
667 g_strstrip(statustext);
df93ed932b3a [gaim-migrate @ 14569]
Richard Laager <rlaager@wiktel.com>
parents: 11920
diff changeset
668 tmp = gaim_strreplace(statustext, "\n", "<br>");
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
669 g_free(statustext);
12267
df93ed932b3a [gaim-migrate @ 14569]
Richard Laager <rlaager@wiktel.com>
parents: 11920
diff changeset
670 g_string_append_printf(s, "%s<br>", tmp);
df93ed932b3a [gaim-migrate @ 14569]
Richard Laager <rlaager@wiktel.com>
parents: 11920
diff changeset
671 g_free(tmp);
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
672 }
9281
adde46ad65e9 [gaim-migrate @ 10084]
Tim Ringenbach <marv@pidgin.im>
parents: 9242
diff changeset
673 if ((f = yahoo_friend_find(info_data->gc, b->name))) {
adde46ad65e9 [gaim-migrate @ 10084]
Tim Ringenbach <marv@pidgin.im>
parents: 9242
diff changeset
674 const char *ip;
adde46ad65e9 [gaim-migrate @ 10084]
Tim Ringenbach <marv@pidgin.im>
parents: 9242
diff changeset
675 if ((ip = yahoo_friend_get_ip(f)))
adde46ad65e9 [gaim-migrate @ 10084]
Tim Ringenbach <marv@pidgin.im>
parents: 9242
diff changeset
676 g_string_append_printf(s, _("<b>IP Address:</b> %s<br>"), ip);
adde46ad65e9 [gaim-migrate @ 10084]
Tim Ringenbach <marv@pidgin.im>
parents: 9242
diff changeset
677 }
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
678 }
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
679 return g_string_free(s, FALSE);
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
680 }
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
681
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
682 #if PHOTO_SUPPORT
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
683
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
684 static char *yahoo_get_photo_url(const char *url_text, const char *name) {
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
685 GString *s = g_string_sized_new(strlen(name) + 8);
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
686 char *p;
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
687 char *it = NULL;
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
688
11045
d456fdaf6c73 [gaim-migrate @ 12961]
Richard Laager <rlaager@wiktel.com>
parents: 10604
diff changeset
689 /*g_string_printf(s, " alt=\"%s\">", name);*/
d456fdaf6c73 [gaim-migrate @ 12961]
Richard Laager <rlaager@wiktel.com>
parents: 10604
diff changeset
690 /* Y! newformat */
d456fdaf6c73 [gaim-migrate @ 12961]
Richard Laager <rlaager@wiktel.com>
parents: 10604
diff changeset
691 g_string_printf(s, " alt=%s>", name);
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
692 p = strstr(url_text, s->str);
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
693
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
694 if (p) {
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
695 /* Search backwards for "http://". This is stupid, but it works. */
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
696 for (; !it && p > url_text; p -= 1) {
11045
d456fdaf6c73 [gaim-migrate @ 12961]
Richard Laager <rlaager@wiktel.com>
parents: 10604
diff changeset
697 /*if (strncmp(p, "\"http://", 8) == 0) {*/
d456fdaf6c73 [gaim-migrate @ 12961]
Richard Laager <rlaager@wiktel.com>
parents: 10604
diff changeset
698 /* Y! newformat*/
d456fdaf6c73 [gaim-migrate @ 12961]
Richard Laager <rlaager@wiktel.com>
parents: 10604
diff changeset
699 if (strncmp(p, "=http://", 8) == 0) {
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
700 char *q;
11045
d456fdaf6c73 [gaim-migrate @ 12961]
Richard Laager <rlaager@wiktel.com>
parents: 10604
diff changeset
701 p += 1; /* skip only the ' ' */
d456fdaf6c73 [gaim-migrate @ 12961]
Richard Laager <rlaager@wiktel.com>
parents: 10604
diff changeset
702 q = strchr(p, ' ');
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
703 if (q) {
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
704 it = g_strndup(p, q - p);
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
705 }
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
706 }
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
707 }
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
708 }
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
709
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
710 g_string_free(s, TRUE);
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
711 return it;
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
712 }
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
713
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
714 static void yahoo_got_photo(void *data, const char *url_text, size_t len);
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
715
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
716 #endif /* PHOTO_SUPPORT */
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
717
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
718 static void yahoo_got_info(void *data, const char *url_text, size_t len)
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
719 {
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
720 YahooGetInfoData *info_data = (YahooGetInfoData *)data;
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
721 char *p;
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
722 char buf[1024];
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
723 #if PHOTO_SUPPORT
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
724 YahooGetInfoStepTwoData *info2_data;
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
725 char *photo_url_text = NULL;
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
726 #else
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
727 gboolean found = FALSE;
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
728 char *stripped;
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
729 int stripped_len;
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
730 char *last_updated_utf8_string = NULL;
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
731 #endif
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
732 const char *last_updated_string = NULL;
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
733 char *url_buffer;
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
734 GString *s;
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
735 char *tooltip_text = NULL;
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
736 char *profile_url_text = NULL;
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
737 int lang, strid;
9221
8054855f2bb9 [gaim-migrate @ 10017]
Tim Ringenbach <marv@pidgin.im>
parents: 9220
diff changeset
738 struct yahoo_data *yd;
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
739 const profile_strings_node_t *strings = NULL;
9510
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
740 const char *title;
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
741 profile_state_t profile_state = PROFILE_STATE_DEFAULT;
9221
8054855f2bb9 [gaim-migrate @ 10017]
Tim Ringenbach <marv@pidgin.im>
parents: 9220
diff changeset
742
8054855f2bb9 [gaim-migrate @ 10017]
Tim Ringenbach <marv@pidgin.im>
parents: 9220
diff changeset
743 if (!GAIM_CONNECTION_IS_VALID(info_data->gc)) {
8054855f2bb9 [gaim-migrate @ 10017]
Tim Ringenbach <marv@pidgin.im>
parents: 9220
diff changeset
744 g_free(info_data->name);
8054855f2bb9 [gaim-migrate @ 10017]
Tim Ringenbach <marv@pidgin.im>
parents: 9220
diff changeset
745 g_free(info_data);
8054855f2bb9 [gaim-migrate @ 10017]
Tim Ringenbach <marv@pidgin.im>
parents: 9220
diff changeset
746 return;
8054855f2bb9 [gaim-migrate @ 10017]
Tim Ringenbach <marv@pidgin.im>
parents: 9220
diff changeset
747 }
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
748
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
749 gaim_debug_info("yahoo", "In yahoo_got_info\n");
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
750
9221
8054855f2bb9 [gaim-migrate @ 10017]
Tim Ringenbach <marv@pidgin.im>
parents: 9220
diff changeset
751 yd = info_data->gc->proto_data;
9510
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
752 title = (yd->jp? _("Yahoo! Japan Profile") :
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
753 _("Yahoo! Profile"));
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
754
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
755 /* Get the tooltip info string */
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
756 tooltip_text = yahoo_tooltip_info_text(info_data);
9221
8054855f2bb9 [gaim-migrate @ 10017]
Tim Ringenbach <marv@pidgin.im>
parents: 9220
diff changeset
757
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
758 /* We failed to grab the profile URL. This is not expected to actually
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
759 * happen except under unusual error conditions, as Yahoo is observed
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
760 * to send back HTML, with a 200 status code.
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
761 */
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
762 if (url_text == NULL || strcmp(url_text, "") == 0) {
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
763 g_snprintf(buf, 1024, "<html><body>%s<b>%s</b></body></html>",
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
764 tooltip_text, _("Error retrieving profile"));
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
765
11533
c9b815aeddc1 [gaim-migrate @ 13782]
Richard Laager <rlaager@wiktel.com>
parents: 11531
diff changeset
766 gaim_notify_userinfo(info_data->gc, info_data->name,
c9b815aeddc1 [gaim-migrate @ 13782]
Richard Laager <rlaager@wiktel.com>
parents: 11531
diff changeset
767 buf, NULL, NULL);
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
768
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
769 g_free(profile_url_text);
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
770 g_free(tooltip_text);
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
771 g_free(info_data->name);
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
772 g_free(info_data);
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
773 return;
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
774 }
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
775
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
776 /* Construct the correct profile URL */
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
777 s = g_string_sized_new(80); /* wild guess */
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
778 g_string_printf(s, "%s%s", (yd->jp? YAHOOJP_PROFILE_URL: YAHOO_PROFILE_URL),
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
779 info_data->name);
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
780 profile_url_text = g_string_free(s, FALSE);
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
781 s = NULL;
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
782
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
783 /* We don't yet support the multiple link level of the warning page for
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
784 * 'adult' profiles, not to mention the fact that yahoo wants you to be
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
785 * logged in (on the website) to be able to view an 'adult' profile. For
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
786 * now, just tell them that we can't help them, and provide a link to the
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
787 * profile if they want to do the web browser thing.
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
788 */
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
789 p = strstr(url_text, "Adult Profiles Warning Message");
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
790 if (!p) {
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
791 p = strstr(url_text, "Adult Content Warning"); /* TITLE element */
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
792 }
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
793 if (p) {
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
794 g_snprintf(buf, 1024, "<html><body>%s<b>%s</b><br><br>\n"
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
795 "%s<br><a href=\"%s\">%s</a></body></html>",
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
796 tooltip_text,
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
797 _("Sorry, profiles marked as containing adult content "
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
798 "are not supported at this time."),
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
799 _("If you wish to view this profile, "
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
800 "you will need to visit this link in your web browser"),
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
801 profile_url_text, profile_url_text);
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
802
11533
c9b815aeddc1 [gaim-migrate @ 13782]
Richard Laager <rlaager@wiktel.com>
parents: 11531
diff changeset
803 gaim_notify_userinfo(info_data->gc, info_data->name,
c9b815aeddc1 [gaim-migrate @ 13782]
Richard Laager <rlaager@wiktel.com>
parents: 11531
diff changeset
804 buf, NULL, NULL);
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
805
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
806 g_free(profile_url_text);
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
807 g_free(tooltip_text);
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
808 g_free(info_data->name);
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
809 g_free(info_data);
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
810 return;
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
811 }
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
812
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
813 /* Check whether the profile is written in a supported language */
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
814 for (lang = 0;; lang += 1) {
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
815 last_updated_string = profile_langs[lang].last_updated_string;
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
816 if (!last_updated_string) break;
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
817 p = strstr(url_text, last_updated_string);
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
818 if (p && profile_langs[lang].det && !strstr(url_text, profile_langs[lang].det)) {
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
819 p = NULL;
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
820 }
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
821 if (p) break;
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
822 }
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
823 if (p) {
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
824 for (strid = 0; profile_strings[strid].lang != XX; strid += 1) {
9221
8054855f2bb9 [gaim-migrate @ 10017]
Tim Ringenbach <marv@pidgin.im>
parents: 9220
diff changeset
825 if (profile_strings[strid].lang == profile_langs[lang].lang) break;
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
826 }
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
827 strings = profile_strings + strid;
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
828 gaim_debug_info("yahoo", "detected profile lang = %s (%d)\n", profile_strings[strid].lang_string, lang);
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
829 }
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
830
9220
f0488214826f [gaim-migrate @ 10016]
Tim Ringenbach <marv@pidgin.im>
parents: 9164
diff changeset
831 /* Every user may choose his/her own profile language, and this language
f0488214826f [gaim-migrate @ 10016]
Tim Ringenbach <marv@pidgin.im>
parents: 9164
diff changeset
832 * has nothing to do with the preferences of the user which looks at the
f0488214826f [gaim-migrate @ 10016]
Tim Ringenbach <marv@pidgin.im>
parents: 9164
diff changeset
833 * profile. We try to support all languages, but nothing is guaranteed.
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
834 * If we cannot determine the language, it means either (1) the profile
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
835 * is written in an unsupported language, (2) our language support is
11045
d456fdaf6c73 [gaim-migrate @ 12961]
Richard Laager <rlaager@wiktel.com>
parents: 10604
diff changeset
836 * out of date, or (3) the user is not found, or (4) Y! have changed their
d456fdaf6c73 [gaim-migrate @ 12961]
Richard Laager <rlaager@wiktel.com>
parents: 10604
diff changeset
837 * webpage layout
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
838 */
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
839 if (!p || strings->lang == XX) {
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
840 if (!strstr(url_text, "Yahoo! Member Directory - User not found")
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
841 && !strstr(url_text, "was not found on this server.")
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
842 && !strstr(url_text, "\xb8\xf8\xb3\xab\xa5\xd7\xa5\xed\xa5\xd5\xa5\xa3\xa1\xbc\xa5\xeb\xa4\xac\xb8\xab\xa4\xc4\xa4\xab\xa4\xea\xa4\xde\xa4\xbb\xa4\xf3")) {
9510
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
843 profile_state = PROFILE_STATE_UNKNOWN_LANGUAGE;
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
844 } else {
9510
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
845 profile_state = PROFILE_STATE_NOT_FOUND;
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
846 }
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
847 }
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
848
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
849 #if PHOTO_SUPPORT
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
850 photo_url_text = yahoo_get_photo_url(url_text, info_data->name);
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
851 #endif
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
852
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
853 url_buffer = g_strdup(url_text);
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
854
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
855 /*
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
856 * gaim_markup_strip_html() doesn't strip out character entities like &nbsp;
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
857 * and &#183;
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
858 */
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
859 yahoo_remove_nonbreaking_spaces(url_buffer);
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
860 #if 1
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
861 while ((p = strstr(url_buffer, "&#183;")) != NULL) {
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
862 memmove(p, p + 6, strlen(p + 6));
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
863 url_buffer[strlen(url_buffer) - 6] = '\0';
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
864 }
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
865 #endif
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
866
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
867 /* nuke the nasty \r's */
11920
52f27ffe68a5 [gaim-migrate @ 14211]
Mark Doliner <mark@kingant.net>
parents: 11644
diff changeset
868 gaim_str_strip_char(url_buffer, '\r');
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
869
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
870 #if PHOTO_SUPPORT
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
871 /* Marshall the existing state */
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
872 info2_data = g_malloc(sizeof(YahooGetInfoStepTwoData));
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
873 info2_data->info_data = info_data;
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
874 info2_data->url_buffer = url_buffer;
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
875 info2_data->s = s;
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
876 info2_data->photo_url_text = photo_url_text;
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
877 info2_data->profile_url_text = profile_url_text;
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
878 info2_data->tooltip_text = tooltip_text;
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
879 info2_data->strings = strings;
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
880 info2_data->last_updated_string = last_updated_string;
9510
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
881 info2_data->title = title;
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
882 info2_data->profile_state = profile_state;
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
883
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
884 /* Try to put the photo in there too, if there's one */
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
885 if (photo_url_text) {
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
886 /* User-uploaded photos use a different server that requires the Host
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
887 * header, but Yahoo Japan will use the "chunked" content encoding if
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
888 * we specify HTTP 1.1. So we have to specify 1.0 & fix gaim_url_fetch
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
889 */
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
890 gaim_url_fetch(photo_url_text, FALSE, NULL, FALSE, yahoo_got_photo,
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
891 info2_data);
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
892 } else {
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
893 /* Emulate a callback */
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
894 yahoo_got_photo(info2_data, NULL, 0);
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
895 }
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
896 }
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
897
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
898 static void yahoo_got_photo(void *data, const char *url_text, size_t len)
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
899 {
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
900 YahooGetInfoStepTwoData *info2_data = (YahooGetInfoStepTwoData *)data;
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
901 gboolean found = FALSE;
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
902 int id = -1;
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
903
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
904 /* Temporary variables */
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
905 char *p = NULL;
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
906 char *stripped;
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
907 int stripped_len;
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
908 char *last_updated_utf8_string = NULL;
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
909
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
910 /* Unmarshall the saved state */
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
911 YahooGetInfoData *info_data = info2_data->info_data;
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
912 char *url_buffer = info2_data->url_buffer;
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
913 GString *s = info2_data->s;
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
914 char *photo_url_text = info2_data->photo_url_text;
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
915 char *profile_url_text = info2_data->profile_url_text;
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
916 char *tooltip_text = info2_data->tooltip_text;
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
917 const profile_strings_node_t *strings = info2_data->strings;
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
918 const char *last_updated_string = info2_data->last_updated_string;
9510
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
919 profile_state_t profile_state = info2_data->profile_state;
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
920
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
921 /* We continue here from yahoo_got_info, as if nothing has happened */
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
922 #endif /* PHOTO_SUPPORT */
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
923
11045
d456fdaf6c73 [gaim-migrate @ 12961]
Richard Laager <rlaager@wiktel.com>
parents: 10604
diff changeset
924 /* Jun 29 05 Bleeter: Y! changed their profile pages. Terminators now seem to be */
d456fdaf6c73 [gaim-migrate @ 12961]
Richard Laager <rlaager@wiktel.com>
parents: 10604
diff changeset
925 /* </dd> and not \n. The prpl's need to be audited before it can be moved */
d456fdaf6c73 [gaim-migrate @ 12961]
Richard Laager <rlaager@wiktel.com>
parents: 10604
diff changeset
926 /* in to gaim_markup_strip_html*/
d456fdaf6c73 [gaim-migrate @ 12961]
Richard Laager <rlaager@wiktel.com>
parents: 10604
diff changeset
927 char *fudged_buffer;
d456fdaf6c73 [gaim-migrate @ 12961]
Richard Laager <rlaager@wiktel.com>
parents: 10604
diff changeset
928 fudged_buffer = gaim_strcasereplace(url_buffer, "</dd>", "</dd><br>");
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
929 /* nuke the html, it's easier than trying to parse the horrid stuff */
11045
d456fdaf6c73 [gaim-migrate @ 12961]
Richard Laager <rlaager@wiktel.com>
parents: 10604
diff changeset
930 stripped = gaim_markup_strip_html(fudged_buffer);
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
931 stripped_len = strlen(stripped);
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
932
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
933 gaim_debug_misc("yahoo", "stripped = %p\n", stripped);
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
934 gaim_debug_misc("yahoo", "url_buffer = %p\n", url_buffer);
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
935
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
936 /* convert to utf8 */
9510
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
937 if (strings && strings->charset != XX) {
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
938 p = g_convert(stripped, -1, "utf-8", strings->charset,
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
939 NULL, NULL, NULL);
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
940 if (!p) {
9510
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
941 p = g_locale_to_utf8(stripped, -1, NULL, NULL, NULL);
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
942 if (!p) {
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
943 p = g_convert(stripped, -1, "utf-8", "windows-1252",
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
944 NULL, NULL, NULL);
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
945 }
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
946 }
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
947 if (p) {
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
948 g_free(stripped);
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
949 stripped = gaim_utf8_ncr_decode(p);
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
950 stripped_len = strlen(stripped);
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
951 g_free(p);
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
952 }
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
953 }
9510
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
954 p = NULL;
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
955
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
956 /* "Last updated" should also be converted to utf8 and with &nbsp; killed */
9510
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
957 if (strings && strings->charset != XX) {
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
958 last_updated_utf8_string = g_convert(last_updated_string, -1, "utf-8",
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
959 strings->charset, NULL, NULL, NULL);
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
960 yahoo_remove_nonbreaking_spaces(last_updated_utf8_string);
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
961
9510
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
962 gaim_debug_misc("yahoo", "after utf8 conversion: stripped = (%s)\n", stripped);
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
963 }
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
964
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
965 /* gonna re-use the memory we've already got for url_buffer */
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
966 /* no we're not */
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
967 s = g_string_sized_new(strlen(url_buffer));
9510
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
968
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
969 if (profile_state == PROFILE_STATE_DEFAULT) {
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
970 #if 0
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
971 /* extract their Yahoo! ID and put it in. Don't bother marking has_info as
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
972 * true, since the Yahoo! ID will always be there */
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
973 if (!gaim_markup_extract_info_field(stripped, stripped_len, s,
11045
d456fdaf6c73 [gaim-migrate @ 12961]
Richard Laager <rlaager@wiktel.com>
parents: 10604
diff changeset
974 strings->yahoo_id_string, 10, "\n", 0,
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
975 NULL, _("Yahoo! ID"), 0, NULL))
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
976 ;
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
977 #endif
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
978
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
979 #if PHOTO_SUPPORT
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
980 /* Try to put the photo in there too, if there's one and is readable */
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
981 if (data && url_text && len != 0) {
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
982 if (strstr(url_text, "400 Bad Request")
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
983 || strstr(url_text, "403 Forbidden")
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
984 || strstr(url_text, "404 Not Found")) {
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
985
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
986 gaim_debug_info("yahoo", "Error getting %s: %s\n",
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
987 photo_url_text, url_text);
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
988 } else {
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
989 gaim_debug_info("yahoo", "%s is %d bytes\n", photo_url_text, len);
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
990 id = gaim_imgstore_add(url_text, len, NULL);
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
991 g_string_append_printf(s, "<img id=\"%d\"><br>", id);
9220
f0488214826f [gaim-migrate @ 10016]
Tim Ringenbach <marv@pidgin.im>
parents: 9164
diff changeset
992 }
f0488214826f [gaim-migrate @ 10016]
Tim Ringenbach <marv@pidgin.im>
parents: 9164
diff changeset
993 }
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
994 #endif /* PHOTO_SUPPORT */
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
995
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
996 /* extract their Email address and put it in */
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
997 found |= gaim_markup_extract_info_field(stripped, stripped_len, s,
11045
d456fdaf6c73 [gaim-migrate @ 12961]
Richard Laager <rlaager@wiktel.com>
parents: 10604
diff changeset
998 strings->my_email_string, 1, " ", 0,
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
999 strings->private_string, _("Email"), 0, NULL);
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1000
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1001 /* extract the Nickname if it exists */
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1002 found |= gaim_markup_extract_info_field(stripped, stripped_len, s,
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1003 "Nickname:", 1, "\n", '\n',
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1004 NULL, _("Nickname"), 0, NULL);
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1005
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1006 /* extract their RealName and put it in */
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1007 found |= gaim_markup_extract_info_field(stripped, stripped_len, s,
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1008 strings->realname_string, 1, "\n", '\n',
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1009 NULL, _("Realname"), 0, NULL);
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1010
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1011 /* extract their Location and put it in */
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1012 found |= gaim_markup_extract_info_field(stripped, stripped_len, s,
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1013 strings->location_string, 2, "\n", '\n',
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1014 NULL, _("Location"), 0, NULL);
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1015
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1016 /* extract their Age and put it in */
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1017 found |= gaim_markup_extract_info_field(stripped, stripped_len, s,
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1018 strings->age_string, 3, "\n", '\n',
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1019 NULL, _("Age"), 0, NULL);
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1020
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1021 /* extract their MaritalStatus and put it in */
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1022 found |= gaim_markup_extract_info_field(stripped, stripped_len, s,
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1023 strings->maritalstatus_string, 3, "\n", '\n',
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1024 strings->no_answer_string, _("Marital Status"), 0, NULL);
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1025
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1026 /* extract their Gender and put it in */
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1027 found |= gaim_markup_extract_info_field(stripped, stripped_len, s,
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1028 strings->gender_string, 3, "\n", '\n',
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1029 strings->no_answer_string, _("Gender"), 0, NULL);
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1030
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1031 /* extract their Occupation and put it in */
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1032 found |= gaim_markup_extract_info_field(stripped, stripped_len, s,
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1033 strings->occupation_string, 2, "\n", '\n',
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1034 NULL, _("Occupation"), 0, NULL);
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1035
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1036 /* Hobbies, Latest News, and Favorite Quote are a bit different, since
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1037 * the values can contain embedded newlines... but any or all of them
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1038 * can also not appear. The way we delimit them is to successively
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1039 * look for the next one that _could_ appear, and if all else fails,
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1040 * we end the section by looking for the 'Links' heading, which is the
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1041 * next thing to follow this bunch. (For Yahoo Japan, we check for
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1042 * the "Description" ("Self PR") heading instead of "Links".)
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1043 */
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1044
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1045 if (!gaim_markup_extract_info_field(stripped, stripped_len, s,
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1046 strings->hobbies_string, 1, strings->latest_news_string,
11045
d456fdaf6c73 [gaim-migrate @ 12961]
Richard Laager <rlaager@wiktel.com>
parents: 10604
diff changeset
1047 '\n', "\n", _("Hobbies"), 0, NULL))
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1048 {
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1049 if (!gaim_markup_extract_info_field(stripped, stripped_len, s,
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1050 strings->hobbies_string, 1, strings->favorite_quote_string,
11045
d456fdaf6c73 [gaim-migrate @ 12961]
Richard Laager <rlaager@wiktel.com>
parents: 10604
diff changeset
1051 '\n', "\n", _("Hobbies"), 0, NULL))
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1052 {
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1053 found |= gaim_markup_extract_info_field(stripped, stripped_len, s,
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1054 strings->hobbies_string, 1, strings->links_string,
11045
d456fdaf6c73 [gaim-migrate @ 12961]
Richard Laager <rlaager@wiktel.com>
parents: 10604
diff changeset
1055 '\n', "\n", _("Hobbies"), 0, NULL);
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1056 }
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1057 else
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1058 found = TRUE;
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1059 }
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1060 else
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1061 found = TRUE;
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1062
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1063 if (!gaim_markup_extract_info_field(stripped, stripped_len, s,
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1064 strings->latest_news_string, 1, strings->favorite_quote_string,
11045
d456fdaf6c73 [gaim-migrate @ 12961]
Richard Laager <rlaager@wiktel.com>
parents: 10604
diff changeset
1065 '\n', "\n", _("Latest News"), 0, NULL))
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1066 {
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1067 found |= gaim_markup_extract_info_field(stripped, stripped_len, s,
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1068 strings->latest_news_string, 1, strings->links_string,
11045
d456fdaf6c73 [gaim-migrate @ 12961]
Richard Laager <rlaager@wiktel.com>
parents: 10604
diff changeset
1069 '\n', "\n", _("Latest News"), 0, NULL);
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1070 }
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1071 else
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1072 found = TRUE;
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1073
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1074 found |= gaim_markup_extract_info_field(stripped, stripped_len, s,
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1075 strings->favorite_quote_string, 1, strings->links_string,
11045
d456fdaf6c73 [gaim-migrate @ 12961]
Richard Laager <rlaager@wiktel.com>
parents: 10604
diff changeset
1076 '\n', "\n", _("Favorite Quote"), 0, NULL);
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1077
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1078 /* Home Page will either be "No home page specified",
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1079 * or "Home Page: " and a link.
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1080 * For Yahoo! Japan, if there is no home page specified,
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1081 * neither "No home page specified" nor "Home Page:" is shown.
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1082 */
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1083 if (strings->home_page_string) {
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1084 p = !strings->no_home_page_specified_string? NULL:
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1085 strstr(stripped, strings->no_home_page_specified_string);
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1086 if(!p)
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1087 {
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1088 found |= gaim_markup_extract_info_field(stripped, stripped_len, s,
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1089 strings->home_page_string, 1, "\n", 0, NULL,
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1090 _("Home Page"), 1, NULL);
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1091 }
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1092 }
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1093
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1094 /* Cool Link {1,2,3} is also different. If "No cool link specified"
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1095 * exists, then we have none. If we have one however, we'll need to
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1096 * check and see if we have a second one. If we have a second one,
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1097 * we have to check to see if we have a third one.
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1098 */
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1099 p = !strings->no_cool_link_specified_string? NULL:
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1100 strstr(stripped,strings->no_cool_link_specified_string);
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1101 if (!p)
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1102 {
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1103 if (gaim_markup_extract_info_field(stripped, stripped_len, s,
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1104 strings->cool_link_1_string, 1, "\n", 0, NULL,
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1105 _("Cool Link 1"), 1, NULL))
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1106 {
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1107 found = TRUE;
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1108 if (gaim_markup_extract_info_field(stripped, stripped_len, s,
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1109 strings->cool_link_2_string, 1, "\n", 0, NULL,
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1110 _("Cool Link 2"), 1, NULL))
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1111 {
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1112 gaim_markup_extract_info_field(stripped, stripped_len, s,
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1113 strings->cool_link_3_string, 1, "\n", 0, NULL,
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1114 _("Cool Link 3"), 1, NULL);
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1115 }
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1116 }
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1117 }
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1118
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1119 /* see if Member Since is there, and if so, extract it. */
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1120 found |= gaim_markup_extract_info_field(stripped, stripped_len, s,
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1121 "Member Since:", 1, last_updated_utf8_string,
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1122 '\n', NULL, _("Member Since"), 0, NULL);
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1123
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1124 /* extract the Last Updated date and put it in */
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1125 found |= gaim_markup_extract_info_field(stripped, stripped_len, s,
11045
d456fdaf6c73 [gaim-migrate @ 12961]
Richard Laager <rlaager@wiktel.com>
parents: 10604
diff changeset
1126 last_updated_utf8_string, 1, " ", '\n', NULL,
d456fdaf6c73 [gaim-migrate @ 12961]
Richard Laager <rlaager@wiktel.com>
parents: 10604
diff changeset
1127 _("Last Update"), 0, NULL);
9510
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
1128 } /* if (profile_state == PROFILE_STATE_DEFAULT) */
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
1129
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
1130 if(!found)
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
1131 {
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
1132 g_string_append_printf(s, "<br><b>");
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
1133 g_string_append_printf(s, _("User information for %s unavailable"),
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
1134 info_data->name);
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
1135 g_string_append_printf(s, "</b><br>");
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
1136
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
1137 if (profile_state == PROFILE_STATE_UNKNOWN_LANGUAGE) {
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
1138 g_string_append_printf(s, "%s<br><br>",
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
1139 _("Sorry, this profile seems to be in a language "
12367
bfc0a52f0cf4 [gaim-migrate @ 14671]
Mark Doliner <mark@kingant.net>
parents: 12267
diff changeset
1140 "or format that is not supported at this time."));
9510
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
1141
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
1142 } else if (profile_state == PROFILE_STATE_NOT_FOUND) {
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
1143 GaimBuddy *b = gaim_find_buddy
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
1144 (gaim_connection_get_account(info_data->gc),
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
1145 info_data->name);
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
1146 YahooFriend *f = NULL;
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
1147 if (b) {
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
1148 /* Someone on the buddy list can be "not on server list",
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
1149 * in which case the user may or may not actually exist.
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
1150 * Hence this extra step.
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
1151 */
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
1152 f = yahoo_friend_find(b->account->gc, b->name);
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
1153 }
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
1154 g_string_append_printf(s, "%s<br><br>",
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
1155 f? _("Could not retrieve the user's profile. "
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
1156 "This most likely is a temporary server-side problem. "
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
1157 "Please try again later."):
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
1158 _("Could not retrieve the user's profile. "
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
1159 "This most likely means that the user does not exist; "
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
1160 "however, Yahoo! sometimes does fail to find a user's "
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
1161 "profile. If you know that the user exists, "
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
1162 "please try again later."));
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
1163
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
1164 } else {
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
1165 g_string_append_printf(s, "%s<br><br>",
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
1166 _("The user's profile is empty."));
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
1167 }
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
1168 }
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
1169
9220
f0488214826f [gaim-migrate @ 10016]
Tim Ringenbach <marv@pidgin.im>
parents: 9164
diff changeset
1170 /* put a link to the actual profile URL */
f0488214826f [gaim-migrate @ 10016]
Tim Ringenbach <marv@pidgin.im>
parents: 9164
diff changeset
1171 g_string_append_printf(s, _("<b>%s:</b> "), _("Profile URL"));
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1172 g_string_append_printf(s, "<br><a href=\"%s\">%s</a><br>",
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1173 profile_url_text, profile_url_text);
9220
f0488214826f [gaim-migrate @ 10016]
Tim Ringenbach <marv@pidgin.im>
parents: 9164
diff changeset
1174
9510
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
1175 /* finish off the html at the end */
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1176 g_string_append(s, "</body></html>\n");
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1177 g_free(stripped);
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1178
9510
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
1179 /* Put the Yahoo! ID, nickname, idle time, and status message in */
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
1180 g_string_prepend(s, tooltip_text);
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
1181
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
1182 /* finish off the html at the beginning */
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
1183 g_string_prepend(s, "<html><body>\n");
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
1184
2aed8d5cda1b [gaim-migrate @ 10337]
Tim Ringenbach <marv@pidgin.im>
parents: 9281
diff changeset
1185 /* show it to the user */
11533
c9b815aeddc1 [gaim-migrate @ 13782]
Richard Laager <rlaager@wiktel.com>
parents: 11531
diff changeset
1186 gaim_notify_userinfo(info_data->gc, info_data->name,
c9b815aeddc1 [gaim-migrate @ 13782]
Richard Laager <rlaager@wiktel.com>
parents: 11531
diff changeset
1187 s->str, NULL, NULL);
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1188
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1189 g_free(last_updated_utf8_string);
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1190 g_free(url_buffer);
11045
d456fdaf6c73 [gaim-migrate @ 12961]
Richard Laager <rlaager@wiktel.com>
parents: 10604
diff changeset
1191 g_free(fudged_buffer);
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1192 g_string_free(s, TRUE);
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1193 g_free(profile_url_text);
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1194 g_free(tooltip_text);
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1195 g_free(info_data->name);
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1196 g_free(info_data);
9242
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1197
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1198 #if PHOTO_SUPPORT
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1199 g_free(photo_url_text);
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1200 g_free(info2_data);
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1201 if (id != -1)
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1202 gaim_imgstore_unref(id);
fb517adf4972 [gaim-migrate @ 10041]
Tim Ringenbach <marv@pidgin.im>
parents: 9221
diff changeset
1203 #endif
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1204 }
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1205
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1206 void yahoo_get_info(GaimConnection *gc, const char *name)
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1207 {
9164
76125b842b23 [gaim-migrate @ 9949]
Tim Ringenbach <marv@pidgin.im>
parents: 9162
diff changeset
1208 struct yahoo_data *yd = gc->proto_data;
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1209 YahooGetInfoData *data;
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1210 char *url;
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1211
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1212 data = g_new0(YahooGetInfoData, 1);
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1213 data->gc = gc;
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1214 data->name = g_strdup(name);
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1215
9221
8054855f2bb9 [gaim-migrate @ 10017]
Tim Ringenbach <marv@pidgin.im>
parents: 9220
diff changeset
1216 url = g_strdup_printf("%s%s",
8054855f2bb9 [gaim-migrate @ 10017]
Tim Ringenbach <marv@pidgin.im>
parents: 9220
diff changeset
1217 (yd->jp? YAHOOJP_PROFILE_URL: YAHOO_PROFILE_URL), name);
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1218
10604
255225f7639e [gaim-migrate @ 12036]
Stu Tomlinson <stu@nosnilmot.com>
parents: 9984
diff changeset
1219 gaim_url_fetch(url, TRUE, NULL, FALSE, yahoo_got_info, data);
9162
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1220
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1221 g_free(url);
82aa3bc494de [gaim-migrate @ 9947]
Tim Ringenbach <marv@pidgin.im>
parents:
diff changeset
1222 }