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
Reviewer Review Type Date Requested Status
Ask Hjorth Larsen Approve
Review via email: mp+26022@code.staging.launchpad.net

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.
Revision history for this message
Ask Hjorth Larsen (askhl) :
review: Approve
Revision history for this message
Ask Hjorth Larsen (askhl) wrote :

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.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches