Mojira Archive
MCM-1833

RawText {translate:"pack.name"} does not bring back pack.name from .lang. Shows "pack.name" as a string literal.

Partner Rank:
N/A

Verification Builds:
26925527 UWP

Regression Builds:
Unknown

Summary:
RawText {translate:"pack.name"} does not work. Shows "pack.name" as a string literal.

Affects currently Live Content:
Yes

Impact:

Unable to dynamically include the name of our product from pack.name without duplicating this string. We are creating libraries that we can share across our Add-Ons, and were hoping to use pack.name. It can be worked around, but this should technically work, so this seems like a bug, hence the report.

Repro Steps:

With the supplied BP/RP (see attachments):

  1. Open a world with the PACKNAMEDEBUG packs applied.
  2. Break any block.
  3. Observe that "pack.name" appears in the chat, despite using {translate:"pack.name"} (a string that exists in the RP .lang)

On your own:

  1. Paste this command:
    • {{/tellraw @s {"rawtext":[ {"text":"Hi from: "}

      , {"translate":"pack.name"}]}}}

Observed Results:

With the supplied BP/RP:

  • Observe that "pack.name" appears in the chat, despite using {translate:"pack.name"} (a string that exists in the RP .lang). pack.name should appear as "

On your own:

  • Observe that pack.name does not get translated. 

Expected Results:

  • "pack.name" should translate to the appropriate localization definition in the .lang file (e.g. if pack.name=My Cool Add-On, then {translate:"pack.name"} should output "My Cool Add-On")

Screenshots/Videos attached:

Screen Recording: https://capture.dropbox.com/cZbvH6rjoWZ7lvh3 

Notes:

Works As Intended

57Digital

2024-08-22, 01:02 PM

2024-08-29, 08:29 PM

2024-08-29, 08:29 PM

0

0

1.21

-