Mercurial > pidgin
comparison src/protocols/yahoo/yahoo.c @ 4596:7e1591c6d0d8
[gaim-migrate @ 4881]
Bjoern Voigt writes:
"The patch
---------
Some small i18n fixes
- some new files in po/POTFILES.in (I hope, there are now all files,
with gettext-strings)
- a translation for the "boring default" away message (not hardcoded
any more)
- translations for the Menu Bar during conversations
After looking in gconf-editor, I saw, that the static items should
be marked with N_(...) = gettext_noop. The strings can now be
translated, but unfortunately I still can see them.
- Yahoo away messages translation
German translation
------------------
2 strings are untranslated:
#: src/gaim-disclosure.c:253
msgid "Expander Size"
msgstr ""
#: src/gaim-disclosure.c:254
msgid "Size of the expander arrow"
msgstr ""
File transfer doen't work on my box and so I cannot test the function."
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Fri, 21 Feb 2003 04:33:56 +0000 |
parents | 3196d9044a45 |
children | 864518c3767d |
comparison
equal
deleted
inserted
replaced
4595:63c022ca157c | 4596:7e1591c6d0d8 |
---|---|
1022 | 1022 |
1023 static char *yahoo_get_status_string(enum yahoo_status a) | 1023 static char *yahoo_get_status_string(enum yahoo_status a) |
1024 { | 1024 { |
1025 switch (a) { | 1025 switch (a) { |
1026 case YAHOO_STATUS_BRB: | 1026 case YAHOO_STATUS_BRB: |
1027 return "Be Right Back"; | 1027 return _("Be Right Back"); |
1028 case YAHOO_STATUS_BUSY: | 1028 case YAHOO_STATUS_BUSY: |
1029 return "Busy"; | 1029 return _("Busy"); |
1030 case YAHOO_STATUS_NOTATHOME: | 1030 case YAHOO_STATUS_NOTATHOME: |
1031 return "Not At Home"; | 1031 return _("Not At Home"); |
1032 case YAHOO_STATUS_NOTATDESK: | 1032 case YAHOO_STATUS_NOTATDESK: |
1033 return "Not At Desk"; | 1033 return _("Not At Desk"); |
1034 case YAHOO_STATUS_NOTINOFFICE: | 1034 case YAHOO_STATUS_NOTINOFFICE: |
1035 return "Not In Office"; | 1035 return _("Not In Office"); |
1036 case YAHOO_STATUS_ONPHONE: | 1036 case YAHOO_STATUS_ONPHONE: |
1037 return "On Phone"; | 1037 return _("On Phone"); |
1038 case YAHOO_STATUS_ONVACATION: | 1038 case YAHOO_STATUS_ONVACATION: |
1039 return "On Vacation"; | 1039 return _("On Vacation"); |
1040 case YAHOO_STATUS_OUTTOLUNCH: | 1040 case YAHOO_STATUS_OUTTOLUNCH: |
1041 return "Out To Lunch"; | 1041 return _("Out To Lunch"); |
1042 case YAHOO_STATUS_STEPPEDOUT: | 1042 case YAHOO_STATUS_STEPPEDOUT: |
1043 return "Stepped Out"; | 1043 return _("Stepped Out"); |
1044 case YAHOO_STATUS_INVISIBLE: | 1044 case YAHOO_STATUS_INVISIBLE: |
1045 return "Invisible"; | 1045 return _("Invisible"); |
1046 default: | 1046 default: |
1047 return "Online"; | 1047 return _("Online"); |
1048 } | 1048 } |
1049 } | 1049 } |
1050 | 1050 |
1051 static void yahoo_game(struct gaim_connection *gc, char *name) { | 1051 static void yahoo_game(struct gaim_connection *gc, char *name) { |
1052 struct yahoo_data *yd = (struct yahoo_data *)gc->proto_data; | 1052 struct yahoo_data *yd = (struct yahoo_data *)gc->proto_data; |
1196 if (msg) { | 1196 if (msg) { |
1197 yd->current_status = YAHOO_STATUS_CUSTOM; | 1197 yd->current_status = YAHOO_STATUS_CUSTOM; |
1198 gc->away = g_strdup(msg); | 1198 gc->away = g_strdup(msg); |
1199 } else if (state) { | 1199 } else if (state) { |
1200 gc->away = g_strdup(""); | 1200 gc->away = g_strdup(""); |
1201 if (!strcmp(state, "Available")) { | 1201 if (!strcmp(state, _("Available"))) { |
1202 yd->current_status = YAHOO_STATUS_AVAILABLE; | 1202 yd->current_status = YAHOO_STATUS_AVAILABLE; |
1203 g_free(gc->away); | 1203 g_free(gc->away); |
1204 gc->away = NULL; | 1204 gc->away = NULL; |
1205 } else if (!strcmp(state, "Be Right Back")) { | 1205 } else if (!strcmp(state, _("Be Right Back"))) { |
1206 yd->current_status = YAHOO_STATUS_BRB; | 1206 yd->current_status = YAHOO_STATUS_BRB; |
1207 } else if (!strcmp(state, "Busy")) { | 1207 } else if (!strcmp(state, _("Busy"))) { |
1208 yd->current_status = YAHOO_STATUS_BUSY; | 1208 yd->current_status = YAHOO_STATUS_BUSY; |
1209 } else if (!strcmp(state, "Not At Home")) { | 1209 } else if (!strcmp(state, _("Not At Home"))) { |
1210 yd->current_status = YAHOO_STATUS_NOTATHOME; | 1210 yd->current_status = YAHOO_STATUS_NOTATHOME; |
1211 } else if (!strcmp(state, "Not At Desk")) { | 1211 } else if (!strcmp(state, _("Not At Desk"))) { |
1212 yd->current_status = YAHOO_STATUS_NOTATDESK; | 1212 yd->current_status = YAHOO_STATUS_NOTATDESK; |
1213 } else if (!strcmp(state, "Not In Office")) { | 1213 } else if (!strcmp(state, _("Not In Office"))) { |
1214 yd->current_status = YAHOO_STATUS_NOTINOFFICE; | 1214 yd->current_status = YAHOO_STATUS_NOTINOFFICE; |
1215 } else if (!strcmp(state, "On Phone")) { | 1215 } else if (!strcmp(state, _("On Phone"))) { |
1216 yd->current_status = YAHOO_STATUS_ONPHONE; | 1216 yd->current_status = YAHOO_STATUS_ONPHONE; |
1217 } else if (!strcmp(state, "On Vacation")) { | 1217 } else if (!strcmp(state, _("On Vacation"))) { |
1218 yd->current_status = YAHOO_STATUS_ONVACATION; | 1218 yd->current_status = YAHOO_STATUS_ONVACATION; |
1219 } else if (!strcmp(state, "Out To Lunch")) { | 1219 } else if (!strcmp(state, _("Out To Lunch"))) { |
1220 yd->current_status = YAHOO_STATUS_OUTTOLUNCH; | 1220 yd->current_status = YAHOO_STATUS_OUTTOLUNCH; |
1221 } else if (!strcmp(state, "Stepped Out")) { | 1221 } else if (!strcmp(state, _("Stepped Out"))) { |
1222 yd->current_status = YAHOO_STATUS_STEPPEDOUT; | 1222 yd->current_status = YAHOO_STATUS_STEPPEDOUT; |
1223 } else if (!strcmp(state, "Invisible")) { | 1223 } else if (!strcmp(state, _("Invisible"))) { |
1224 yd->current_status = YAHOO_STATUS_INVISIBLE; | 1224 yd->current_status = YAHOO_STATUS_INVISIBLE; |
1225 } else if (!strcmp(state, GAIM_AWAY_CUSTOM)) { | 1225 } else if (!strcmp(state, GAIM_AWAY_CUSTOM)) { |
1226 if (gc->is_idle) { | 1226 if (gc->is_idle) { |
1227 yd->current_status = YAHOO_STATUS_IDLE; | 1227 yd->current_status = YAHOO_STATUS_IDLE; |
1228 } else { | 1228 } else { |
1275 | 1275 |
1276 static GList *yahoo_away_states(struct gaim_connection *gc) | 1276 static GList *yahoo_away_states(struct gaim_connection *gc) |
1277 { | 1277 { |
1278 GList *m = NULL; | 1278 GList *m = NULL; |
1279 | 1279 |
1280 m = g_list_append(m, "Available"); | 1280 m = g_list_append(m, _("Available")); |
1281 m = g_list_append(m, "Be Right Back"); | 1281 m = g_list_append(m, _("Be Right Back")); |
1282 m = g_list_append(m, "Busy"); | 1282 m = g_list_append(m, _("Busy")); |
1283 m = g_list_append(m, "Not At Home"); | 1283 m = g_list_append(m, _("Not At Home")); |
1284 m = g_list_append(m, "Not At Desk"); | 1284 m = g_list_append(m, _("Not At Desk")); |
1285 m = g_list_append(m, "Not In Office"); | 1285 m = g_list_append(m, _("Not In Office")); |
1286 m = g_list_append(m, "On Phone"); | 1286 m = g_list_append(m, _("On Phone")); |
1287 m = g_list_append(m, "On Vacation"); | 1287 m = g_list_append(m, _("On Vacation")); |
1288 m = g_list_append(m, "Out To Lunch"); | 1288 m = g_list_append(m, _("Out To Lunch")); |
1289 m = g_list_append(m, "Stepped Out"); | 1289 m = g_list_append(m, _("Stepped Out")); |
1290 m = g_list_append(m, "Invisible"); | 1290 m = g_list_append(m, _("Invisible")); |
1291 m = g_list_append(m, GAIM_AWAY_CUSTOM); | 1291 m = g_list_append(m, GAIM_AWAY_CUSTOM); |
1292 | 1292 |
1293 return m; | 1293 return m; |
1294 } | 1294 } |
1295 | 1295 |