Skip to content

Commit 5d24ade

Browse files
committed
Tweak error messages to reduce code size.
1 parent 710c198 commit 5d24ade

File tree

16 files changed

+187
-502
lines changed

16 files changed

+187
-502
lines changed

locale/ID.po

Lines changed: 4 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: PACKAGE VERSION\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2020-01-18 11:56-0800\n"
11+
"POT-Creation-Date: 2020-01-29 17:27-0800\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team: LANGUAGE <[email protected]>\n"
@@ -512,11 +512,8 @@ msgstr "Clock unit sedang digunakan"
512512
msgid "Column entry must be digitalio.DigitalInOut"
513513
msgstr ""
514514

515-
#: shared-bindings/displayio/I2CDisplay.c
516-
msgid "Command must be 0-255"
517-
msgstr ""
518-
519-
#: shared-bindings/displayio/FourWire.c shared-bindings/displayio/ParallelBus.c
515+
#: shared-bindings/displayio/FourWire.c shared-bindings/displayio/I2CDisplay.c
516+
#: shared-bindings/displayio/ParallelBus.c
520517
msgid "Command must be an int between 0 and 255"
521518
msgstr ""
522519

@@ -661,10 +658,6 @@ msgstr ""
661658
msgid "Expected a Characteristic"
662659
msgstr ""
663660

664-
#: shared-bindings/_pixelbuf/__init__.c
665-
msgid "Expected a PixelBuf instance"
666-
msgstr ""
667-
668661
#: shared-bindings/_bleio/Characteristic.c
669662
msgid "Expected a Service"
670663
msgstr ""
@@ -692,11 +685,11 @@ msgstr ""
692685
msgid "Failed to acquire mutex, err 0x%04x"
693686
msgstr "Gagal untuk mendapatkan mutex, status: 0x%08lX"
694687

695-
#: ports/atmel-samd/common-hal/busio/UART.c
696688
#: ports/mimxrt10xx/common-hal/busio/UART.c ports/nrf/common-hal/busio/UART.c
697689
msgid "Failed to allocate RX buffer"
698690
msgstr "Gagal untuk mengalokasikan buffer RX"
699691

692+
#: ports/atmel-samd/common-hal/busio/UART.c
700693
#: ports/atmel-samd/common-hal/pulseio/PulseIn.c
701694
#: ports/cxd56/common-hal/pulseio/PulseIn.c
702695
#: ports/nrf/common-hal/pulseio/PulseIn.c
@@ -1148,10 +1141,6 @@ msgstr ""
11481141
msgid "Pin does not have ADC capabilities"
11491142
msgstr "Pin tidak mempunya kemampuan untuk ADC (Analog Digital Converter)"
11501143

1151-
#: shared-bindings/_pixelbuf/PixelBuf.c
1152-
msgid "Pixel beyond bounds of buffer"
1153-
msgstr ""
1154-
11551144
#: py/builtinhelp.c
11561145
msgid "Plus any modules on the filesystem\n"
11571146
msgstr "Tambahkan module apapun pada filesystem\n"
@@ -1203,10 +1192,6 @@ msgstr ""
12031192
msgid "Random number generation error"
12041193
msgstr ""
12051194

1206-
#: shared-bindings/_pixelbuf/PixelBuf.c
1207-
msgid "Range out of bounds"
1208-
msgstr ""
1209-
12101195
#: shared-bindings/pulseio/PulseIn.c
12111196
msgid "Read-only"
12121197
msgstr ""
@@ -1632,11 +1617,6 @@ msgstr ""
16321617
msgid "branch not in range"
16331618
msgstr ""
16341619

1635-
#: shared-bindings/_pixelbuf/PixelBuf.c
1636-
#, c-format
1637-
msgid "buf is too small. need %d bytes"
1638-
msgstr ""
1639-
16401620
#: shared-bindings/audiocore/RawSample.c
16411621
msgid "buffer must be a bytes-like object"
16421622
msgstr ""
@@ -2528,10 +2508,6 @@ msgstr ""
25282508
msgid "queue overflow"
25292509
msgstr "antrian meluap (overflow)"
25302510

2531-
#: shared-bindings/_pixelbuf/PixelBuf.c
2532-
msgid "rawbuf is not the same size as buf"
2533-
msgstr ""
2534-
25352511
#: py/builtinimport.c
25362512
msgid "relative import"
25372513
msgstr "relative import"
@@ -2765,16 +2741,6 @@ msgstr ""
27652741
msgid "unknown format code '%c' for object of type '%s'"
27662742
msgstr ""
27672743

2768-
#: py/objstr.c
2769-
#, c-format
2770-
msgid "unknown format code '%c' for object of type 'float'"
2771-
msgstr ""
2772-
2773-
#: py/objstr.c
2774-
#, c-format
2775-
msgid "unknown format code '%c' for object of type 'str'"
2776-
msgstr ""
2777-
27782744
#: py/compile.c
27792745
msgid "unknown type"
27802746
msgstr "tipe tidak diketahui"

locale/circuitpython.pot

Lines changed: 4 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: PACKAGE VERSION\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2020-01-18 11:56-0800\n"
11+
"POT-Creation-Date: 2020-01-29 17:27-0800\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team: LANGUAGE <[email protected]>\n"
@@ -502,11 +502,8 @@ msgstr ""
502502
msgid "Column entry must be digitalio.DigitalInOut"
503503
msgstr ""
504504

505-
#: shared-bindings/displayio/I2CDisplay.c
506-
msgid "Command must be 0-255"
507-
msgstr ""
508-
509-
#: shared-bindings/displayio/FourWire.c shared-bindings/displayio/ParallelBus.c
505+
#: shared-bindings/displayio/FourWire.c shared-bindings/displayio/I2CDisplay.c
506+
#: shared-bindings/displayio/ParallelBus.c
510507
msgid "Command must be an int between 0 and 255"
511508
msgstr ""
512509

@@ -650,10 +647,6 @@ msgstr ""
650647
msgid "Expected a Characteristic"
651648
msgstr ""
652649

653-
#: shared-bindings/_pixelbuf/__init__.c
654-
msgid "Expected a PixelBuf instance"
655-
msgstr ""
656-
657650
#: shared-bindings/_bleio/Characteristic.c
658651
msgid "Expected a Service"
659652
msgstr ""
@@ -681,11 +674,11 @@ msgstr ""
681674
msgid "Failed to acquire mutex, err 0x%04x"
682675
msgstr ""
683676

684-
#: ports/atmel-samd/common-hal/busio/UART.c
685677
#: ports/mimxrt10xx/common-hal/busio/UART.c ports/nrf/common-hal/busio/UART.c
686678
msgid "Failed to allocate RX buffer"
687679
msgstr ""
688680

681+
#: ports/atmel-samd/common-hal/busio/UART.c
689682
#: ports/atmel-samd/common-hal/pulseio/PulseIn.c
690683
#: ports/cxd56/common-hal/pulseio/PulseIn.c
691684
#: ports/nrf/common-hal/pulseio/PulseIn.c
@@ -1136,10 +1129,6 @@ msgstr ""
11361129
msgid "Pin does not have ADC capabilities"
11371130
msgstr ""
11381131

1139-
#: shared-bindings/_pixelbuf/PixelBuf.c
1140-
msgid "Pixel beyond bounds of buffer"
1141-
msgstr ""
1142-
11431132
#: py/builtinhelp.c
11441133
msgid "Plus any modules on the filesystem\n"
11451134
msgstr ""
@@ -1189,10 +1178,6 @@ msgstr ""
11891178
msgid "Random number generation error"
11901179
msgstr ""
11911180

1192-
#: shared-bindings/_pixelbuf/PixelBuf.c
1193-
msgid "Range out of bounds"
1194-
msgstr ""
1195-
11961181
#: shared-bindings/pulseio/PulseIn.c
11971182
msgid "Read-only"
11981183
msgstr ""
@@ -1609,11 +1594,6 @@ msgstr ""
16091594
msgid "branch not in range"
16101595
msgstr ""
16111596

1612-
#: shared-bindings/_pixelbuf/PixelBuf.c
1613-
#, c-format
1614-
msgid "buf is too small. need %d bytes"
1615-
msgstr ""
1616-
16171597
#: shared-bindings/audiocore/RawSample.c
16181598
msgid "buffer must be a bytes-like object"
16191599
msgstr ""
@@ -2503,10 +2483,6 @@ msgstr ""
25032483
msgid "queue overflow"
25042484
msgstr ""
25052485

2506-
#: shared-bindings/_pixelbuf/PixelBuf.c
2507-
msgid "rawbuf is not the same size as buf"
2508-
msgstr ""
2509-
25102486
#: py/builtinimport.c
25112487
msgid "relative import"
25122488
msgstr ""
@@ -2739,16 +2715,6 @@ msgstr ""
27392715
msgid "unknown format code '%c' for object of type '%s'"
27402716
msgstr ""
27412717

2742-
#: py/objstr.c
2743-
#, c-format
2744-
msgid "unknown format code '%c' for object of type 'float'"
2745-
msgstr ""
2746-
2747-
#: py/objstr.c
2748-
#, c-format
2749-
msgid "unknown format code '%c' for object of type 'str'"
2750-
msgstr ""
2751-
27522718
#: py/compile.c
27532719
msgid "unknown type"
27542720
msgstr ""

locale/de_DE.po

Lines changed: 20 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: \n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2020-01-18 11:56-0800\n"
10+
"POT-Creation-Date: 2020-01-29 17:27-0800\n"
1111
"PO-Revision-Date: 2018-07-27 11:55-0700\n"
1212
"Last-Translator: Pascal Deneaux\n"
1313
"Language-Team: Sebastian Plamauer, Pascal Deneaux\n"
@@ -506,11 +506,8 @@ msgstr "Clock unit wird benutzt"
506506
msgid "Column entry must be digitalio.DigitalInOut"
507507
msgstr "Spalteneintrag muss digitalio.DigitalInOut sein"
508508

509-
#: shared-bindings/displayio/I2CDisplay.c
510-
msgid "Command must be 0-255"
511-
msgstr "Der Befehl muss zwischen 0 und 255 liegen"
512-
513-
#: shared-bindings/displayio/FourWire.c shared-bindings/displayio/ParallelBus.c
509+
#: shared-bindings/displayio/FourWire.c shared-bindings/displayio/I2CDisplay.c
510+
#: shared-bindings/displayio/ParallelBus.c
514511
msgid "Command must be an int between 0 and 255"
515512
msgstr "Der Befehl muss ein int zwischen 0 und 255 sein"
516513

@@ -654,10 +651,6 @@ msgstr "Erwartet ein(e) %q"
654651
msgid "Expected a Characteristic"
655652
msgstr "Characteristic wird erwartet"
656653

657-
#: shared-bindings/_pixelbuf/__init__.c
658-
msgid "Expected a PixelBuf instance"
659-
msgstr ""
660-
661654
#: shared-bindings/_bleio/Characteristic.c
662655
msgid "Expected a Service"
663656
msgstr "Ein Service wird erwartet"
@@ -685,11 +678,11 @@ msgstr "Kommando nicht gesendet."
685678
msgid "Failed to acquire mutex, err 0x%04x"
686679
msgstr "Mutex konnte nicht akquiriert werden. Status: 0x%04x"
687680

688-
#: ports/atmel-samd/common-hal/busio/UART.c
689681
#: ports/mimxrt10xx/common-hal/busio/UART.c ports/nrf/common-hal/busio/UART.c
690682
msgid "Failed to allocate RX buffer"
691683
msgstr "Konnte keinen RX Buffer allozieren"
692684

685+
#: ports/atmel-samd/common-hal/busio/UART.c
693686
#: ports/atmel-samd/common-hal/pulseio/PulseIn.c
694687
#: ports/cxd56/common-hal/pulseio/PulseIn.c
695688
#: ports/nrf/common-hal/pulseio/PulseIn.c
@@ -1151,10 +1144,6 @@ msgstr "Zugang verweigert"
11511144
msgid "Pin does not have ADC capabilities"
11521145
msgstr "Pin hat keine ADC Funktionalität"
11531146

1154-
#: shared-bindings/_pixelbuf/PixelBuf.c
1155-
msgid "Pixel beyond bounds of buffer"
1156-
msgstr "Pixel außerhalb der Puffergrenzen"
1157-
11581147
#: py/builtinhelp.c
11591148
msgid "Plus any modules on the filesystem\n"
11601149
msgstr "und alle Module im Dateisystem \n"
@@ -1206,10 +1195,6 @@ msgstr "Eine RTC wird auf diesem Board nicht unterstützt"
12061195
msgid "Random number generation error"
12071196
msgstr ""
12081197

1209-
#: shared-bindings/_pixelbuf/PixelBuf.c
1210-
msgid "Range out of bounds"
1211-
msgstr "Bereich außerhalb der Grenzen"
1212-
12131198
#: shared-bindings/pulseio/PulseIn.c
12141199
msgid "Read-only"
12151200
msgstr "Nur lesen möglich, da Schreibgeschützt"
@@ -1637,11 +1622,6 @@ msgstr "Es müssen 8 oder 16 bits_per_sample sein"
16371622
msgid "branch not in range"
16381623
msgstr "Zweig ist außerhalb der Reichweite"
16391624

1640-
#: shared-bindings/_pixelbuf/PixelBuf.c
1641-
#, c-format
1642-
msgid "buf is too small. need %d bytes"
1643-
msgstr "buf ist zu klein. brauche %d Bytes"
1644-
16451625
#: shared-bindings/audiocore/RawSample.c
16461626
msgid "buffer must be a bytes-like object"
16471627
msgstr "Puffer muss ein bytes-artiges Objekt sein"
@@ -2541,10 +2521,6 @@ msgstr ""
25412521
msgid "queue overflow"
25422522
msgstr "Warteschlangenüberlauf"
25432523

2544-
#: shared-bindings/_pixelbuf/PixelBuf.c
2545-
msgid "rawbuf is not the same size as buf"
2546-
msgstr "rawbuf hat nicht die gleiche Größe wie buf"
2547-
25482524
#: py/builtinimport.c
25492525
msgid "relative import"
25502526
msgstr "relativer Import"
@@ -2784,16 +2760,6 @@ msgstr ""
27842760
msgid "unknown format code '%c' for object of type '%s'"
27852761
msgstr ""
27862762

2787-
#: py/objstr.c
2788-
#, c-format
2789-
msgid "unknown format code '%c' for object of type 'float'"
2790-
msgstr ""
2791-
2792-
#: py/objstr.c
2793-
#, c-format
2794-
msgid "unknown format code '%c' for object of type 'str'"
2795-
msgstr ""
2796-
27972763
#: py/compile.c
27982764
msgid "unknown type"
27992765
msgstr "unbekannter Typ"
@@ -2921,6 +2887,9 @@ msgstr ""
29212887
#~ msgid "Characteristic already in use by another Service."
29222888
#~ msgstr "Characteristic wird bereits von einem anderen Dienst verwendet."
29232889

2890+
#~ msgid "Command must be 0-255"
2891+
#~ msgstr "Der Befehl muss zwischen 0 und 255 liegen"
2892+
29242893
#~ msgid "Could not decode ble_uuid, err 0x%04x"
29252894
#~ msgstr "Konnte ble_uuid nicht decodieren. Status: 0x%04x"
29262895

@@ -3122,6 +3091,12 @@ msgstr ""
31223091
#~ msgid "Pins not valid for SPI"
31233092
#~ msgstr "Pins nicht gültig für SPI"
31243093

3094+
#~ msgid "Pixel beyond bounds of buffer"
3095+
#~ msgstr "Pixel außerhalb der Puffergrenzen"
3096+
3097+
#~ msgid "Range out of bounds"
3098+
#~ msgstr "Bereich außerhalb der Grenzen"
3099+
31253100
#~ msgid "STA must be active"
31263101
#~ msgstr "STA muss aktiv sein"
31273102

@@ -3192,6 +3167,10 @@ msgstr ""
31923167
#~ "Sie laufen im abgesicherten Modus, was bedeutet, dass etwas Unerwartetes "
31933168
#~ "passiert ist.\n"
31943169

3170+
#, c-format
3171+
#~ msgid "buf is too small. need %d bytes"
3172+
#~ msgstr "buf ist zu klein. brauche %d Bytes"
3173+
31953174
#~ msgid "buffer too long"
31963175
#~ msgstr "Buffer zu lang"
31973176

@@ -3251,6 +3230,9 @@ msgstr ""
32513230
#~ msgid "pin does not have IRQ capabilities"
32523231
#~ msgstr "Pin hat keine IRQ Fähigkeiten"
32533232

3233+
#~ msgid "rawbuf is not the same size as buf"
3234+
#~ msgstr "rawbuf hat nicht die gleiche Größe wie buf"
3235+
32543236
#~ msgid "readonly attribute"
32553237
#~ msgstr "Readonly-Attribut"
32563238

0 commit comments

Comments
 (0)