Index: src/OFLocale.m ================================================================== --- src/OFLocale.m +++ src/OFLocale.m @@ -113,10 +113,11 @@ operators = [OFMutableArray array]; for (OFString *token in [condition componentsSeparatedByString: @" " options: OF_STRING_SKIP_EMPTY]) { unsigned precedence; + of_unichar_t c; if ([token isEqual: @"("]) { [operators addObject: @"("]; continue; } @@ -160,12 +161,11 @@ [operators addObject: token]; continue; } - of_unichar_t c = [token characterAtIndex: 0]; - + c = [token characterAtIndex: 0]; if ((c < '0' || c > '9') && c != '-') if ((token = [variables objectForKey: token]) == nil) @throw [OFInvalidFormatException exception]; [tokens addObject: Index: utils/ofarc/lang/de.json ================================================================== --- utils/ofarc/lang/de.json +++ utils/ofarc/lang/de.json @@ -66,11 +66,17 @@ "Kann keine spezifische Datei aus einem .gz-Archiv entpacken!" ], "cannot_print_specific_file_from_gz": [ "Kann keine spezifische Datei aus einem .gz-Archiv ausgeben!" ], - "list_size": "Größe: %[size] Bytes", + "list_size": [ + "Größe: ", + [ + {"size == 1": "1 Byte"}, + {"": "%[size] Bytes"} + ] + ], "list_mode": "Modus: %[mode]", "list_owner": "Besitzer: %[owner]", "list_group": "Gruppe: %[group]", "list_header_level": "Header-Level: %[level]", "list_modification_date": "Änderungsdatum: %[date]", @@ -84,12 +90,24 @@ "list_device_minor": "Minor-Nummer des Geräts: %[minor]", "list_type_directory": "Typ: Verzeichnis", "list_type_fifo": "Typ: FIFO", "list_type_contiguous_file": "Typ: Zusammenhängende Datei", "list_type_unknown": "Typ: Unbekannt", - "list_compressed_size": "Komprimierte Größe: %[size] Bytes", - "list_uncompressed_size": "Unkomprimierte Größe: %[size] Bytes", + "list_compressed_size": [ + "Komprimierte Größe: ", + [ + {"size == 1": "1 Byte"}, + {"": "%[size] Bytes"} + ] + ], + "list_uncompressed_size": [ + "Unkomprimierte Größe: ", + [ + {"size == 1": "1 Byte"}, + {"": "%[size] Bytes"} + ] + ], "list_compression_method": "Kompressionsmethode: %[method]", "list_date": "Datum: %[date]", "list_osid": "Betriebssystem-Identifikator: %[osid]", "list_extensions": "Erweiterungen: %[extensions]", "list_version_made_by": "Erstellt mit Version: %[version]", Index: utils/ofhttp/lang/de.json ================================================================== --- utils/ofhttp/lang/de.json +++ utils/ofhttp/lang/de.json @@ -77,11 +77,16 @@ "invalid_scheme": "%[prog]: Ungültiges Schema: <%[url]>!", "type_unknown": "unbekannt", "size_gib": "%[num] GiB", "size_mib": "%[num] MiB", "size_kib": "%[num] KiB", - "size_bytes": "%[num] Bytes", + "size_bytes": [ + [ + {"num == 1": "1 Byte"}, + {"": "%[num] Bytes"} + ] + ], "size_unknown": "unbekannt", "info_name_unaligned": "Name: %[name]", "info_name": "Name: %[name]", "info_type": "Typ: %[type]", "info_size": "Größe: %[size]", @@ -88,7 +93,12 @@ "output_already_exists": "%[prog]: Datei %[filename] existiert bereits!", "failed_to_open_output": [ "%[prog]: Kann Datei %[filename] nicht öffnen: %[exception]" ], "eta_days": "%[num] t ", - "progress_bytes": "%[num] Bytes" + "progress_bytes": [ + [ + {"num == 1": "1 Byte"}, + {"": "%[num] Bytes"} + ] + ] }