diff --git a/images/vehicle-registration-plates/A_international_vehicle_registration_oval.svg b/images/vehicle-registration-plates/A_international_vehicle_registration_oval.svg new file mode 100644 index 00000000..589ef3c1 --- /dev/null +++ b/images/vehicle-registration-plates/A_international_vehicle_registration_oval.svg @@ -0,0 +1,78 @@ + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + diff --git a/images/vehicle-registration-plates/CH_international_vehicle_registration_oval.svg b/images/vehicle-registration-plates/CH_international_vehicle_registration_oval.svg new file mode 100644 index 00000000..f8663872 --- /dev/null +++ b/images/vehicle-registration-plates/CH_international_vehicle_registration_oval.svg @@ -0,0 +1,34 @@ + + + + + + + + + + + + diff --git a/images/vehicle-registration-plates/D_international_vehicle_registration_oval.svg b/images/vehicle-registration-plates/D_international_vehicle_registration_oval.svg new file mode 100644 index 00000000..094d86ba --- /dev/null +++ b/images/vehicle-registration-plates/D_international_vehicle_registration_oval.svg @@ -0,0 +1,21 @@ + + + + + + + + diff --git a/images/vehicle-registration-plates/XW.svg b/images/vehicle-registration-plates/XW.svg new file mode 100644 index 00000000..fbfd2578 --- /dev/null +++ b/images/vehicle-registration-plates/XW.svg @@ -0,0 +1,39 @@ + + + + + + + + diff --git a/images/vehicle-registration-plates/convert-to-png.sh b/images/vehicle-registration-plates/convert-to-png.sh new file mode 100755 index 00000000..5cbd7198 --- /dev/null +++ b/images/vehicle-registration-plates/convert-to-png.sh @@ -0,0 +1,7 @@ +#!/bin/sh +set -e + +convert -background none A_international_vehicle_registration_oval.svg -resize 66x66 ../../res/drawable-nodpi/vehicle_a.png +convert -background none CH_international_vehicle_registration_oval.svg -resize 66x66 ../../res/drawable-nodpi/vehicle_ch.png +convert -background none D_international_vehicle_registration_oval.svg -resize 66x66 ../../res/drawable-nodpi/vehicle_d.png +convert -background none XW.svg -resize 66x66 ../../res/drawable-nodpi/vehicle_xw.png diff --git a/images/vehicle-registration-plates/urls.txt b/images/vehicle-registration-plates/urls.txt new file mode 100644 index 00000000..d87340b5 --- /dev/null +++ b/images/vehicle-registration-plates/urls.txt @@ -0,0 +1,3 @@ +https://upload.wikimedia.org/wikipedia/commons/0/05/D_international_vehicle_registration_oval.svg +https://upload.wikimedia.org/wikipedia/commons/9/90/CH_international_vehicle_registration_oval.svg +https://upload.wikimedia.org/wikipedia/commons/9/9b/A_international_vehicle_registration_oval.svg diff --git a/res/drawable-nodpi/vehicle_a.png b/res/drawable-nodpi/vehicle_a.png new file mode 100644 index 00000000..d8892cfe Binary files /dev/null and b/res/drawable-nodpi/vehicle_a.png differ diff --git a/res/drawable-nodpi/vehicle_ch.png b/res/drawable-nodpi/vehicle_ch.png new file mode 100644 index 00000000..5d0090dd Binary files /dev/null and b/res/drawable-nodpi/vehicle_ch.png differ diff --git a/res/drawable-nodpi/vehicle_d.png b/res/drawable-nodpi/vehicle_d.png new file mode 100644 index 00000000..a6379f35 Binary files /dev/null and b/res/drawable-nodpi/vehicle_d.png differ diff --git a/res/drawable-nodpi/vehicle_xw.png b/res/drawable-nodpi/vehicle_xw.png new file mode 100644 index 00000000..a6c3b39e Binary files /dev/null and b/res/drawable-nodpi/vehicle_xw.png differ diff --git a/res/values-de/languages.xml b/res/values-de/languages.xml index 810f6104..7f6c119b 100644 --- a/res/values-de/languages.xml +++ b/res/values-de/languages.xml @@ -88,4 +88,9 @@ Chinesisch Zulu + Österreichische KFZ-Kennzeichen + Schweizer KFZ-Kennzeichen + Deutsche KFZ-Kennzeichen + Internationale KFZ-Kennzeichen + diff --git a/res/values/languages.xml b/res/values/languages.xml index 240d4057..c66f8911 100644 --- a/res/values/languages.xml +++ b/res/values/languages.xml @@ -88,4 +88,9 @@ Chinese Zulu + Austrian Vehicle Registration Plates + Swiss Vehicle Registration Plates + German Vehicle Registration Plates + International Vehicle Registration Plates + diff --git a/src/com/hughes/android/dictionary/IsoUtils.java b/src/com/hughes/android/dictionary/IsoUtils.java index 96abbf6e..9b8e3c93 100644 --- a/src/com/hughes/android/dictionary/IsoUtils.java +++ b/src/com/hughes/android/dictionary/IsoUtils.java @@ -191,6 +191,19 @@ public enum IsoUtils { isoCodeToResources.put("SH", new LanguageResources("Serbo-Croatian", R.string.SH)); isoCodeToResources.put("SD", new LanguageResources("Sindhi", R.string.SD)); + isoCodeToResources.put("VRPAT", new LanguageResources( + "Austrian Vehicle Registration Plates", R.string.VRP_AT, + R.drawable.vehicle_a)); + isoCodeToResources.put("VRPCH", new LanguageResources( + "Swiss Vehicle Registration Plates", R.string.VRP_CH, + R.drawable.vehicle_ch)); + isoCodeToResources.put("VRPDE", new LanguageResources( + "German Vehicle Registration Plates", R.string.VRP_DE, + R.drawable.vehicle_d)); + isoCodeToResources.put("VRPXW", new LanguageResources( + "International Vehicle Registration Plates", R.string.VRP_XW, + R.drawable.vehicle_xw)); + // Hack to allow lower-case ISO codes to work: for (final String isoCode : new ArrayList<>(isoCodeToResources.keySet())) { isoCodeToResources.put(isoCode.toLowerCase(), isoCodeToResources.get(isoCode));