german translation error in part library editor

Bug #1437604 reported by Kevin Kettinger
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
Undecided
Unassigned

Bug Description

When adding or editing a new pin in the part library editor on the pin settings window, the text for the orientation "left" is wronlgy called "Verbindungen". The correct translation for "left" in the sense of orientation is "Links".

Tags: translation
Revision history for this message
Sven D (sven-d) wrote :

I can confirm the wrong translation.

It is in the dropdown menu "Ausrichtung"

tags: added: german translation
Changed in kicad:
assignee: nobody → Sven D (sven-d)
Revision history for this message
Sven D (sven-d) wrote :

It is a little bit crazy.

The translation in the po file is correct.

The translations for the non german speakers
English German
Left -> Links
Links - > Verbindungen

In lib_pin.cpp line 59 are the entries for the dropdown menu

static const wxString pin_orientation_names[] =
{
    _( "Right" ),
    _( "Left" ),
    _( "Up" ),
    _( "Down" )
};

In the german po file is the entry

   2415 #: eeschema/lib_pin.cpp:59
   2416 #: eeschema/dialogs/dialog_edit_libentry_fields_in_lib_base.cpp:54
   2417 #: eeschema/dialogs/dialog_edit_component_in_schematic_fbp.cpp:148
   2418 #: eeschema/dialogs/dialog_edit_label_base.cpp:70
   2419 #: pcbnew/dialogs/dialog_pcb_text_properties_base.cpp:106
   2420 msgid "Left"
   2421 msgstr "Links"

and

   9759 #: pcbnew/class_board.cpp:965
   9760 msgid "Links"
   9761 msgstr "Verbindungen"

When I change Verbindungen to VerbindungenX, the menu entry change also.

The text is translated twice, from "Left" to "Links" (Line 2420) and from "Links" to "Verbindungen" (Line 9760)

When I change the the entry "Left"->"Links" to "Left"->"OtherText" in line 2420, I get the "OtherText" in the menu entry.

I use Poedit 1.5.4 and 1.6.11 and get the same result.

Maybe a bug in wxWidgets or gettext?

wxWidgets 3.0.2
gettext 0.18.3.2

Changed in kicad:
assignee: Sven D (sven-d) → nobody
tags: removed: german
Revision history for this message
Sven D (sven-d) wrote :

Or a bug in the generated mo file.

Revision history for this message
Nick Østergaard (nickoe) wrote :

Please state your version of kicad.

Changed in kicad:
status: New → Incomplete
Revision history for this message
Nick Østergaard (nickoe) wrote :

I don't see this issue in 5560. The test is correctly "Links".

Changed in kicad:
status: Incomplete → Invalid
Revision history for this message
Kevin Kettinger (kkettinger) wrote :

The issue existed in build 5547 (built with winbuilder on 28.03.2015) and still exists in the latest checkout with winbuilder (build 5565).

http://abload.de/img/links9outp.png
http://abload.de/img/version5tu9g.png

Revision history for this message
Nick Østergaard (nickoe) wrote :

Interesting, I did not have the orentation translated either. I don't know what the issue, please investigate further.

Changed in kicad:
status: Invalid → New
Revision history for this message
Kevin Kettinger (kkettinger) wrote :

I don't know how exactly PO is implented in kicad, but maybe this is helpful:
In lib_pin.cpp "Left" is assigned in pin_orientation_names[]. "Left" translates to "Links" in the kicad.po file. "Links" (english) is translated to "Verbindungen".

When i modifiy the translation of "Links", the text for "Left" also changes to the modified text of "Links":

Left (en) -> Links (de/en) -> Verbindungen (de)

"Left" gets translated and the translation of "Left" gets translated again.

Revision history for this message
Kevin Kettinger (kkettinger) wrote :

Sorry, Sven D already wrote that. Can't help any further at the moment.

Revision history for this message
jean-pierre charras (jp-charras) wrote :

Your remarks helped me to fix this issue. Thanks.

Changed in kicad:
status: New → Fix Committed
Revision history for this message
Kevin Kettinger (kkettinger) wrote :

Can confirm. Thanks.

Jon Neal (reportingsjr)
Changed in kicad:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.