Exemplo n.º 1
0
static void
german_format(
	int hour,
	int min
)
{
	//DEBUG:
	//min = 39;
	//hour = 17;
	
	rel_small_word.text = "";
	ampm_small_word.text = "";
	
	
	if (min == 0)
	{
		min_word.text = "";
		rel_word.text = "";
		hour_word.text = hour_string(hour);
	} else
	if (min < 15)
	{
		min_word.text = min_string(min);
		rel_word.text = "nach";
		hour_word.text = hour_string(hour);
	} else
	if (min == 15)
	{
		min_word.text = "viertel";
		rel_word.text = "nach";
		hour_word.text = hour_string(hour);
	} else
	if (min < 20)
	{
		min_word.text = min_string(min);
		rel_word.text = "nach";
		hour_word.text = hour_string(hour);
	} else
	if (min == 20)
	{
		min_word.text = "zwanzig";
		rel_word.text = "nach";
		hour_word.text = hour_string(hour);
	} else
	if (min < 30)
	{
		min_word.text = min_string(30 - min);
		rel_word.text = "vor halb";
		hour++;
		hour_word.text = hour_string(hour);
	} else
	if (min == 30)
	{
		min_word.text = "";
		rel_word.text = "halb";
		hour++;
		hour_word.text = hour_string(hour);
	} else
	if (min < 40)
	{
		// 31 - 39
		min_word.text = min_string_und(min - 30);
		rel_small_word.text = "dreissig nach";
		rel_word.text = "";
		//hour++;
		hour_word.text = hour_string(hour);
		//small_font_int_rel = 1;
	} else
	if (min == 40)
	{
		min_word.text = "zwanzig";
		rel_word.text = "vor";
		hour++;
		hour_word.text = hour_string(hour);
	} else
	if (min < 45)
	{
		// 41 - 44
		min_word.text = "viertel";
		rel_word.text = "vor";
		hour++;
		hour_word.text = hour_string(hour);
	} else
	if (min == 45)
	{
		// just the kwart
		min_word.text = "";
		rel_word.text = "viertel vor";
		hour++;
		hour_word.text = hour_string(hour);
	} else
	if (min < 60)
	{
		// over the kwart
		min_word.text = min_string(60 - min);
		rel_word.text = "vor";
		hour++;
		hour_word.text = hour_string(hour);
	}


	// at midnight and noon do not display an am/pm notation
	// but don't say "before midnight"
	if (hour == 0 || hour == 12)
	{
		// nothing to do
		ampm_word.text = "";
		//small_font_int_ampm = 0;
	} else
	if ( (hour < 6 ) && (hour != 24) && (hour != 0) )
		ampm_word.text = "nachts";
	else
	if (hour < 9)
		ampm_word.text = "frueh";
	else
	if ( (hour < 11) || (hour == 11 && min <= 30) )
	{	
		ampm_small_word.text = "vormittags";
		ampm_word.text = "";
		//small_font_int_ampm = 1;
	}
	else
	if ( (hour < 13) || (hour == 13 && min <= 59) )
		ampm_word.text = "morgens";
	else
	if ( (hour < 17) || (hour == 17 && min <= 59) )
	{	
		ampm_small_word.text = "nachmittags";
		ampm_word.text = "";
		//small_font_int_ampm = 1;
	}
	else
	if ( (hour < 21) || (hour == 21 && min <=59) )
		ampm_word.text = "abends";
	else
	if (hour < 24)
		ampm_word.text = "nachts";
	else
		ampm_word.text = "";
}
Exemplo n.º 2
0
static void
nederlands_format(
	int hour,
	int min
)
{
	if (min == 0)
	{
		min_word.text = "";
		rel_word.text = "";
	} else
        if (min == 15)
	{
		// just the kwart
		min_word.text = "";
		rel_word.text = "viertäl ab";
	} else
	if (min < 21)
	{
		// over the hour
		min_word.text = min_string(min);
		rel_word.text = "ab";
	} else
	if (min == 21)
	{
		// over the hour
		min_word.text = min_string(min);
		rel_word.text = "ab";
	} else
	if (min < 30)
	{
		// over the kwart
		min_word.text = min_string(30 - min);
		rel_word.text = "vor halbi";
		hour++;
	} else
	if (min == 30)
	{
		// just the half
		min_word.text = "";
		rel_word.text = "halbi";
		hour++;
	} else
	if (min < 41)
	{
		// over the half
		min_word.text = min_string(min - 30);
		rel_word.text = "über halbi";
		hour++;
	} else
	if (min == 45)
	{
		// just the kwart
		min_word.text = "";
		rel_word.text = "viertäl vor";
		hour++;
	} else
	if (min < 60)
	{
		// over the kwart
		min_word.text = min_string(60 - min);
		rel_word.text = "vor";
		hour++;
	}

	hour_word.text = hour_string(hour);

	// at midnight and noon do not display an am/pm notation
	// but don't say "before midnight"
	//if (hour == 0 || hour == 12)
	// {ampm_word.text = "";	} else
	if (min == 1) {ampm_word.text = "12900 User"; kpi1_word.text = "3020 IT"; kpi2_word.text = "1034 IT Int"; kpi3_word.text = "1986 IT Ext";}
	else if (min == 2) {ampm_word.text = "60 WAN Loc"; kpi1_word.text = "88.75 Kbps/User"; kpi2_word.text = "Building Global Operating Platforms"; kpi3_word.text = "";}
	else if (min == 3) {ampm_word.text = "14220 WPs"; kpi1_word.text = "2988 Desktops"; kpi2_word.text = "11232 Laptops"; kpi3_word.text = "";}
	else if (min == 4) {ampm_word.text = "3155 Servers";kpi1_word.text = "1230 Phys Server"; kpi2_word.text = "1925 Virt Servers"; kpi3_word.text = "";}
	else if (min == 5) {ampm_word.text = "3200 TB";kpi1_word.text = "32% data growth"; kpi2_word.text = "1051 TB last 12mths"; kpi3_word.text = "";}
	else if (min == 6) {ampm_word.text = "6015 Mobildev";  kpi1_word.text = "5051 SIMs"; kpi2_word.text = "2765 iOS Dev"; kpi3_word.text = "3250 Blackberrys";}
	else if (min == 7) {ampm_word.text = "3370 Appl";  kpi1_word.text = "959 Biz / 900 LN"; kpi2_word.text = "1254 EndUsing"; kpi3_word.text = "257 InfraApp";}
	else if (min == 8) {ampm_word.text = "12900 User"; kpi1_word.text = "3020 IT"; kpi2_word.text = "1034 IT Int"; kpi3_word.text = "1986 IT Ext";}
	else if (min == 9) {ampm_word.text = "60 WAN Loc"; kpi1_word.text = "88.75 Kbps/User"; kpi2_word.text = "Building Global Operating Platforms"; kpi3_word.text = "";}
	else if (min == 10) {ampm_word.text = "14220 WPs"; kpi1_word.text = "2988 Desktops"; kpi2_word.text = "11232 Laptops"; kpi3_word.text = "";}
	else if (min == 11) {ampm_word.text = "3155 Servers";kpi1_word.text = "1230 Phys Server";	kpi2_word.text = "1925 Virt Servers"; kpi3_word.text = "";}
	else if (min == 12) {ampm_word.text = "3200 TB";kpi1_word.text = "32% data growth";	kpi2_word.text = "1051 TB last 12mths"; kpi3_word.text = "";}
	else if (min == 13) {ampm_word.text = "6015 Mobildev";  kpi1_word.text = "5051 SIMs";	kpi2_word.text = "2765 iOS Dev"; kpi3_word.text = "3250 Blackberrys";}
	else if (min == 14) {ampm_word.text = "3370 Appl";  kpi1_word.text = "959 Biz / 900 LN"; kpi2_word.text = "1254 EndUsing"; kpi3_word.text = "257 InfraApp";}
	else if (min == 15) {ampm_word.text = "12900 User"; kpi1_word.text = "3020 IT";	kpi2_word.text = "1034 IT Int";	kpi3_word.text = "1986 IT Ext";}
	else if (min == 16) {ampm_word.text = "60 WAN Loc"; kpi1_word.text = "88.75 Kbps/User"; kpi2_word.text = "Building Global Operating Platforms"; kpi3_word.text = "";}
	else if (min == 17) {ampm_word.text = "14220 WPs"; kpi1_word.text = "2988 Desktops";	kpi2_word.text = "11232 Laptops"; kpi3_word.text = "";}
	else if (min == 18) {ampm_word.text = "3155 Servers";kpi1_word.text = "1230 Phys Server";	kpi2_word.text = "1925 Virtual Servers";}
	else if (min == 19) {ampm_word.text = "3200 TB";kpi1_word.text = "32% data growth";	kpi2_word.text = "1051 TB last 12mths"; kpi3_word.text = "";}
	else if (min == 20) {ampm_word.text = "6015 Mobildev";  kpi1_word.text = "5051 SIMs";	kpi2_word.text = "2765 iOS Dev";	kpi3_word.text = "3250 Blackberrys";}
	else if (min == 21) {ampm_word.text = "3370 Appl";  kpi1_word.text = "959 Biz / 900 LN"; kpi2_word.text = "1254 EndUsing"; kpi3_word.text = "257 InfraApp";}
	else if (min == 22) {ampm_word.text = "12900 User"; kpi1_word.text = "3020 IT";	kpi2_word.text = "1034 IT Int";	kpi3_word.text = "1986 IT Ext";}
	else if (min == 23) {ampm_word.text = "60 WAN Loc"; kpi1_word.text = "88.75 Kbps/User"; kpi2_word.text = "Building Global Operating Platforms"; kpi3_word.text = "";}
	else if (min == 24) {ampm_word.text = "14220 WPs"; kpi1_word.text = "2988 Desktops";	kpi2_word.text = "11232 Laptops"; kpi3_word.text = "";}
	else if (min == 25) {ampm_word.text = "3155 Servers";kpi1_word.text = "1230 Phys Server";	kpi2_word.text = "1925 Virt Servers"; kpi3_word.text = "";}
	else if (min == 26) {ampm_word.text = "3200 TB";kpi1_word.text = "32% data growth";	kpi2_word.text = "1051 TB last 12mths"; kpi3_word.text = "";}
	else if (min == 27) {ampm_word.text = "6015 Mobildev";  kpi1_word.text = "5051 SIMs";	kpi2_word.text = "2765 iOS Dev";	kpi3_word.text = "3250 Blackberrys";}
	else if (min == 28) {ampm_word.text = "3370 Appl";  kpi1_word.text = "959 Biz / 900 LN"; kpi2_word.text = "1254 EndUsing"; kpi3_word.text = "257 InfraApp";}
	else if (min == 29) {ampm_word.text = "5 OSs";  kpi1_word.text = "AIX / Linux"; kpi2_word.text = "ESX / Windows"; kpi3_word.text = "Solaris";}
	else if (min == 30) {ampm_word.text = "IT Strategy";  kpi1_word.text = "Making better use of Information"; kpi2_word.text = ""; kpi3_word.text = "Improving Services and Performance";}
	else if (min == 31) {ampm_word.text = "12900 User"; kpi1_word.text = "3020 IT";	kpi2_word.text = "1034 IT Int";	kpi3_word.text = "1986 IT Ext";}
	else if (min == 32) {ampm_word.text = "60 WAN Loc"; kpi1_word.text = "88.75 Kbps/User"; kpi2_word.text = "Making better use of Information"; kpi3_word.text = "";}
	else if (min == 33) {ampm_word.text = "14220 WPs"; kpi1_word.text = "2988 Desktops";	kpi2_word.text = "11232 Laptops"; kpi3_word.text = "";}
	else if (min == 34) {ampm_word.text = "3155 Servers";kpi1_word.text = "1230 Phys Server";	kpi2_word.text = "1925 Virt Servers"; kpi3_word.text = "";}
	else if (min == 35) {ampm_word.text = "3200 TB";kpi1_word.text = "32% data growth";	kpi2_word.text = "1051 TB last 12mths"; kpi3_word.text = "";}
	else if (min == 36) {ampm_word.text = "6015 Mobildev";  kpi1_word.text = "5051 SIMs";	kpi2_word.text = "2765 iOS Dev";	kpi3_word.text = "3250 Blackberrys";}
	else if (min == 37) {ampm_word.text = "3370 Appl";  kpi1_word.text = "959 Biz / 900 LN"; kpi2_word.text = "1254 EndUsing"; kpi3_word.text = "257 InfraApp";}
	else if (min == 38) {ampm_word.text = "12900 User"; kpi1_word.text = "3020 IT";	kpi2_word.text = "1034 IT Int";	kpi3_word.text = "1986 IT Ext";}
	else if (min == 39) {ampm_word.text = "60 WAN Loc"; kpi1_word.text = "88.75 Kbps/User"; kpi2_word.text = "Making better use of Information"; kpi3_word.text = "";}
	else if (min == 40) {ampm_word.text = "14220 WPs"; kpi1_word.text = "2988 Desktops";	kpi2_word.text = "11232 Laptops"; kpi3_word.text = "";}
	else if (min == 41) {ampm_word.text = "3155 Servers";kpi1_word.text = "1230 Phys Server";	kpi2_word.text = "1925 Virt Servers"; kpi3_word.text = "";}
	else if (min == 42) {ampm_word.text = "3200 TB";kpi1_word.text = "32% data growth";	kpi2_word.text = "1051 TB last 12mths"; kpi3_word.text = "";}
	else if (min == 43) {ampm_word.text = "6015 Mobildev";  kpi1_word.text = "5051 SIMs";	kpi2_word.text = "2765 iOS Dev";	kpi3_word.text = "3250 Blackberrys";}
	else if (min == 44) {ampm_word.text = "3370 Appl";  kpi1_word.text = "959 Biz / 900 LN"; kpi2_word.text = "1254 EndUsing"; kpi3_word.text = "257 InfraApp";}
	else if (min == 45) {ampm_word.text = "12900 User"; kpi1_word.text = "3020 IT";	kpi2_word.text = "1034 IT Int";	kpi3_word.text = "1986 IT Ext";}
	else if (min == 46) {ampm_word.text = "60 WAN Loc"; kpi1_word.text = "88.75 Kbps/User"; kpi2_word.text = "Making better use of Information"; kpi3_word.text = "";}
	else if (min == 47) {ampm_word.text = "14220 WPs"; kpi1_word.text = "2988 Desktops";	kpi2_word.text = "11232 Laptops"; kpi3_word.text = "";}
	else if (min == 48) {ampm_word.text = "3155 Servers";kpi1_word.text = "1230 Phys Server";	kpi2_word.text = "1925 Virt Servers"; kpi3_word.text = "";}
	else if (min == 49) {ampm_word.text = "3200 TB";kpi1_word.text = "32% data growth";	kpi2_word.text = "1051 TB last 12mths"; kpi3_word.text = "";}
	else if (min == 50) {ampm_word.text = "6015 Mobildev";  kpi1_word.text = "5051 SIMs";	kpi2_word.text = "2765 iOS Dev";	kpi3_word.text = "3250 Blackberrys";}
	else if (min == 51) {ampm_word.text = "3370 Appl";  kpi1_word.text = "959 Biz / 900 LN"; kpi2_word.text = "1254 EndUsing"; kpi3_word.text = "257 InfraApp";}
	else if (min == 52) {ampm_word.text = "12900 User"; kpi1_word.text = "3020 IT";	kpi2_word.text = "1034 IT Int";	kpi3_word.text = "1986 IT Ext";}
	else if (min == 53) {ampm_word.text = "60 WAN Loc"; kpi1_word.text = "88.75 Kbps/User"; kpi2_word.text = "Improving Services and Performance"; kpi3_word.text = "";}
	else if (min == 54) {ampm_word.text = "14220 WPs"; kpi1_word.text = "2988 Desktops";	kpi2_word.text = "11232 Laptops"; kpi3_word.text = "";}
	else if (min == 55) {ampm_word.text = "3155 Servers";kpi1_word.text = "1230 Phys Server"; kpi2_word.text = "1925 Virt Servers"; kpi3_word.text = "";}
	else if (min == 56) {ampm_word.text = "3200 TB";kpi1_word.text = "32% data growth";	kpi2_word.text = "1051 TB last 12mths"; kpi3_word.text = "";}
	else if (min == 57) {ampm_word.text = "6015 Mobildev";  kpi1_word.text = "5051 SIMs";	kpi2_word.text = "2765 iOS Dev";	kpi3_word.text = "3250 Blackberrys";}
	else if (min == 58) {ampm_word.text = "3370 Appl";  kpi1_word.text = "959 Biz / 900 LN"; kpi2_word.text = "1254 EndUsing"; kpi3_word.text = "257 InfraApp";}
	//if (min <60) {kpi1_word.text = "test kpi1";	kpi2_word.text = "test kpi2";	kpi3_word.text = "test kpi3";}
}