From 276fba77554f49a82f5f6d38f52d35b713c243b2 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Thu, 18 Aug 2005 22:08:26 +0000 Subject: [PATCH] * iconbar.c: i18n --- webcit/ChangeLog | 4 +- webcit/iconbar.c | 242 ++++++++++++++++++++++++++++------------------- 2 files changed, 146 insertions(+), 100 deletions(-) diff --git a/webcit/ChangeLog b/webcit/ChangeLog index bc32369b9..38109da56 100644 --- a/webcit/ChangeLog +++ b/webcit/ChangeLog @@ -1,4 +1,7 @@ $Log$ +Revision 621.16 2005/08/18 22:08:26 ajc +* iconbar.c: i18n + Revision 621.15 2005/08/18 18:33:34 ajc * calendar_view.c event.c floors.c graphics.c html2html.c iconbar.c: i18n @@ -2847,4 +2850,3 @@ Sun Dec 6 19:50:55 EST 1998 Art Cancro 1998-12-03 Nathan Bryant * webserver.c: warning fix - diff --git a/webcit/iconbar.c b/webcit/iconbar.c index 45a3d214f..bd1e4ac0e 100644 --- a/webcit/iconbar.c +++ b/webcit/iconbar.c @@ -77,24 +77,26 @@ void do_iconbar(void) { if (ib_citadel) if (ib_displayas != IB_TEXTONLY) wprintf( "
  • " "" + "title=\"%s\" target=\"aboutcit\">" "\"CITADEL\"" - "
  • \n" + "SRC=\"/static/citadel-logo.gif\" ALT=\"%s\">" + "\n", + _("Find out more about Citadel"), + _("CITADEL") ); if (ib_summary) { wprintf("
  • " + "TITLE=\"%s\" " + ">", _("Your summary page") ); if (ib_displayas != IB_TEXTONLY) { wprintf(""); } if (ib_displayas != IB_PICONLY) { - wprintf("Summary"); + wprintf(_("Summary")); } wprintf("
  • \n"); } @@ -102,15 +104,16 @@ void do_iconbar(void) { if (ib_inbox) { wprintf("
  • " "" + "TITLE=\"%s\" " + ">", + _("Go to your email inbox") ); if (ib_displayas != IB_TEXTONLY) { wprintf(""); } if (ib_displayas != IB_PICONLY) { - wprintf("Mail"); + wprintf(_("Mail")); } wprintf("
  • \n"); } @@ -118,15 +121,16 @@ void do_iconbar(void) { if (ib_calendar) { wprintf("
  • " "" + "TITLE=\"%s\" " + ">", + _("Go to your personal calendar") ); if (ib_displayas != IB_TEXTONLY) { wprintf(""); } if (ib_displayas != IB_PICONLY) { - wprintf("Calendar"); + wprintf(_("Calendar")); } wprintf("
  • \n"); } @@ -134,15 +138,16 @@ void do_iconbar(void) { if (ib_contacts) { wprintf("
  • " "" + "TITLE=\"%s\" " + ">", + _("Go to your personal address book") ); if (ib_displayas != IB_TEXTONLY) { wprintf(""); } if (ib_displayas != IB_PICONLY) { - wprintf("Contacts"); + wprintf(_("Contacts")); } wprintf("
  • \n"); } @@ -150,15 +155,16 @@ void do_iconbar(void) { if (ib_notes) { wprintf("
  • " "" + "TITLE=\"%s\" " + ">", + _("Go to your personal notes") ); if (ib_displayas != IB_TEXTONLY) { wprintf(""); } if (ib_displayas != IB_PICONLY) { - wprintf("Notes"); + wprintf(_("Notes")); } wprintf("
  • \n"); } @@ -166,45 +172,47 @@ void do_iconbar(void) { if (ib_tasks) { wprintf("
  • " "" + "TITLE=\"%s\" " + ">", + _("Go to your personal task list") ); if (ib_displayas != IB_TEXTONLY) { wprintf(""); } if (ib_displayas != IB_PICONLY) { - wprintf("Tasks"); + wprintf(_("Tasks")); } wprintf("
  • \n"); } if (ib_rooms) { wprintf("
  • " - "" + "", + _("List all of your accessible rooms") ); if (ib_displayas != IB_TEXTONLY) { wprintf(""); } if (ib_displayas != IB_PICONLY) { - wprintf("Rooms"); + wprintf(_("Rooms")); } wprintf("
  • \n"); } if (ib_users) { wprintf("
  • " - "" + "", + _("See who is online right now") ); if (ib_displayas != IB_TEXTONLY) { wprintf(""); } if (ib_displayas != IB_PICONLY) { - wprintf("Who is online?"); + wprintf(_("Who is online?")); } wprintf("
  • \n"); } @@ -222,7 +230,7 @@ void do_iconbar(void) { "SRC=\"/static/citadelchat_32x.gif\">"); } if (ib_displayas != IB_PICONLY) { - wprintf("Chat"); + wprintf(_("Chat")); } wprintf("\n"); } @@ -230,16 +238,16 @@ void do_iconbar(void) { if (ib_advanced) { wprintf("
  • " "" + "TITLE=\"%s\" " + ">", + _("Advanced Options Menu: Advanced Room commands, Account Info, and Chat") ); if (ib_displayas != IB_TEXTONLY) { wprintf(""); } if (ib_displayas != IB_PICONLY) { - wprintf("Advanced"); + wprintf(_("Advanced")); } wprintf("
  • \n"); } @@ -247,30 +255,34 @@ void do_iconbar(void) { if ((WC->axlevel >= 6) || (WC->is_room_aide)) { wprintf("
  • " "" + "TITLE=\"%s\" " + ">", + _("Room and system administration functions") ); if (ib_displayas != IB_TEXTONLY) { wprintf(""); } if (ib_displayas != IB_PICONLY) { - wprintf("Administration"); + wprintf(_("Administration")); } wprintf("
  • \n"); } if (1) { wprintf("
  • " - "" + "", + _("Log off"), + _("Log off now?") + ); if (ib_displayas != IB_TEXTONLY) { wprintf(""); } if (ib_displayas != IB_PICONLY) { - wprintf("Log off"); + wprintf(_("Log off")); } wprintf("
  • \n"); } @@ -278,9 +290,11 @@ void do_iconbar(void) { wprintf( "
  • " "customize this menu" - "
  • \n" + "TITLE=\"%s\" " + ">%s" + "\n", + _("Customize this menu"), + _("customize this menu") ); wprintf("\n" @@ -341,7 +355,9 @@ void display_customize_iconbar(void) { output_headers(1, 1, 2, 0, 0, 0, 0); wprintf("
    \n" "
    " - "Customize the icon bar" + ""); + wprintf(_("Customize the icon bar")); + wprintf("" "
    \n" "
    \n
    \n" ); @@ -351,23 +367,24 @@ void display_customize_iconbar(void) { wprintf("
    \n"); - wprintf("
    " - "Display icons as: "); + wprintf("
    "); + wprintf(_("Display icons as:")); + wprintf(" "); for (i=0; i<=2; ++i) { wprintf(""); - if (i == IB_PICTEXT) wprintf("pictures and text"); - if (i == IB_PICONLY) wprintf("pictures only"); - if (i == IB_TEXTONLY) wprintf("text only"); + if (i == IB_PICTEXT) wprintf(_("pictures and text")); + if (i == IB_PICONLY) wprintf(_("pictures only")); + if (i == IB_TEXTONLY) wprintf(_("text only")); wprintf("\n"); } wprintf("

    \n"); - wprintf("Select the icons you would like to see displayed " - "in the "icon bar" menu on the left side of the " - "screen.

    \n" - ); + wprintf(_("Select the icons you would like to see displayed " + "in the 'icon bar' menu on the left side of the " + "screen.")); + wprintf("

    \n"); wprintf("\n"); @@ -377,11 +394,13 @@ void display_customize_iconbar(void) { "\" \"" "\n", ((bar = 1 - bar), (bar ? "\"#CCCCCC\"" : "\"#FFFFFF\"")), - (ib_logo ? "CHECKED" : "") + (ib_logo ? "CHECKED" : ""), + _("Site logo"), + _("An icon describing this site") ); wprintf("\n", ((bar = 1 - bar), (bar ? "\"#CCCCCC\"" : "\"#FFFFFF\"")), - (ib_summary ? "CHECKED" : "") + (ib_summary ? "CHECKED" : ""), + _("Summary"), + _("Your summary page") ); wprintf("\n", ((bar = 1 - bar), (bar ? "\"#CCCCCC\"" : "\"#FFFFFF\"")), - (ib_inbox ? "CHECKED" : "") + (ib_inbox ? "CHECKED" : ""), + _("Mail (inbox)"), + _("A shortcut to your email Inbox") ); wprintf("\n", ((bar = 1 - bar), (bar ? "\"#CCCCCC\"" : "\"#FFFFFF\"")), - (ib_contacts ? "CHECKED" : "") + (ib_contacts ? "CHECKED" : ""), + _("Contacts"), + _("Your personal address book") ); wprintf("\n", ((bar = 1 - bar), (bar ? "\"#CCCCCC\"" : "\"#FFFFFF\"")), - (ib_notes ? "CHECKED" : "") + (ib_notes ? "CHECKED" : ""), + _("Notes"), + _("Your personal notes") ); #ifdef WEBCIT_WITH_CALENDAR_SERVICE @@ -446,11 +473,13 @@ void display_customize_iconbar(void) { "\" \"" "\n", ((bar = 1 - bar), (bar ? "\"#CCCCCC\"" : "\"#FFFFFF\"")), - (ib_calendar ? "CHECKED" : "") + (ib_calendar ? "CHECKED" : ""), + _("Calendar"), + _("A shortcut to your personal calendar") ); wprintf("\n", ((bar = 1 - bar), (bar ? "\"#CCCCCC\"" : "\"#FFFFFF\"")), - (ib_tasks ? "CHECKED" : "") + (ib_tasks ? "CHECKED" : ""), + _("Tasks"), + _("A shortcut to your personal task list") ); #endif /* WEBCIT_WITH_CALENDAR_SERVICE */ @@ -473,12 +504,14 @@ void display_customize_iconbar(void) { "\" \"" "\n", ((bar = 1 - bar), (bar ? "\"#CCCCCC\"" : "\"#FFFFFF\"")), - (ib_rooms ? "CHECKED" : "") + (ib_rooms ? "CHECKED" : ""), + _("Rooms"), + _("Clicking this icon displays a list of all accesible " + "rooms (or folders) available.") ); wprintf("\n", ((bar = 1 - bar), (bar ? "\"#CCCCCC\"" : "\"#FFFFFF\"")), - (ib_users ? "CHECKED" : "") + (ib_users ? "CHECKED" : ""), + _("Who is online?"), + _("Clicking this icon displays a list of all users " + "currently logged in.") ); wprintf("\n", ((bar = 1 - bar), (bar ? "\"#CCCCCC\"" : "\"#FFFFFF\"")), - (ib_chat ? "CHECKED" : "") + (ib_chat ? "CHECKED" : ""), + _("Chat"), + _("Clicking this icon enters real-time chat mode " + "with other users in the same room.") + ); wprintf("\n", ((bar = 1 - bar), (bar ? "\"#CCCCCC\"" : "\"#FFFFFF\"")), - (ib_advanced ? "CHECKED" : "") + (ib_advanced ? "CHECKED" : ""), + _("Advanced options"), + _("Access to the complete menu of Citadel functions.") + ); wprintf("\n", ((bar = 1 - bar), (bar ? "\"#CCCCCC\"" : "\"#FFFFFF\"")), - (ib_citadel ? "CHECKED" : "") + (ib_citadel ? "CHECKED" : ""), + _("Citadel logo"), + _("Displays the 'Powered by Citadel' icon") ); wprintf("
    " - "Site logo
    " - "An icon describing this site" + "%s
    " + "%s" "
    " @@ -390,11 +409,13 @@ void display_customize_iconbar(void) { "\" \"" "" - "Summary
    " - "Your summary page" + "%s
    " + "%s" "
    " @@ -403,11 +424,13 @@ void display_customize_iconbar(void) { "\" \"" "" - "Mail (inbox)
    " - "A shortcut to your e-mail Inbox." + "%s
    " + "%s" "
    " @@ -417,11 +440,13 @@ void display_customize_iconbar(void) { "\" \"" "" - "Contacts
    " - "Your personal address book." + "%s
    " + "%s" "
    " @@ -431,11 +456,13 @@ void display_customize_iconbar(void) { "\" \"" "" - "Notes
    " - "Your personal notes." + "%s
    " + "%s" "
    " - "Calendar
    " - "A shortcut to your personal calendar." + "%s
    " + "%s" "
    " @@ -459,11 +488,13 @@ void display_customize_iconbar(void) { "\" \"" "" - "Tasks
    " - "A shortcut to your personal task list." + "%s
    " + "%s" "
    " - "Rooms
    " - "Clicking this icon displays a list of all accesible " - "rooms (or folders) available." + "%s
    " + "%s" "
    " @@ -487,12 +520,14 @@ void display_customize_iconbar(void) { "\" \"" "" - "Who is online?
    " - "Clicking this icon displays a list of all users " - "currently logged in." + "%s
    " + "%s" "
    " @@ -501,12 +536,15 @@ void display_customize_iconbar(void) { "\" \"" "" - "Chat
    " - "Clicking this icon enters real-time chat mode " - "with other users in the same room." + "%s
    " + "%s" "
    " @@ -516,11 +554,14 @@ void display_customize_iconbar(void) { "\" \"" "" - "Advanced options
    " - "Access to the complete menu of Citadel functions." + "%s
    " + "%s" "
    " @@ -530,19 +571,23 @@ void display_customize_iconbar(void) { "\" \"" "" - "Citadel logo
    " - "Displays the "Powered by Citadel" icon" + "%s
    " + "%s" "

    \n" "
    " - "" + "" " " - "" - "
    \n" + "" + "\n", + _("Save changes"), + _("Cancel") ); wprintf("
    \n"); @@ -570,7 +615,7 @@ void commit_iconbar(void) { "ib_citadel" }; - if (strcmp(bstr("sc"), "OK")) { + if (strlen(bstr("ok_button")) == 0) { display_main_menu(); return; } @@ -593,10 +638,9 @@ void commit_iconbar(void) { wprintf( "
    " "" - " " - "Your icon bar has been updated. Please select any of its " - "choices to continue." - "
    \n" - ); + " "); + wprintf(_("Your icon bar has been updated. Please select any of its " + "choices to continue.")); + wprintf("\n"); wDumpContent(2); } -- 2.39.2