Skip to content

"Paste" menu item is not internationalized #2702

Open
@miki-wmhne

Description

@miki-wmhne

Describe the problem

The "Paste" menu item is always shown in English, even though it has been localized.

To reproduce

  1. Select File > Preferences... (or Arduino > Settings... for macOS users) from the Arduino IDE menus.
    The "Preferences" dialog will open.
  2. Select "italiano" from the "Language" menu.
    This language/locale was chosen arbitrarily for the demo. The fault occurs with all non-English locales.
  3. Click the "OK" button.
    The "Preferences" dialog will close.
  4. Open the "Modifica" menu.
    🐛 The menu item label is "Paste" instead of the localized "Incolla".
  5. Right-click on the editor view.
    🐛 The menu item label is "Paste" instead of the localized "Incolla".

Expected behavior

All strings for which there is localization data are localized in the Arduino IDE UI.

Arduino IDE version

2.3.6

Operating system

  • macOS
  • Windows

Operating system version

  • macOS 13.2.1
  • Windows 11 24H2

Additional context

I bisected the regression to 859d29d / #2654 (does not occur when using the build at the previous commit d298b3f).


I can reproduce the fault in Theia Eclipse IDE versions 1.57.0 through 1.58.100. So the bug seems to originate from Theia (or one of the shared dependencies) rather than the Arduino IDE codebase.

The fault is not present in Theia Eclipse IDE version 1.59.1. So it appears that the bug has been fixed upstream already. eclipse-theia/theia#15016 looks relevant. However, I am not able to reproduce the fault with the "Paste" string's internationalization when using the Theia examples, so I was not able to bisect the fix (although I do see other internationalization problems fixed at that commit).


I believe the localization data for this specific string comes from the VS Code language packs:

https://github.com/microsoft/vscode-loc/blob/v1.96.2024112009/i18n/vscode-language-pack-it/translations/main.i18n.json#L3453

Related


Keywords

  • localization

  • localized

  • l10n

  • internationalization

  • internationalized

  • i18n

  • translate

  • translation

  • translator

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: theiaRelated to the Theia IDE frameworktype: imperfectionPerceived defect in any part of project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions