- edited description
TRANSLATION Issues - missing strings
Including a slightly corrected TR version, attached.
I was reviewing the new TR translation and noticed several strings NOT translated in the IDE. However, when I searched for the --MISSING-- entries in the TR file, there were not any !
So it seems, these are not included in the translation files and they do not have a --MISSING-- in the IDE:
- COMM: i2c device _ read list _
i2c device _ write list _ - CONTROL: last message
- Lists & Strings - Advanced: join items of list _ separator _
LIBRARIES:
- ED1 Buttons: _ED1__buttons_init
- ED1 Step Motor: move motor _ _ steps _
move motor _ angle _
__ED1__stepper_init - System - Misc Primitives: arg count
arg _ - System - Servo Primitives: set servo pin _ to _ usecs
- System - Touch Screen: TFT touched
TFT touch X position
TFT touch Y position
TFT touch pressure - System - WIFI / IOT Primitives: append to thing description
append to thing property _ - Button Events: __buttonLoop
__read button _
__button _ - Calliope: Calliope set LED red _ green _ blue _
Calliope set speaker _
Calliope loudness - Circuit Playground: Circuit Playground set speaker _
Circuit Playground slide switch - DHT: all commands
- DotStar: all commands
- Hummingbird: SPI HB Lock
SPI HB Unlock
SPI Command _ _ _ _
_ within _ and _ - IR Remote: __captureIRMessage
__dumpIR
__getIRByte _
__got32Bits - Motion: __addSample _
__recentAvergae
__stepCounterLoop - NEOPixel: random color
__NeoPixel_ensureInitialized
__NeoPixel_rotate_left _
__NeoPixel_update - PIR: __PIR at pin _
__pirLoop - Radio: __radio Last message type
__radio receive packet _
__radio send packet _
__radio last signal strength
__radio set channel (0-83) _ - RFID: all commands
- Scrolling: __convert_to_shapes _
__scroll_digit_shapes _ - Servo: stop servo _
__servoIndex _
__servoPulse pin _ usecs _
__servoUpdateLoop - Tone: there’s a block without text on it !!
__measureLoopOverhead
__baseFreqForNote _
__baseFreqForSharpOrFlat _
__baseFreqForSemitone _
__toneLoop _ for _ milliseconds - Turtle: point in direction _
__turtleNotes - WebThing: __add to last property key _ value _
Comments (8)
-
reporter -
Hi, Turgut.
Thanks for noticing those. However, with the new translation system, you should not add any strings to the TR file, but to the Locales.txt one instead. Otherwise, they’re going to be steam rolled when we run the update script.
Also, blocks whose name starts with an underscore should not be translated. These are internal methods that don’t get shown to regular users and are discouraged to use by anyone except library developers. Notice how they don’t show up unless you’re in advanced mode.
Thanks for finding the rest of the missing strings. I will add these to Locale.txt and send you a new updated TR file so you can fill them up.
Cheers,
Bernat.
-
Hmm… looking at this, I don’t think we want to translate any system primitives for the moment either, is that right, @John Maloney ?
-
Sorry for breaking this up in so many replies, I’m writing as I review these
Basically, I think we don’t want to translate anything that only shows up when you’re in advanced mode. These are things that are either just for advanced developers or still in testing, so we don’t want to waste translators time in strings that may change or go away in the end. Examples:
last message
, any of the System libraries (we should probably hide those from the library file picker) and any blocks that start with underscore. -
repo owner I agree. For now, at least, we should not translate system primitives or the internal methods of libraries (the ones that only show up when you show advanced blocks). Partly, those are implementation details that may change. But the bigger reason is that most users will never see them and when we eventually write a reference guide they won’t be included.
Thanks for making this list, Turgut. You found several libraries that are missing or which have commands that need to be updated in the master Locales.txt file so that they can be translated.
You’ve probably seen Bernat’s blog post about the new translation system:
http://microblocks.fun/blog-2020-01-10-how-to-translate-microblocks
-
reporter @Bernat
Thanks, I’ll be waiting for the new file link.
-
Hi, Turgut!
Sorry about the delay. I was working on stuff that was going to add a lot of new strings, so I waited until now to update the translation files. Please find the new Turkish template here:
https://bitbucket.org/john_maloney/smallvm/src/libraries/translations/Türkçe.txt
Note that internal (hidden) library blocks have not been added to the translation template. These are not meant to be translated, at least for the time being.
As always, thanks for your careful review and testing of MicroBlocks!
-
- changed status to resolved
- Log in to comment