Display euro sign instead of EUR
[beifahrer] / src / adac-mitfahrclub.vala
index 2fca248..614bc77 100644 (file)
@@ -502,7 +502,7 @@ public class AdacMitfahrclub {
                                                                        lift.places = n3->content.to_int ();
                                                                        break;
                                                                case 5:
-                                                                       lift.price = n3->content;
+                                                                       lift.price = n3->content.replace (" EUR", " €");
                                                                        break;
                                                                default:
                                                                        print ("TEXT:%s\n", n3->content);
@@ -658,7 +658,7 @@ public class AdacMitfahrclub {
                                else if (text1 == "Raucher")
                                        print ("Raucher: %s\n", text2);
                                else if (text1 == "Fahrpreis")
-                                       lift.price = text2;
+                                       lift.price = text2.replace (" EUR", " €");
                                else if (text1 == "ADAC-Mitglied" && text2 != "nein")
                                        lift.flags |= LiftFlags.ADAC_MEMBER;
                        }