Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Trac: Users

Localization of Trac - How to add new message in catalog?

 

 

Trac users RSS feed   Index | Next | Previous | View Threaded


jan.hadas at doxologic

Nov 18, 2009, 3:14 AM

Post #1 of 4 (381 views)
Permalink
Localization of Trac - How to add new message in catalog?

I am trying to localize Trac, how it is described on page:
http://trac.edgewall.org/wiki/TracL10N.

If I am just editing messages(strings msgstr) from catalog .po, a
practis from this page works well.
But there are not all messages in the catalog - I have to add some
missing messages into catalog.

So I edited template catalog file (.pot), catalog file (.po), a tried
update_catalog - OK, compile_catalog - OK, trac install - OK, but the
messages I have added into catalog doesn't work.

I have Trac0.12 revision 8812-py2.6. I tried to add this entry into
template catalog file (messages.pot):

#: trac/ticket/web_ui.py:1592
msgid "changed from"
msgstr ""

And i have this in messages.po:

#: trac/ticket/templates/ticket.html:71 trac/ticket/web_ui.py:1592
msgid "changed from"
msgstr "změněno z"

Thank you for any help.

--

You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users [at] googlegroups
For more options, visit this group at http://groups.google.com/group/trac-users?hl=.


cboos at neuf

Nov 18, 2009, 3:55 AM

Post #2 of 4 (363 views)
Permalink
Re: Localization of Trac - How to add new message in catalog? [In reply to]

Hello Jan,

Jan Hadas wrote:
> I am trying to localize Trac, how it is described on page:
> http://trac.edgewall.org/wiki/TracL10N.
>
> If I am just editing messages(strings msgstr) from catalog .po, a
> practis from this page works well.
> But there are not all messages in the catalog - I have to add some
> missing messages into catalog.
>
>

You seem to have missed the extraction step.

> So I edited template catalog file (.pot), catalog file (.po), a tried
> update_catalog - OK, compile_catalog - OK, trac install - OK, but the
> messages I have added into catalog doesn't work.
>

Probably because you got the msgid wrong, which is why this is an
automated process.
Run extract_messages the same way you did with update_catalog and
compile_catalog, it should then work.

Once you're done, don't forget to contribute your translations, thanks!

-- Christian

> I have Trac0.12 revision 8812-py2.6. I tried to add this entry into
> template catalog file (messages.pot):
>
> #: trac/ticket/web_ui.py:1592
> msgid "changed from"
> msgstr ""
>
> And i have this in messages.po:
>
> #: trac/ticket/templates/ticket.html:71 trac/ticket/web_ui.py:1592
> msgid "changed from"
> msgstr "změněno z"
>

--

You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users [at] googlegroups
For more options, visit this group at http://groups.google.com/group/trac-users?hl=.


jan.hadas at doxologic

Nov 18, 2009, 7:17 AM

Post #3 of 4 (359 views)
Permalink
Re: Localization of Trac - How to add new message in catalog? [In reply to]

Hello Christian Boss,

I thing you are right - extract_messages overwrited message.pot file, so I
lost my entries, maybe because of bad msgid.

But I still don't know how to force extract_messages to extract messages I
am missing - for example string: "change from " from
trac/ticket/web_ui.py:1592.

I am sure that this string is shown in tickat changes and it should be
translated, but I can't find it in catalog (.po or .pot).

Thank you for your help.
Jan Hadas



On Wed, Nov 18, 2009 at 12:55 PM, Christian Boos <cboos [at] neuf> wrote:

> Hello Jan,
>
> Jan Hadas wrote:
> > I am trying to localize Trac, how it is described on page:
> > http://trac.edgewall.org/wiki/TracL10N.
> >
> > If I am just editing messages(strings msgstr) from catalog .po, a
> > practis from this page works well.
> > But there are not all messages in the catalog - I have to add some
> > missing messages into catalog.
> >
> >
>
> You seem to have missed the extraction step.
>
> > So I edited template catalog file (.pot), catalog file (.po), a tried
> > update_catalog - OK, compile_catalog - OK, trac install - OK, but the
> > messages I have added into catalog doesn't work.
> >
>
> Probably because you got the msgid wrong, which is why this is an
> automated process.
> Run extract_messages the same way you did with update_catalog and
> compile_catalog, it should then work.
>
> Once you're done, don't forget to contribute your translations, thanks!
>
> -- Christian
>
> > I have Trac0.12 revision 8812-py2.6. I tried to add this entry into
> > template catalog file (messages.pot):
> >
> > #: trac/ticket/web_ui.py:1592
> > msgid "changed from"
> > msgstr ""
> >
> > And i have this in messages.po:
> >
> > #: trac/ticket/templates/ticket.html:71 trac/ticket/web_ui.py:1592
> > msgid "changed from"
> > msgstr "změněno z"
> >
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Trac Users" group.
> To post to this group, send email to trac-users [at] googlegroups
> For more options, visit this group at
> http://groups.google.com/group/trac-users?hl=.
>
>
>

--

You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users [at] googlegroups
For more options, visit this group at http://groups.google.com/group/trac-users?hl=.


cboos at neuf

Nov 18, 2009, 9:30 AM

Post #4 of 4 (361 views)
Permalink
Re: Localization of Trac - How to add new message in catalog? [In reply to]

Jan Hadas wrote:
> Hello Christian Boss,
>
> I thing you are right - extract_messages overwrited message.pot file,
> so I lost my entries, maybe because of bad msgid.
>
> But I still don't know how to force extract_messages to extract
> messages I am missing - for example string: "change from " from
> trac/ticket/web_ui.py:1592.
> ...
>
> > #: trac/ticket/web_ui.py:1592
> > msgid "changed from"
> > msgstr ""
>

Actually this string is not yet marked for translation. Thanks for
noticing, I'm working on it.

-- Christian

--

You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users [at] googlegroups
For more options, visit this group at http://groups.google.com/group/trac-users?hl=.

Trac users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.