From 8617e2fccf3193c92c0c0c10efb11ec68155a11f Mon Sep 17 00:00:00 2001 From: sork Date: Sun, 20 Feb 2011 17:08:40 +0100 Subject: [PATCH] Spark and badge sharing messages for l10n. --- apps/sharing/messages.py | 31 +++++++++++++++++++ apps/sharing/templates/sharing/email.ltxt | 16 ++++++++++ .../users/templates/users/email/pw_reset.ltxt | 2 +- 3 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 apps/sharing/messages.py create mode 100644 apps/sharing/templates/sharing/email.ltxt diff --git a/apps/sharing/messages.py b/apps/sharing/messages.py new file mode 100644 index 0000000..011ec61 --- /dev/null +++ b/apps/sharing/messages.py @@ -0,0 +1,31 @@ +from tower import ugettext_lazy as _lazy + + +# L10n: Spark sharing message via Twitter +TWITTER_SPARK_MSG = _lazy(u'Hey! Help me spread Firefox for Mobile across the globe. ' + 'Accept my Spark to help me earn points then join in the fun.') + +# L10n: Spark sharing message title via Facebook +FACEBOOK_SPARK_TITLE = _lazy(u'Spark powered by Firefox for Mobile') + +# L10n: Spark sharing message content via Facebook +FACEBOOK_SPARK_MSG = _lazy(u'Hi there, wanna help me light up the world? Help spread Firefox for ' + 'mobile across the globe. Accept my Spark to help earn me points ' + 'and join in the fun. Start your own Spark, take challenges, unlock ' + 'badges and earn yourself some bragging rights.') + +# L10n: Spark sharing message via SMS +SMS_SPARK_MSG = _lazy(u'Hi! Help me spread Firefox for Mobile across the globe. Accept my Spark ' + 'and join in the fun. Start your own Spark, take challenges, unlock badges and more.') + +# L10n: Badge sharing message via Twitter +TWITTER_BADGE_MSG = _lazy(u'I just unlocked the Spark %(badge_name)s badge. ' + 'Check out all my badges %(short_url)s') + +# L10n: Badge sharing message title via Facebook +FACEBOOK_BADGE_TITLE = _lazy(u'Spark powered by Firefox for Mobile') + +# L10n: Badge sharing message content via Facebook +FACEBOOK_BADGE_MSG = _lazy(u'I just unlocked the Spark %(badge_name)s badge. Check out all my badges ' + 'and join in the fun. Start your own Spark, take challenges, unlock badges ' + 'and earn yourself some bragging rights.') diff --git a/apps/sharing/templates/sharing/email.ltxt b/apps/sharing/templates/sharing/email.ltxt new file mode 100644 index 0000000..3468e25 --- /dev/null +++ b/apps/sharing/templates/sharing/email.ltxt @@ -0,0 +1,16 @@ +{% load i18n %}{# L10n: This is an email. Whitespace matters! #}{% blocktrans %} +Hi, + +Wanna help me light up the world? + +Iʼm helping to spread Firefox for Mobile across the globe and I wanted to share it with +you. Help me earn points by accepting my Spark then download Firefox for Mobile on +your phone. Easy! + +Want to play too? Check out {{ domain }} to start your very own Spark, take challenges, +unlock badges and earn yourself some bragging rights. + +Accept my Spark : {{ accept_url }} + +Thanks! +{% endblocktrans %} \ No newline at end of file diff --git a/apps/users/templates/users/email/pw_reset.ltxt b/apps/users/templates/users/email/pw_reset.ltxt index d787d92..c6d27de 100644 --- a/apps/users/templates/users/email/pw_reset.ltxt +++ b/apps/users/templates/users/email/pw_reset.ltxt @@ -12,4 +12,4 @@ If you did not request this email there is no need for further action. Thanks, The {{ site_name }} team -{% endblocktrans %} +{% endblocktrans %} \ No newline at end of file