Closed Bug 1770693 Opened 3 years ago Closed 7 months ago

Timestamp not added to filename when copy&paste images in localized versions

Categories

(Core :: DOM: File, defect, P3)

Firefox 100
defect

Tracking

()

RESOLVED INVALID

People

(Reporter: next4adm, Unassigned)

Details

(Whiteboard: dom-lws-bugdash-triage)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:100.0) Gecko/20100101 Firefox/100.0

Steps to reproduce:

copy&paste of images in e.g. Confluence always generates the file name grafik.png. No timestamp is generated for the file name. In previous Firefox versions a filename in the form image<TIMESTAMP>.png e.g. image2022-5-23_9-24-42.png was always generated.
When I change the language in Firefox to English (US) the filename in the form image<TIMESTAMP>.png is generated again.

Actual results:

copy&paste of images in Firefox german image name without timestamp just grafik.png

Expected results:

opy&paste of images in Firefox german image name with timestamp e.g. image2022-5-23_9-24-42.png or in german grafik2022-5-23_9-24-42.png

The Bugbug bot thinks this bug should belong to the 'Core::Layout: Images, Video, and HTML Frames' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Layout: Images, Video, and HTML Frames
Product: Firefox → Core
Component: Layout: Images, Video, and HTML Frames → Internationalization: Localization

Not a localization issue, or an error specifically in German's localization.

I tracked down "grafik" to https://searchfox.org/mozilla-central/source/dom/events/DataTransferItem.cpp#42

But can't find anything that shows use of timestamp, so I wonder if that's Firefox manipulating that name.

Component: Internationalization: Localization → DOM: File
Summary: German translation incorrect when copy&paste images → Timestamp not added to filename when copy&paste images in localized versions

It is in the german translation

find in chrome\de\locale\de\global\dom\dom.properties
NEW:
GenericImageNamePNG=grafik.png

OLD:
GenericImageNamePNG=grafik.png

when I copy&paste an image into confluence, the file name image.png was always passed. In newer Firefox versions now grafik.png is passed (German version).

Conflunece expects image.png so that a timestamp can be inserted between image and .png.

(In reply to next4adm from comment #3)

Conflunece expects image.png so that a timestamp can be inserted between image and .png.

That sounds like a bug in Confluence, not Firefox. Users should expect to have a localized name when saving the file.

Severity: -- → S3
Priority: -- → P3

(In reply to Francesco Lodolo [:flod] from comment #4)

(In reply to next4adm from comment #3)

Conflunece expects image.png so that a timestamp can be inserted between image and .png.

That sounds like a bug in Confluence, not Firefox. Users should expect to have a localized name when saving the file.

Closing this based on comment 3.

Status: UNCONFIRMED → RESOLVED
Closed: 7 months ago
Resolution: --- → INVALID
Whiteboard: dom-lws-bugdash-triage
You need to log in before you can comment on or make changes to this bug.