Merge lp://staging/~pekka-jaaskelainen/pyg3t/devel into lp://staging/~pyg3t-dev-team/pyg3t/trunk
Proposed by
Pekka Jääskeläinen
Status: | Merged |
---|---|
Approved by: | Ask Hjorth Larsen |
Approved revision: | 35 |
Merged at revision: | 35 |
Proposed branch: | lp://staging/~pekka-jaaskelainen/pyg3t/devel |
Merge into: | lp://staging/~pyg3t-dev-team/pyg3t/trunk |
Diff against target: |
27 lines (+10/-0) 1 file modified
pyg3t/poselect.py (+10/-0) |
To merge this branch: | bzr merge lp://staging/~pekka-jaaskelainen/pyg3t/devel |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ask Hjorth Larsen | Approve | ||
Review via email:
|
Commit message
Add switches for counting words and letters in msgids
Description of the change
Hello, please merge.
Added two switches:
-w for getting the word count of msgids
-l for getting the letter count of msgids
These are useful as most professional translators bill by the letter or
word counts.
This trivial addition is useful when using GetText for commercial products with professional translators.
To post a comment you must log in.
Thanks for the patch. I've changed msg.split(' ') into msg.split(). This will split over any whitespace sequence rather than single spaces, so it should count words more accurately. Let me know if you would like any other functionality.