Bug Issue: block "self" in other languages Regression


Pages: 1

yoplalala

  • Subscriber - Stencyl Studio
  • *
November 14, 2018, 01:14:20 am


New attachment added by Justin - November 14, 2018, 07:14:17 am


Justin

  • Master Stencyler
  • *
November 14, 2018, 07:15:05 am
Fixed in b10083. I've taken a bit of a different approach here.

1) For already existing blocks, it looks at what's there and copies it. You'll end up with "var __Simme:Actor = actor;" in a few places where perhaps it used to say "var __Self:Actor = actor;" or something else.

This should make all your code compile, hopefully, and would be a good enough fix, except we need to consider other potential translations.

For example, if "block.thisactor" was translated into Chinese characters, it would end up with a nearly blank identifier ("__") which wouldn't be very helpful. So going forward...

2) For new custom blocks, it will use the translation for display, and it'll always say "Self" in the code underneath.

(Ignore the name, it was tossed into the English lang files with a single non-ascii character for testing.)

  • Status changed from New to Resolved
  • Issue Assigned from (none) to Justin
« Last Edit: November 14, 2018, 07:14:35 am by Justin »


Pages: 1

Details

  • Reported
    November 14, 2018, 01:14:20 am
  • Updated
    November 14, 2018, 07:15:05 am

  • View Status
    Public
  • Type
    Bug
  • Status
    Resolved
  • Priority
    Normal
  • Version
    Stencyl 3.5, 3.5.0 beta 1
  • Fixed in
    (none)
  • Assigned to
    Justin
  • Category
    (none)

Tags


Attachments


* thisblock.png (9.23 kB, 762x241 - viewed 12 times.)