[Commits] sugar-update-control branch master updated.

Daniel Drake dsd at laptop.org
Fri Dec 5 18:14:40 EST 2008


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "/home/cscott/public_git/sugar-update-control".

The branch, master has been updated
       via  055ece7dacf585c9a7b6cdb9607b0e842fbe9c9b (commit)
      from  bf43f5062152b6d3bc3b15f53dc2d29fddea3146 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

 src/view.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit 055ece7dacf585c9a7b6cdb9607b0e842fbe9c9b
Author: Sayamindu Dasgupta <sayamindu at laptop.org>
Date:   Fri Dec 5 23:11:43 2008 +0000

    dlo#8788: Use sugar-update-control gettext domain
    
    sugar-update-control is currently looking for its translation in
    sugar.mo, which does not have anything useful. Since it is being
    developed in a different source tree, I suggest using some different
    gettext domain.

diff --git a/src/view.py b/src/view.py
index 6cb65ce..a1f9c12 100755
--- a/src/view.py
+++ b/src/view.py
@@ -16,7 +16,9 @@ import gettext
 import os
 import re
 from threading import Thread
-from gettext import gettext as _
+import gettext
+
+_ = lambda msg: gettext.dgettext('sugar-update-control', msg)
 
 import bitfrost.update.actutils as actutils
 from sugar.graphics import style
-----------------------------------------------------------------------


--
/home/cscott/public_git/sugar-update-control


More information about the Commits mailing list