#10855 closed defect (fixed)
some locale's message.mo file is not generated
Reported by: | Genie | Owned by: | Christian Boos |
---|---|---|---|
Priority: | highest | Milestone: | 1.0.2 |
Component: | i18n | Version: | 1.0 |
Severity: | major | Keywords: | |
Cc: | Branch: | ||
Release Notes: |
Only populate the language menus with languages for which the compiled message catalogs are actually available. |
||
API Changes: | |||
Internal Changes: |
Description (last modified by )
Hi~
after r11293,
some locale's message.mo file is not generated.
- hy, ko, pl and tr locale
and message is displayed in english only.
Attachments (0)
Change History (9)
comment:1 by , 12 years ago
Description: | modified (diff) |
---|
comment:2 by , 12 years ago
Milestone: | → next-stable-1.0.x |
---|
comment:3 by , 12 years ago
Thanks for your answer, but it is not normal.
This changes was applied suddenly after Trac 1.0 rc1.
Currently, All messages are displayed in english only for Korean user on Trac 1.0 release.
I'm very shocked because suddenly changed.
follow-up: 5 comment:4 by , 12 years ago
Well, the risk of using the Korean translation (or any other translation which fails make check
) is not just to miss a translation or two, but to trigger internal errors (like #9197 or #10066). So better not. If this is really a problem for you, then by all means contribute (or find someone to contribute) the fixes.
If no one takes action or shows interest for these translations after a while, then we're simply going to drop the translation to not have the misleading choice.
Maybe we could even have a way to remove them from the list now?
(trac.util.translation.get_available_locales()
could look for messages.mo
files instead of just the directories).
follow-up: 6 comment:5 by , 12 years ago
Milestone: | next-stable-1.0.x → 1.0.2 |
---|---|
Owner: | set to |
Release Notes: | modified (diff) |
Status: | new → assigned |
Maybe we could even have a way to remove them from the list now? (
trac.util.translation.get_available_locales()
could look formessages.mo
files instead of just the directories).
-
trac/util/translation.py
337 337 338 338 try: 339 339 return [dirname for dirname 340 340 in pkg_resources.resource_listdir('trac', 'locale') 341 if '.' not in dirname] 341 if '.' not in dirname 342 and pkg_resources.resource_exists( 343 'trac', 'locale/%s/LC_MESSAGES/messages.mo' % dirname)] 342 344 except Exception: 343 345 return []
follow-up: 7 comment:6 by , 12 years ago
Thanks, I think this issue was resolved with releasing Trac 1.0.1.
Replying to cboos:
Maybe we could even have a way to remove them from the list now? (
trac.util.translation.get_available_locales()
could look formessages.mo
files instead of just the directories).
trac/util/translation.py
337 337 338 338 try: 339 339 return [dirname for dirname 340 340 in pkg_resources.resource_listdir('trac', 'locale') 341 if '.' not in dirname] 341 if '.' not in dirname 342 and pkg_resources.resource_exists( 343 'trac', 'locale/%s/LC_MESSAGES/messages.mo' % dirname)] 342 344 except Exception: 343 345 return []
comment:7 by , 12 years ago
comment:8 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Yes, it's normal, the catalogs haven't been updated by their respective translators and they contain fuzzy translations so they were skipped while compiling.
Full list:
See TracL10N#Translationcoordination for contact information if you need to get in touch with some of the current translators.
At some point during 1.0.x, we should do something about "abandoned" translations, targeting in particular those who are below 50%: