~torstenhtr/kicad/kicad_via_stitching

« back to all changes in this revision

Viewing changes to eeschema/dialogs/dialog_lib_edit_pin_table.cpp

  • Committer: jean-pierre charras
  • Date: 2015-04-02 18:51:47 UTC
  • Revision ID: jp.charras@wanadoo.fr-20150402185147-uyn3rigl0e5mudxe
eeschema: fix Bug #1437604 (double translation of some messages in pin editor dialog) relative to some static strings flagged "to be translated".
This is due to the fact static strings flagged translated ( _("string") notation)  are not translated  when they are static only if they are not inside a dll.
When they are static inside a dll, the dictionary is already loaded, and the constructor translate them.
Therefore they can be translated twice in dialogs are calling wxGetTranslation to show them, if the application is run from kicad.
But if the application is run as stand alone, the translation is made only once (as expected).

Show diffs side-by-side

added added

removed removed

Lines of Context:
568
568
    break;
569
569
 
570
570
    case PIN_TYPE:
571
 
        aValue = m_Backing->GetTypeString();
 
571
        aValue = m_Backing->GetElectricalTypeName();
572
572
        break;
573
573
 
574
574
    case PIN_POSITION: