Edgewall Software
Modify

Opened 13 years ago

Closed 13 years ago

Last modified 12 years ago

#9666 closed enhancement (fixed)

Option's doc should be translated.

Reported by: songofacandy@… Owned by: Jun Omae
Priority: normal Milestone: 1.0
Component: i18n Version: 0.12
Severity: normal Keywords: i18n
Cc: Branch:
Release Notes:

Translation of the documentation for TracIni options is now possible (in separate tracini.po catalogs)

API Changes:
Internal Changes:

Description

Option's doc should be i18n target.

Attachments (0)

Change History (9)

comment:1 by Christian Boos, 13 years ago

Keywords: userpreferences added
Milestone: 0.12.20.13

Not for 0.12.2, and not all.

But the "user-oriented" ones (query:keywords~=userpreferences), yes.

comment:2 by Remy Blank, 13 years ago

Milestone: 0.130.14

comment:3 by Jun Omae, 13 years ago

I worked the issue, https://github.com/jun66j5/trac/compare/t9666-i18n-option-doc.

New trac.dist.extract_python method can extract messages from doc keyword argument of Option family and ConfigSection. [[TracIni]] macro shows translated documentation of each option.

comment:4 by Christian Boos, 13 years ago

Keywords: userpreferences removed

Wow, lots of work in perspective for translators ;-)

For this reason, I wouldn't put the messages by default in the "messages" domain, but in a separate "tracini". That way, it's easy for translators to decide if they want to support this or not (this is not "end-user" facing text, only "admin-user").

Also, though it's easy to see that extract_python initially comes from Babel, maybe just add a note explaining what it does differently ("""Patched extract_python from Babel to support keyword argument mapping. with a brief overview of what this is about).

Other than those few remarks, looks great! If you want this for 0.13, please do so.

comment:5 by Jun Omae, 13 years ago

Ok. I agreed the separating catalog. I will create extract_messages_tracini, init_catalog_tracini, compile_catalog_tracini and update_catalog_tracini commands of setup.py.

Last edited 13 years ago by Jun Omae (previous) (diff)

comment:6 by Jun Omae, 13 years ago

Milestone: 0.140.13
Resolution: fixed
Status: newclosed

Committed in [10598]. The translators can do options' documents in each tracini.po!

comment:7 by Jun Omae, 13 years ago

Keywords: i18n added
Owner: set to Jun Omae

comment:8 by Christian Boos, 12 years ago

Release Notes: modified (diff)

comment:9 by Christian Boos, 12 years ago

Release Notes: modified (diff)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jun Omae.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jun Omae to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.