www/includes/global.inc.php

changeset 84
3e5e87f1818d
parent 68
2ff83855d574
child 85
ca7a37586551
--- a/www/includes/global.inc.php	Sat Nov 10 17:23:53 2018 +0100
+++ b/www/includes/global.inc.php	Sat Nov 10 20:56:07 2018 +0100
@@ -199,4 +199,118 @@
 </html>
 <?php
 }
+
+
+/* ============== Translations ========================================== */
+
+
+function added_type_names($added) {
+	if ($added == "Mash")
+		return 'Maischen';
+	if ($added == "Boil")
+		return 'Koken';
+	if ($added == "Fermentation")
+		return 'Vergisten';
+	if ($added == "Lagering")
+		return 'Nagisten/lageren';
+	if ($added == "Bottle")
+		return 'Bottelen';
+	return $added;
+}
+
+
+
+function hop_useat_names($useat) {
+	if (($useat == "Dry Hop") || ($useat == "Dry hop"))
+		return "Koudhop";
+	if ($useat == "Whirlpool")
+		return "Whirlpool";
+	if ($useat == "Mash")
+		return "Maischen";
+	if (($useat == "First Wort") || ($useat == "First wort"))
+		return "First wort";
+	if ($useat == "Aroma")
+		return "Vlamuit";
+	if ($useat == "Boil")
+		return 'Koken';
+	return $useat;
+}
+
+
+
+function hop_form_names($form) {
+	if ($form == "Pellet")
+		return 'Pellets';
+	if ($form == "Plug")
+		return 'Plugs';
+	if ($form == "Leaf")
+		return 'Bellen';
+	return $form;
+}
+
+
+
+function yeast_use_names($use) {
+	if ($use == "Primary")
+		return 'Hoofdgist';
+	if ($use == "Bottle")
+		return 'Bottelgist';
+	return $use;
+}
+
+
+
+function yeast_form_names($form) {
+
+	if ($form == "Liquid")
+		return 'Vloeibaar';
+	if ($form == "Dry")
+		return 'Droog';
+	if ($form == "Slant")
+		return 'Schuine buis';
+	if ($form == "Culture")
+		return 'Slurry';
+	if ($form == "Frozen")
+		return 'Ingevroren';
+	if ($form == "Bottel")
+		return 'Depot';
+	return $form;
+}
+
+
+
+function misc_type_names($type) {
+	if ($type == "Water agent")
+		return 'Brouwzout';
+	if ($type == "Fining")
+		return 'Klaringsmiddel';
+	if ($type == "Spice")
+		return 'Specerij';
+	if ($type == "Herb")
+		return 'Kruid';
+	if ($type == "Flavor")
+		return 'Smaakstof';
+	if ($type == "Yeast nutrient")
+		return 'Gistvoeding';
+	return $type;
+}
+
+
+
+function misc_use_names($name) {
+	if ($name == "Starter")
+		return 'Starter';
+	if ($name == "Mash")
+		return 'Maischen';
+	if ($name == "Boil")
+		return 'Koken';
+	if ($name == "Primary")
+		return 'Hoofdvergisting';
+	if ($name == "Secondary")
+		return 'Nagisten/lagering';
+	if ($name == "Bottling")
+		return 'Bottelen';
+	return $name;
+}
+
 ?>

mercurial