#9666 closed enhancement (fixed)
Option's doc should be translated.
Reported by: | 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 , 14 years ago
Keywords: | userpreferences added |
---|---|
Milestone: | 0.12.2 → 0.13 |
comment:2 by , 14 years ago
Milestone: | 0.13 → 0.14 |
---|
comment:3 by , 14 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 , 14 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 , 14 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
.
comment:6 by , 14 years ago
Milestone: | 0.14 → 0.13 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Committed in [10598]. The translators can do options' documents in each tracini.po
!
comment:7 by , 14 years ago
Keywords: | i18n added |
---|---|
Owner: | set to |
comment:8 by , 12 years ago
Release Notes: | modified (diff) |
---|
comment:9 by , 12 years ago
Release Notes: | modified (diff) |
---|
Not for 0.12.2, and not all.
But the "user-oriented" ones (query:keywords~=userpreferences), yes.