From: Alex R. <sh...@gr...> - 2006-04-28 19:27:30
|
J=C3=A9r=C3=B4me, On Fri, 2006-04-28 at 10:19 +0200, J=C3=A9r=C3=B4me wrote: > I try to add some _('translated string') for gramps UI (ViewManager) on=20 > my local installed gramps2.1SVN version !!! >=20 >=20 > The code is like this : >=20 > > self._file_action_list =3D [ > > ('FileMenu', None, '_File'),=20 > > ('New', gtk.STOCK_NEW, '_New', "<control>n", None, > > self.new_activate), > > ('Open', gtk.STOCK_OPEN, '_Open', "<control>o", None, > > self.open_activate),=20 > > ('OpenRecent', None, 'Open _Recent'),=20 > > ('Quit', gtk.STOCK_QUIT, '_Quit', "<control>q", None, = > self.quit), > > ('ViewMenu', None, '_View'),=20 > > ('EditMenu', None, '_Edit'),=20 > > ('Preferences', gtk.STOCK_PREFERENCES, '_Preferences', > > ... >=20 > OK, I use : >=20 > > self._file_action_list =3D [ > > ('FileMenu', None, _('_File')),=20 > > ('New', gtk.STOCK_NEW, _('_New'), "<control>n", None, > > self.new_activate), > > ... I did this in the SVN. > and add the translated string on po (=3Dnew pot), than -> mo > but it seems to be wrong, ViewManager not loaded :( The strings should be automatically extracted: $ cd po $ make gramps.pot which creates the new gramps.pot file. Now, you need to translate that: msgmerge -o newfr.po fr.po gramps.pot; mv newfr.po fr.po then translate fr.po and then 'make install' in po directory. Alex --=20 Alexander Roitman http://www.gramps-project.org |