mozilla / mozilla/pontoon

Fluent strings with `SHORTDATE()` reimported and showing up broken as `{�}`

Open
#4,533 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

hours P2 regression
Dominant language
Python
Stars
1.7k
Forks
611
Avg merge
1d 19h
Merged PRs (30d)
49

Description

The string in question is { SHORTDATE($date) }.

In the UI I see

<mark class="placeable" data-match="{�}" title="Placeholder">{�}</mark>
Image

It also shows up as imported 1 day ago, when the string didn't really change.

It happens across locales
https://pontoon.mozilla.org/it/firefox-profiler/app.ftl/?string=243174

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the linked Pontoon string across locales and inspect how the Fluent string containing SHORTDATE($date) is imported and rendered. Done means the placeholder no longer becomes {�} in the UI and an unchanged string is not reported as newly imported.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
localization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.