Re: [Sugar-devel] [PATCH 2/5] sl#2815: Localization fixes.
On 01/23/2012 05:46 PM, Sascha Silbe wrote: Excerpts from Ajay Garg's message of 2012-01-20 21:39:36 +0100: Just one more question, can the "TRANS" label string span multiple lines? That is, is something like :: # TRANS: first line text # second line text # third line text As the gettext documentation is rather sparse on this, I just gave it a try within the sugar package. Results: 1. We don't require the TRANS: prefix, so any comment will be included. We can require the TRANS: prefix by adding "--add-comments=TRANS" to XGETTEXT_OPTIONS in po/Makevars. So far, only a single developer comment (that could potentially confuse translators) has slipped into sugar.pot. All comments directed at translators are properly marked as TRANS:, so we could make this change now without any negative impact. 2. Multi-line comments are correctly handled (i.e. included in full) both with and without requiring the TRANS: prefix. Sascha I pushed that one with the wording suggested by Chris and an adjusted commit message. id: 06d790a670ce2e8738ee119ce07b533f2703e600 Regards, Simon ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [PATCH 1/5] sl#2789: Localization fixes.
On 01/23/2012 05:15 PM, Sascha Silbe wrote: Excerpts from Ajay Garg's message of 2012-01-19 22:35:28 +0100: Signed-off-by: Ajay Garg Please describe your changes in more detail than "localization fixes". E.g.: Fix capitalisation of acronyms marked for translation (fixes SL#2789) Otherwise, this looks good to me. Thanks for the patch! Sascha Fixed description, pushed as fcf26ca03bd9c916e808c476d5269884d432a3ae Simon ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [IAEP] Google Summer of Code
On Wed, Feb 8, 2012 at 9:03 PM, Chris Leonard wrote: > > > On Wed, Feb 8, 2012 at 7:57 PM, Rafael Ortiz > wrote: >> >> >> >> On Wed, Feb 8, 2012 at 6:15 PM, Walter Bender >> wrote: >>> >>> It is that time of year again. We need to start soliciting >>> participants in Google Summer of Code [1, 2]. We also need to organize >>> our application to the program as a mentoring organization. Please >>> contact me if you are interested in participating as a coder, a >>> mentor, or administrator. >>> >>> regards. >>> >> >> In this stage is very important to have numerous ideas for projects in our >> wiki. >> >> Something similar to: >> >> http://wiki.sugarlabs.org/go/Summer_of_Code/2010 >> > > > I would suggest adding a "2012" link from > > http://wiki.sugarlabs.org/go/Summer_of_Code > > and starting to collect ideas. Done. Two ideas already posted. -walter > > cjl > > -- Walter Bender Sugar Labs http://www.sugarlabs.org ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [IAEP] Google Summer of Code
On Wed, Feb 8, 2012 at 7:57 PM, Rafael Ortiz wrote: > > > On Wed, Feb 8, 2012 at 6:15 PM, Walter Bender wrote: > >> It is that time of year again. We need to start soliciting >> participants in Google Summer of Code [1, 2]. We also need to organize >> our application to the program as a mentoring organization. Please >> contact me if you are interested in participating as a coder, a >> mentor, or administrator. >> >> regards. >> >> > In this stage is very important to have numerous ideas for projects in our > wiki. > > Something similar to: > > http://wiki.sugarlabs.org/go/Summer_of_Code/2010 > > I would suggest adding a "2012" link from http://wiki.sugarlabs.org/go/Summer_of_Code and starting to collect ideas. cjl ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Google Summer of Code
On Wed, Feb 8, 2012 at 6:15 PM, Walter Bender wrote: > It is that time of year again. We need to start soliciting > participants in Google Summer of Code [1, 2]. We also need to organize > our application to the program as a mentoring organization. Please > contact me if you are interested in participating as a coder, a > mentor, or administrator. > > regards. > > In this stage is very important to have numerous ideas for projects in our wiki. Something similar to: http://wiki.sugarlabs.org/go/Summer_of_Code/2010 -walter > > -- > Walter Bender > Sugar Labs > http://www.sugarlabs.org > > [1] http://code.google.com/soc/ > [2] http://www.google-melange.com/gsoc/homepage/google/gsoc2012 > ___ > Sugar-devel mailing list > Sugar-devel@lists.sugarlabs.org > http://lists.sugarlabs.org/listinfo/sugar-devel > ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
[Sugar-devel] Google Summer of Code
It is that time of year again. We need to start soliciting participants in Google Summer of Code [1, 2]. We also need to organize our application to the program as a mentoring organization. Please contact me if you are interested in participating as a coder, a mentor, or administrator. regards. -walter -- Walter Bender Sugar Labs http://www.sugarlabs.org [1] http://code.google.com/soc/ [2] http://www.google-melange.com/gsoc/homepage/google/gsoc2012 ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
[Sugar-devel] [PATCH Moon] Add date information to the information displayed - SL #2749
From: Gonzalo Odiard The patch set the locale to use calendar to get week days and mont days. Signed-off-by: Flavio Danesse Reviewed-by: Gonzalo Odiard --- moon.py | 19 ++- 1 files changed, 18 insertions(+), 1 deletions(-) diff --git a/moon.py b/moon.py index f9eca9d..bd4bd2b 100755 --- a/moon.py +++ b/moon.py @@ -36,7 +36,9 @@ from sugar.graphics.toggletoolbutton import ToggleToolButton from gettext import gettext as _ import math import time +import calendar import os +import locale try: import json @@ -67,6 +69,12 @@ class MoonActivity(activity.Activity): self._name = handle self.set_title(_("Moon")) +# Set the locale to format dates +lang = os.getenv('LANG') +if lang.find('.') > -1: +lang = lang[:lang.find('.')] +locale.setlocale(locale.LC_TIME, lang) + # Defaults (Resume priority, persistent file secondary, fall-back hardcoded) if handle.object_id == None: print "Launched from home." @@ -242,12 +250,21 @@ class MoonActivity(activity.Activity): gobject.source_remove(self.update_moon_image_timeout) self.update_moon_image_view() +def format_date(self, date_time): +year = date_time.tm_year +month = calendar.month_name[date_time.tm_mon - 1] +day = date_time.tm_mday +week_day = calendar.day_name[date_time.tm_wday - 1] +return "%(week_day)s, %(day)s %(month)s %(year)s" % \ +{'week_day':week_day, 'day':day, 'month':month, 'year':year} + def update_text_information_view(self): """Generate Moon data and update text based information view. """ self.data_model.update_moon_calculations(time.time()) information_string = "" -information_string += _("Today's Moon Information\n\n") +information_string += _("Today's Moon Information\n") +information_string += "%s\n\n" % self.format_date(time.localtime()) information_string += _("Phase:\n%s\n\n") % (self.data_model.moon_phase_name(self.data_model.phase_of_moon)) information_string += _("Julian Date:\n%.2f (astronomical)\n\n") % (self.data_model.julian_date) information_string += _("Age:\n%(days).0f days, %(hours).0f hours, %(minutes).0f minutes\n\n") % {'days':self.data_model.days_old, 'hours':self.data_model.hours_old, 'minutes':self.data_model.minutes_old} -- 1.7.7.6 ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
[Sugar-devel] [ASLO] Release WikipediaRW-33.3
Activity Homepage: http://activities.sugarlabs.org/addon/4532 Sugar Platform: 0.86 - 0.96 Download Now: http://activities.sugarlabs.org/downloads/file/27858/wikipediarw-33.3.xo Release notes: Sugar Labs Activities http://activities.sugarlabs.org ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
[Sugar-devel] Fix for Browse 131.xo on XO-1 os833- (how to remove it)
If you drag-drop Browse 131.xo to an XO-1 on os833 (sugar 0.94) you will find that browse will not start and you cannot erase it (greyed out option). Effectively you have lost your Browser. (browse 131 and 130 are not compatible uses gtk +3**) There will be a lot of releases of new activities using gtk +3 . This tecnique may be a way to revert the critical applications where erase is greyed out. Be sure to visit [2] to see if the activity version is compatable first. To Fix: Drag-drop Browse 127.xo [1] from a USB stick and click "OK" to install an older version. Then go to My Settings/Software update and click on Browse 129.1 and update it. [1] http://download.sugarlabs.org/activities/4024/browse-127.xo Works and saves re-imaging the XO-1 Tom Gilliard satellit_ on #sugar IRC [1] http://download.sugarlabs.org/activities/4024/browse-127.xo [2] http://wiki.sugarlabs.org/go/Sugar_Creation_Kit/sck/Activity_Matrix ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel