X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=webcit%2Ffloors.c;h=5d1ba0ce42278554ff4a5029107cd4ea93c3e838;hp=b4dceb6a0a2d4cb093908bb081e1d75b1207e913;hb=83a596532ec7b9b8da83137ea18425bd525ba9ac;hpb=b6ddc2e472c0534377bdf814bf6744567dd4d1de diff --git a/webcit/floors.c b/webcit/floors.c index b4dceb6a0..5d1ba0ce4 100644 --- a/webcit/floors.c +++ b/webcit/floors.c @@ -27,7 +27,9 @@ void display_floorconfig(char *prepend_html) output_headers(1, 1, 2, 0, 0, 0, 0); wprintf("
\n" "
" - "Add/change/delete floors" + ""); + wprintf(_("Add/change/delete floors")); + wprintf("" "
\n" "
\n
\n" ); @@ -42,7 +44,9 @@ void display_floorconfig(char *prepend_html) serv_getln(buf, sizeof buf); if (buf[0] != '1') { wprintf("
"); - wprintf("Error\n"); + wprintf(""); + wprintf(_("Error")); + wprintf("\n"); wprintf("
\n"); wprintf("%s
\n", &buf[4]); wDumpContent(1); @@ -51,10 +55,13 @@ void display_floorconfig(char *prepend_html) wprintf("
" "\n" - "" - "" - "\n" - ); + "\n"); while (serv_getln(buf, sizeof buf), strcmp(buf, "000")) { floornum = extract_int(buf, 0); @@ -65,15 +72,15 @@ void display_floorconfig(char *prepend_html) if (refcount == 0) { wprintf("
Floor numberFloor nameNumber of rooms
"); + wprintf(_("Floor number")); + wprintf(""); + wprintf(_("Floor name")); + wprintf(""); + wprintf(_("Number of rooms")); + wprintf("
" "" - "(delete floor)" - "
", floornum - ); + "", floornum); + wprintf(_("(delete floor)")); + wprintf("
"); } wprintf("" "(edit graphic)", - floornum); - wprintf("
"); + "which_floor=%d\">", floornum); + wprintf(_("(edit graphic)")); + wprintf(""); wprintf(""); wprintf("" @@ -84,8 +91,8 @@ void display_floorconfig(char *prepend_html) "VALUE=\"%s\" MAXLENGTH=\"250\">\n", floornum, floorname); wprintf("" - ""); + "VALUE=\"%s\">" + "", _("Change name")); wprintf("%d\n", refcount); } @@ -95,9 +102,9 @@ void display_floorconfig(char *prepend_html) "\n" "" + "VALUE=\"%s\">" "" - " \n"); + " \n", _("Create new floor")); wprintf("
\n"); wDumpContent(1); @@ -116,7 +123,7 @@ void delete_floor(void) { serv_getln(buf, sizeof buf); if (buf[0] == '2') { - sprintf(message, "Floor has been deleted."); + sprintf(message, _("Floor has been deleted.")); } else { sprintf(message, "%s", &buf[4]); @@ -137,7 +144,7 @@ void create_floor(void) { serv_getln(buf, sizeof buf); if (buf[0] == '2') { - sprintf(message, "New floor has been created."); + sprintf(message, _("New floor has been created.")); } else { sprintf(message, "%s", &buf[4]); }