? rc ? no_research1.diff ? msgfmt1.diff ? tech_info1.diff ? tech_fix1.diff ? diff ? no_tech_loss1.diff ? check_headers.sh ? test.c ? missing_includes1.diff ? num_unknown_fix1.diff ? worklist_label.diff ? citydlg_worklist1.diff ? local_warmap131201.diff ? queue ? unit_move_turns1.diff Index: client/gui-gtk/citydlg.c =================================================================== RCS file: /home/freeciv/CVS/freeciv/client/gui-gtk/citydlg.c,v retrieving revision 1.105 diff -u -r1.105 citydlg.c --- client/gui-gtk/citydlg.c 2002/01/09 02:45:46 1.105 +++ client/gui-gtk/citydlg.c 2002/01/14 14:24:34 @@ -1869,7 +1869,7 @@ *****************************************************************/ static void city_dialog_update_building(struct city_dialog *pdialog) { - char buf[32], buf2[200]; + char buf[32], buf2[200], *descr; int turns; struct city *pcity = pdialog->pcity; gfloat pct; @@ -1887,8 +1887,7 @@ pcity->shield_stock, get_unit_type(pcity->currently_building)->build_cost, turns); - my_snprintf(buf2, sizeof(buf2), "%s: %s", _("Currently building"), - get_unit_type(pcity->currently_building)->name); + descr = get_unit_type(pcity->currently_building)->name; pct = (gfloat) pcity->shield_stock / (get_unit_type(pcity->currently_building)->build_cost + 0.1); @@ -1918,10 +1917,13 @@ 0.1); pct = CLAMP(pct, 0.0, 1.0); } - my_snprintf(buf2, sizeof(buf2), "%s: %s", _("Currently building"), - get_impr_name_ex(pcity, pcity->currently_building)); + descr = get_impr_name_ex(pcity, pcity->currently_building); } - + + /* TRANS: Leave "Building: " out if you don't find a short + translation for it. */ + my_snprintf(buf2, sizeof(buf2), _("Building: %s%s"), descr, + worklist_is_empty(pcity->worklist) ? "" : _(" (worklist)")); gtk_frame_set_label(GTK_FRAME (pdialog->overview.currently_building_frame), buf2); gtk_progress_set_percentage(GTK_PROGRESS