Skip to content

Commit 8664a65

Browse files
committed
use approx of original @godlygeek code for smallints; add tests
1 parent d103ac1 commit 8664a65

16 files changed

+575
-529
lines changed

locale/ID.po

Lines changed: 41 additions & 41 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: 2019-05-09 01:06-0400\n"
11+
"POT-Creation-Date: 2019-05-12 09:42-0400\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -52,7 +52,7 @@ msgstr ""
5252
msgid "%q indices must be integers, not %s"
5353
msgstr ""
5454

55-
#: shared-bindings/displayio/Group.c shared-bindings/displayio/Shape.c
55+
#: shared-bindings/displayio/Shape.c shared-bindings/displayio/Group.c
5656
#: shared-bindings/bleio/CharacteristicBuffer.c
5757
#, fuzzy
5858
msgid "%q must be >= 1"
@@ -70,12 +70,12 @@ msgstr "%q() mengambil posisi argumen %d tapi %d yang diberikan"
7070
msgid "'%q' argument required"
7171
msgstr "'%q' argumen dibutuhkan"
7272

73-
#: py/emitinlinethumb.c py/emitinlinextensa.c
73+
#: py/emitinlinextensa.c py/emitinlinethumb.c
7474
#, c-format
7575
msgid "'%s' expects a label"
7676
msgstr ""
7777

78-
#: py/emitinlinethumb.c py/emitinlinextensa.c
78+
#: py/emitinlinextensa.c py/emitinlinethumb.c
7979
#, c-format
8080
msgid "'%s' expects a register"
8181
msgstr "'%s' mengharapkan sebuah register"
@@ -95,7 +95,7 @@ msgstr "'%s' mengharapkan sebuah FPU register"
9595
msgid "'%s' expects an address of the form [a, b]"
9696
msgstr "'%s' mengharapkan sebuah alamat dengan bentuk [a, b]"
9797

98-
#: py/emitinlinethumb.c py/emitinlinextensa.c
98+
#: py/emitinlinextensa.c py/emitinlinethumb.c
9999
#, c-format
100100
msgid "'%s' expects an integer"
101101
msgstr "'%s' mengharapkan integer"
@@ -253,9 +253,9 @@ msgstr "Semua channel event yang disinkronisasi sedang digunakan"
253253
msgid "All timers for this pin are in use"
254254
msgstr "Semua timer untuk pin ini sedang digunakan"
255255

256+
#: ports/atmel-samd/common-hal/pulseio/PulseOut.c
256257
#: ports/atmel-samd/common-hal/frequencyio/FrequencyIn.c
257258
#: ports/atmel-samd/common-hal/audioio/AudioOut.c
258-
#: ports/atmel-samd/common-hal/pulseio/PulseOut.c
259259
#: ports/nrf/common-hal/pulseio/PulseOut.c shared-bindings/pulseio/PWMOut.c
260260
#: shared-module/_pew/PewPew.c
261261
msgid "All timers in use"
@@ -326,7 +326,7 @@ msgstr ""
326326
msgid "Buffer incorrect size. Should be %d bytes."
327327
msgstr ""
328328

329-
#: shared-bindings/bitbangio/I2C.c shared-bindings/busio/I2C.c
329+
#: shared-bindings/busio/I2C.c shared-bindings/bitbangio/I2C.c
330330
msgid "Buffer must be at least length 1"
331331
msgstr ""
332332

@@ -366,7 +366,7 @@ msgstr ""
366366
msgid "Can't connect in Peripheral mode"
367367
msgstr ""
368368

369-
#: shared-bindings/displayio/Bitmap.c shared-bindings/pulseio/PulseIn.c
369+
#: shared-bindings/pulseio/PulseIn.c shared-bindings/displayio/Bitmap.c
370370
msgid "Cannot delete values"
371371
msgstr ""
372372

@@ -452,7 +452,7 @@ msgstr "Clock unit sedang digunakan"
452452
msgid "Column entry must be digitalio.DigitalInOut"
453453
msgstr ""
454454

455-
#: shared-bindings/displayio/FourWire.c shared-bindings/displayio/ParallelBus.c
455+
#: shared-bindings/displayio/ParallelBus.c shared-bindings/displayio/FourWire.c
456456
msgid "Command must be an int between 0 and 255"
457457
msgstr ""
458458

@@ -490,8 +490,8 @@ msgstr ""
490490
msgid "Data chunk must follow fmt chunk"
491491
msgstr ""
492492

493-
#: ports/nrf/common-hal/bleio/Broadcaster.c
494493
#: ports/nrf/common-hal/bleio/Peripheral.c
494+
#: ports/nrf/common-hal/bleio/Broadcaster.c
495495
#, fuzzy
496496
msgid "Data too large for advertisement packet"
497497
msgstr "Tidak bisa menyesuaikan data ke dalam paket advertisment"
@@ -513,17 +513,17 @@ msgstr ""
513513
msgid "Drive mode not used when direction is input."
514514
msgstr ""
515515

516-
#: ports/atmel-samd/common-hal/frequencyio/FrequencyIn.c
517516
#: ports/atmel-samd/common-hal/pulseio/PulseIn.c
517+
#: ports/atmel-samd/common-hal/frequencyio/FrequencyIn.c
518518
msgid "EXTINT channel already in use"
519519
msgstr "Channel EXTINT sedang digunakan"
520520

521521
#: extmod/modure.c
522522
msgid "Error in regex"
523523
msgstr "Error pada regex"
524524

525-
#: shared-bindings/microcontroller/Pin.c
526-
#: shared-bindings/neopixel_write/__init__.c shared-bindings/pulseio/PulseOut.c
525+
#: shared-bindings/microcontroller/Pin.c shared-bindings/pulseio/PulseOut.c
526+
#: shared-bindings/neopixel_write/__init__.c
527527
#: shared-bindings/terminalio/Terminal.c
528528
msgid "Expected a %q"
529529
msgstr ""
@@ -532,8 +532,8 @@ msgstr ""
532532
msgid "Expected a Characteristic"
533533
msgstr ""
534534

535-
#: shared-bindings/bleio/Characteristic.c shared-bindings/bleio/Descriptor.c
536-
#: shared-bindings/bleio/Service.c
535+
#: shared-bindings/bleio/Descriptor.c shared-bindings/bleio/Service.c
536+
#: shared-bindings/bleio/Characteristic.c
537537
msgid "Expected a UUID"
538538
msgstr ""
539539

@@ -657,8 +657,8 @@ msgstr "Gagal untuk melepaskan mutex, status: 0x%08lX"
657657
msgid "Failed to start advertising"
658658
msgstr "Gagal untuk memulai advertisement, status: 0x%08lX"
659659

660-
#: ports/nrf/common-hal/bleio/Broadcaster.c
661660
#: ports/nrf/common-hal/bleio/Peripheral.c
661+
#: ports/nrf/common-hal/bleio/Broadcaster.c
662662
#, fuzzy, c-format
663663
msgid "Failed to start advertising, err 0x%04x"
664664
msgstr "Gagal untuk memulai advertisement, status: 0x%08lX"
@@ -678,8 +678,8 @@ msgstr "Gagal untuk melakukan scanning, status: 0x%08lX"
678678
msgid "Failed to stop advertising"
679679
msgstr "Gagal untuk memberhentikan advertisement, status: 0x%08lX"
680680

681-
#: ports/nrf/common-hal/bleio/Broadcaster.c
682681
#: ports/nrf/common-hal/bleio/Peripheral.c
682+
#: ports/nrf/common-hal/bleio/Broadcaster.c
683683
#, fuzzy, c-format
684684
msgid "Failed to stop advertising, err 0x%04x"
685685
msgstr "Gagal untuk memberhentikan advertisement, status: 0x%08lX"
@@ -720,8 +720,8 @@ msgstr ""
720720
msgid "Frequency captured is above capability. Capture Paused."
721721
msgstr ""
722722

723-
#: shared-bindings/bitbangio/I2C.c shared-bindings/bitbangio/SPI.c
724723
#: shared-bindings/busio/I2C.c shared-bindings/busio/SPI.c
724+
#: shared-bindings/bitbangio/I2C.c shared-bindings/bitbangio/SPI.c
725725
msgid "Function requires lock"
726726
msgstr ""
727727

@@ -751,8 +751,8 @@ msgstr ""
751751
msgid "Input/output error"
752752
msgstr ""
753753

754-
#: ports/atmel-samd/common-hal/audiobusio/PDMIn.c
755754
#: ports/atmel-samd/common-hal/audiobusio/I2SOut.c
755+
#: ports/atmel-samd/common-hal/audiobusio/PDMIn.c
756756
msgid "Invalid %q pin"
757757
msgstr "%q pada tidak valid"
758758

@@ -797,16 +797,16 @@ msgstr ""
797797
msgid "Invalid format chunk size"
798798
msgstr ""
799799

800-
#: shared-bindings/bitbangio/SPI.c shared-bindings/busio/SPI.c
800+
#: shared-bindings/busio/SPI.c shared-bindings/bitbangio/SPI.c
801801
msgid "Invalid number of bits"
802802
msgstr ""
803803

804-
#: shared-bindings/bitbangio/SPI.c shared-bindings/busio/SPI.c
804+
#: shared-bindings/busio/SPI.c shared-bindings/bitbangio/SPI.c
805805
msgid "Invalid phase"
806806
msgstr ""
807807

808-
#: ports/atmel-samd/common-hal/audioio/AudioOut.c
809808
#: ports/atmel-samd/common-hal/touchio/TouchIn.c
809+
#: ports/atmel-samd/common-hal/audioio/AudioOut.c
810810
#: shared-bindings/pulseio/PWMOut.c
811811
msgid "Invalid pin"
812812
msgstr "Pin tidak valid"
@@ -827,7 +827,7 @@ msgstr "Pin untuk channel kanan tidak valid"
827827
msgid "Invalid pins"
828828
msgstr "Pin-pin tidak valid"
829829

830-
#: shared-bindings/bitbangio/SPI.c shared-bindings/busio/SPI.c
830+
#: shared-bindings/busio/SPI.c shared-bindings/bitbangio/SPI.c
831831
msgid "Invalid polarity"
832832
msgstr ""
833833

@@ -928,8 +928,8 @@ msgstr "Tidak ada GCLK yang kosong"
928928
msgid "No hardware random available"
929929
msgstr ""
930930

931-
#: ports/atmel-samd/common-hal/frequencyio/FrequencyIn.c
932931
#: ports/atmel-samd/common-hal/pulseio/PulseIn.c
932+
#: ports/atmel-samd/common-hal/frequencyio/FrequencyIn.c
933933
msgid "No hardware support on pin"
934934
msgstr "Tidak ada dukungan hardware untuk pin"
935935

@@ -1076,17 +1076,17 @@ msgstr ""
10761076
msgid "Sample rate too high. It must be less than %d"
10771077
msgstr "Nilai sampel terlalu tinggi. Nilai harus kurang dari %d"
10781078

1079-
#: ports/atmel-samd/common-hal/audiobusio/PDMIn.c
10801079
#: ports/atmel-samd/common-hal/audiobusio/I2SOut.c
1080+
#: ports/atmel-samd/common-hal/audiobusio/PDMIn.c
10811081
msgid "Serializer in use"
10821082
msgstr "Serializer sedang digunakan"
10831083

10841084
#: shared-bindings/nvm/ByteArray.c
10851085
msgid "Slice and value different lengths."
10861086
msgstr ""
10871087

1088-
#: shared-bindings/displayio/Bitmap.c shared-bindings/displayio/Group.c
1089-
#: shared-bindings/displayio/TileGrid.c shared-bindings/pulseio/PulseIn.c
1088+
#: shared-bindings/pulseio/PulseIn.c shared-bindings/displayio/Bitmap.c
1089+
#: shared-bindings/displayio/TileGrid.c shared-bindings/displayio/Group.c
10901090
msgid "Slices not supported"
10911091
msgstr ""
10921092

@@ -1175,7 +1175,7 @@ msgstr "Untuk keluar, silahkan reset board tanpa "
11751175
msgid "Too many channels in sample."
11761176
msgstr "Terlalu banyak channel dalam sampel"
11771177

1178-
#: shared-bindings/displayio/FourWire.c shared-bindings/displayio/ParallelBus.c
1178+
#: shared-bindings/displayio/ParallelBus.c shared-bindings/displayio/FourWire.c
11791179
msgid "Too many display busses"
11801180
msgstr ""
11811181

@@ -1216,8 +1216,8 @@ msgstr ""
12161216
msgid "Unable to allocate buffers for signed conversion"
12171217
msgstr "Tidak dapat mengalokasikan buffer untuk signed conversion"
12181218

1219-
#: ports/atmel-samd/common-hal/audiobusio/PDMIn.c
12201219
#: ports/atmel-samd/common-hal/audiobusio/I2SOut.c
1220+
#: ports/atmel-samd/common-hal/audiobusio/PDMIn.c
12211221
msgid "Unable to find free GCLK"
12221222
msgstr "Tidak dapat menemukan GCLK yang kosong"
12231223

@@ -1345,8 +1345,8 @@ msgstr ""
13451345
msgid "argument has wrong type"
13461346
msgstr ""
13471347

1348-
#: py/argcheck.c shared-bindings/_stage/__init__.c
1349-
#: shared-bindings/digitalio/DigitalInOut.c shared-bindings/gamepad/GamePad.c
1348+
#: py/argcheck.c shared-bindings/gamepad/GamePad.c
1349+
#: shared-bindings/_stage/__init__.c shared-bindings/digitalio/DigitalInOut.c
13501350
msgid "argument num/types mismatch"
13511351
msgstr "argumen num/types tidak cocok"
13521352

@@ -1416,7 +1416,7 @@ msgstr ""
14161416
msgid "buffer size must match format"
14171417
msgstr "buffers harus mempunyai panjang yang sama"
14181418

1419-
#: shared-bindings/bitbangio/SPI.c shared-bindings/busio/SPI.c
1419+
#: shared-bindings/busio/SPI.c shared-bindings/bitbangio/SPI.c
14201420
msgid "buffer slices must be of equal length"
14211421
msgstr ""
14221422

@@ -1700,7 +1700,7 @@ msgstr ""
17001700
msgid "dict update sequence has wrong length"
17011701
msgstr ""
17021702

1703-
#: py/modmath.c py/objfloat.c py/objint_longlong.c py/objint_mpz.c py/runtime.c
1703+
#: py/objfloat.c py/runtime.c py/modmath.c py/objint_longlong.c py/objint_mpz.c
17041704
#: shared-bindings/math/__init__.c
17051705
msgid "division by zero"
17061706
msgstr ""
@@ -1770,7 +1770,7 @@ msgstr "argumen keyword ekstra telah diberikan"
17701770
msgid "extra positional arguments given"
17711771
msgstr "argumen posisi ekstra telah diberikan"
17721772

1773-
#: shared-bindings/audioio/WaveFile.c shared-bindings/displayio/OnDiskBitmap.c
1773+
#: shared-bindings/displayio/OnDiskBitmap.c shared-bindings/audioio/WaveFile.c
17741774
msgid "file must be a file opened in byte mode"
17751775
msgstr ""
17761776

@@ -1943,7 +1943,7 @@ msgstr "micropython decorator tidak valid"
19431943
msgid "invalid step"
19441944
msgstr ""
19451945

1946-
#: py/compile.c py/parse.c
1946+
#: py/parse.c py/compile.c
19471947
msgid "invalid syntax"
19481948
msgstr "syntax tidak valid"
19491949

@@ -1980,7 +1980,7 @@ msgstr "argumen keyword belum diimplementasi - gunakan args normal"
19801980
msgid "keywords must be strings"
19811981
msgstr "keyword harus berupa string"
19821982

1983-
#: py/emitinlinethumb.c py/emitinlinextensa.c
1983+
#: py/emitinlinextensa.c py/emitinlinethumb.c
19841984
msgid "label '%q' not defined"
19851985
msgstr ""
19861986

@@ -2087,11 +2087,11 @@ msgstr ""
20872087
msgid "need more than %d values to unpack"
20882088
msgstr ""
20892089

2090-
#: py/objint_longlong.c py/objint_mpz.c py/runtime.c
2090+
#: py/runtime.c py/objint_longlong.c py/objint_mpz.c
20912091
msgid "negative power with no float support"
20922092
msgstr ""
20932093

2094-
#: py/objint_mpz.c py/runtime.c
2094+
#: py/runtime.c py/objint_mpz.c
20952095
msgid "negative shift count"
20962096
msgstr ""
20972097

@@ -2198,7 +2198,7 @@ msgstr "panjang data string memiliki keganjilan (odd-length)"
21982198
msgid "offset out of bounds"
21992199
msgstr "modul tidak ditemukan"
22002200

2201-
#: py/objarray.c py/objstr.c py/objstrunicode.c py/objtuple.c
2201+
#: py/objstr.c py/objarray.c py/objstrunicode.c py/objtuple.c
22022202
#: shared-bindings/nvm/ByteArray.c
22032203
msgid "only slices with step=1 (aka None) are supported"
22042204
msgstr ""
@@ -2348,7 +2348,7 @@ msgstr ""
23482348
msgid "slice step cannot be zero"
23492349
msgstr ""
23502350

2351-
#: py/objint.c py/sequence.c
2351+
#: py/sequence.c py/objint.c
23522352
msgid "small int overflow"
23532353
msgstr ""
23542354

@@ -2588,7 +2588,7 @@ msgstr ""
25882588

25892589
#: py/objint.c
25902590
#, c-format
2591-
msgid "value would overflow a %d byte buffer"
2591+
msgid "value must fit in %d byte(s)"
25922592
msgstr ""
25932593

25942594
#: shared-bindings/displayio/Bitmap.c

0 commit comments

Comments
 (0)