[go: up one dir, main page]

Missing translatable string for "Shift" key and others, causing wrongly translated string in UI

Summary:

In /src/ui/tools/select-tool.cpp line 89 there is a composed string that uses "%s" to fill in the names of the "Shift" and "Alt" keys. The string looks like this:

No objects selected. Click, %s+click, %s+scroll mouse on top of objects, or drag around objects to select.

When using Inkscape in another language, for example Spanish, the string is translated like this:

No se han seleccionado objetos. Haga clic, %s+clic, %s+rueda encima de objetos o arrastre para seleccionar los objetos.

but when the string is shown in the UI, the "%s" are replaced with the English word, resulting in:

"No se han seleccionado objetos. Haga clic, _Shift_+clic, _Alt_+rueda encima de objetos o arrastre para seleccionar los objetos." (italics are mine, for clarification, not in the UI)

Steps to reproduce:

  • Open Inkscape in a language other than English (Spanish should work, as the string in question has been translated)
  • On the blank canvas, click and drag the mouse pointer over an empty space
  • Look at the status bar where UI messages are shown
  • Observe that the translated message contains English key names
    • See attached screenshot

What happened?

The UI message contains English text where it should be in Spanish

What should have happened?

The message should appear completely in Spanish. In this example, the "Alt" key is also called "Alt" in Spanish, so it does not change, but the substitution should be done nevertheless:

"No se han seleccionado objetos. Haga clic, _Mayús_+clic, _Alt_+rueda encima de objetos o arrastre para seleccionar los objetos." (italics are mine, for clarification, not in the UI)

Sample attachments:

inkscape_translation_bug

Version info

Inkscape 1.2.2 (b0a8486, 2022-12-01)

    GLib version:     2.72.1
    GTK version:      3.24.34
    glibmm version:   2.60.0
    gtkmm version:    3.24.5
    libxml2 version:  2.9.12
    libxslt version:  1.1.34
    Cairo version:    1.17.6
    Pango version:    1.50.6
    HarfBuzz version: 2.9.1

    OS version:       macOS
Edited by Lucas Vieites