Ticket #541 (closed defect: fixed)
error in guess_language in pot.py
| Reported by: | dahool | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 0.8.1 |
| Component: | Core | Version: | devel |
| Keywords: | Cc: | ||
| Easy Task: | yes | Blocked By: | |
| Blocking: | Ready for Review: | no | |
| Patch Review: | Needs Patch: | yes |
Description (last modified by dahool) (diff)
I assume this function will extract the language code in a file named like 'thisisapofile.en.po', in that case, line 74 in POTManager:
return os.path.basename(filename[:-3:])
Should be:
return os.path.basename(filename[:-3:][-2:])
File: translations/lib/types/pot.py
Version: 0.8.0
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

