Oops! I now see there is prepared function for translanted object types
names. I send new patch instead previous.
Marek Černocký píše v So 01. 08. 2009 v 17:58 +0200:
> Hi,
>
> I send patch. It solves translation for object type names in dialog
> Grand Wizard.
>
>
> Regards
>
> Marek
diff --recursive -c pgadmin3.svn/pgadmin/frm/frmGrantWizard.cpp pgadmin3.new/pgadmin/frm/frmGrantWizard.cpp
*** pgadmin3.svn/pgadmin/frm/frmGrantWizard.cpp 2009-08-01 16:52:58.000000000 +0200
--- pgadmin3.new/pgadmin/frm/frmGrantWizard.cpp 2009-08-01 18:17:03.000000000 +0200
***************
*** 155,161 ****
if (obj->CanEdit())
{
objectArray.Add(obj);
! chkList->Append(obj->GetTypeName() + wxT(" ") + obj->GetFullIdentifier()); // no translation!
}
}
}
--- 155,161 ----
if (obj->CanEdit())
{
objectArray.Add(obj);
! chkList->Append(obj->GetTranslatedTypeName() + wxT(" ") + obj->GetFullIdentifier());
}
}
}
--
Sent via pgadmin-hackers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers