[Sugar-devel] [PATCH 1/2] Translating comments to spanish
Rafael Ortiz
rafael at activitycentral.com
Mon May 30 20:03:24 EDT 2011
This pathc is optional, it's a translation of code comments to spanish,
in order to make hello-world activity more accessible for spanish-only speakers
---
activity.py | 16 +++++++++++++---
1 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/activity.py b/activity.py
index 5b06254..ea171dc 100644
--- a/activity.py
+++ b/activity.py
@@ -15,6 +15,7 @@
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
"""HelloWorld Activity: A case study for developing an activity."""
+"""HelloWorld Activity: Un caso de estudio para desarrollar una actividad."""
import gtk
import logging
@@ -32,16 +33,23 @@ from sugar.activity.widgets import KeepButton
class HelloWorldActivity(activity.Activity):
"""HelloWorldActivity class as specified in activity.info"""
+ """HelloWorldActivity clase como se specifica en activity.info"""
def __init__(self, handle):
"""Set up the HelloWorld activity."""
+ """Configurando la actividad HelloWorld."""
+
activity.Activity.__init__(self, handle)
- # we do not have collaboration features
- # make the share option insensitive
+ # We do not have collaboration features
+ # Make the share option insensitive
+ # No tenemos caracteristicas de colaboracion
+ # Deshabilitando la opcion de compartir
self.max_participants = 1
# toolbar with the new toolbar redesign
+ # barra de herramientas con el nuevo diseño.
+
toolbar_box = ToolbarBox()
activity_button = ActivityButton(self)
@@ -73,7 +81,9 @@ class HelloWorldActivity(activity.Activity):
self.set_toolbar_box(toolbar_box)
toolbar_box.show()
- # label with the text, make the string translatable
+ # Label with the text, make the string translatable.
+ # Marca con el texto, haciendo la cadena traducible.
+
label = gtk.Label(_("Hello World!"))
self.set_canvas(label)
label.show()
--
1.7.4.1
More information about the Sugar-devel
mailing list