Untranslated blurbs become blank by default

This is a regression of behaviour. I’m not sure if it is done on purpose. I notice that all data structure in blurbs are given “” empty value by default. Consequently, all untranslated blurbs become blank. Take SN 22.44, this is the Suttaplex card in English:


Because the blurb hasn’t been translated, when I switch to Chinese, it turns blank.

Is this done on purpose or unintended consequence? Previously, it would still display the blurb in English if the blurb of the selected language hasn’t been translated.

I don’t necessarily think it is bad for blurbs. Showing English blurbs while the reader selects another language may break immersion, especially for those who don’t know English.

4 Likes

There haven’t been any non-bugfix changes to the main site in months, so in that sense, it’s certainly unintended.

This bug and the other two you’ve diligently found all have the same root cause – empty strings being added to untranslated segments.

The overall problem is that there are two behaviors covered by this change. Previously:

  1. An empty string could mean that a segment was omitted in a translation (such as with repetition).
  2. A missing translation key entirely could mean that it should fallback to the root language (such as with a translator’s name)

There is no distinction between the two now. But there should be, in one way or another (either same as before, or explicit values like <omitted> or <fallback>, or something else)

If I’m not mistaken, generally localizations fallback to the root language rather than leaving blank. That does a few things:

  1. Makes you aware that it isn’t supposed to be blank
  2. Allows you to use a translator
  3. Makes it more likely someone may contribute a translation

There are different ways of handling it, but purely blank is confusing and inconsistent UX IMO

3 Likes

You’re quite right. That was what prompted me to start reading the suttas and translate blurbs because I was frustrated that Indonesian enjoys better support than Chinese over here.

2 Likes