Added challenge and level descriptions for l10n. Added logout confirmation in mobile navigation menu.
This commit is contained in:
Родитель
8617e2fccf
Коммит
85d4661788
|
@ -0,0 +1,63 @@
|
|||
from tower import ugettext_lazy as _lazy
|
||||
|
||||
|
||||
challenges = {
|
||||
# Level 1
|
||||
'lvl1_ch1': _lazy(u'Share your Spark with one other person'),
|
||||
'lvl1_ch2': _lazy(u'Add your location'),
|
||||
'lvl1_ch3': _lazy(u'Tell us where you got your Spark'),
|
||||
|
||||
# Level 2
|
||||
'lvl2_ch1': _lazy(u'Obtain a share from Facebook'),
|
||||
'lvl2_ch2': _lazy(u'Obtain a share from Twitter'),
|
||||
'lvl2_ch3': _lazy(u'Log in on both your phone and your desktop web browser'),
|
||||
'lvl2_ch4': _lazy(u'Complete a face-to-face share via the QR code on your phone'),
|
||||
# L10n: Keep the value of 100 even if 'miles' must be localized to kilometers.
|
||||
'lvl2_ch5': _lazy(u'Share with someone new who lives over 100 miles away'),
|
||||
'lvl2_ch6': _lazy(u'Share with someone new in a different country'),
|
||||
'lvl2_ch7': _lazy(u'Complete 10 shares'),
|
||||
|
||||
# Level 3
|
||||
'lvl3_ch1': _lazy(u'Share with someone between 6am and 10am (Local time for the recipient.)'),
|
||||
'lvl3_ch2': _lazy(u'Share with someone via a printed flyer'),
|
||||
'lvl3_ch3': _lazy(u'Share with someone new on a different continent'),
|
||||
'lvl3_ch4': _lazy(u'Complete 3 shares in a single 12-hour period'),
|
||||
'lvl3_ch5': _lazy(u'Create a chain by having someone you’ve shared with share with someone else'),
|
||||
'lvl3_ch6': _lazy(u'Complete 20 shares'),
|
||||
|
||||
# Level 4
|
||||
'lvl4_ch1': _lazy(u'Share with someone between 2am and 4am (Local time for the recipient.)'),
|
||||
'lvl4_ch2': _lazy(u'Share your Spark to 8 different U.S. states'),
|
||||
'lvl4_ch3': _lazy(u'Share your Spark to 5 different E.U. countries'),
|
||||
'lvl4_ch4': _lazy(u'Complete 6 shares within a single 12-hour period'),
|
||||
'lvl4_ch5': _lazy(u'Complete 2 or more shares in a single hour'),
|
||||
'lvl4_ch6': _lazy(u'Complete 40 shares'),
|
||||
|
||||
# Super Sparker
|
||||
'lvl5_ch1': _lazy(u'Share with 60 people'),
|
||||
'lvl5_ch2': _lazy(u'Share with 100 people'),
|
||||
'lvl5_ch3': _lazy(u'Share with 250 people'),
|
||||
'lvl5_ch4': _lazy(u'Share with 500 people'),
|
||||
'lvl5_ch5': _lazy(u'Share with 1000 people'),
|
||||
|
||||
# EASTER EGGS
|
||||
'ee_ch1': _lazy(u'Non-Android user who shares with three people'),
|
||||
'ee_ch2': _lazy(u'Non-Android user who shares with ten people'),
|
||||
'ee_ch3': _lazy(u'Share your Spark to 3 continents'),
|
||||
'ee_ch4': _lazy(u'Share your Spark to all 7 continents'),
|
||||
'ee_ch5': _lazy(u'Share to Antarctica'),
|
||||
'ee_ch6': _lazy(u'Share to Arctic Circle'),
|
||||
'ee_ch7': _lazy(u'Share to the capital of any country'),
|
||||
'ee_ch8': _lazy(u'Share between the US and UK'),
|
||||
'ee_ch9': _lazy(u'Share with someone in each of the 10 different timezones'),
|
||||
'ee_ch10': _lazy(u'Share your Spark with someone on an island (Hawaii, Japan, etc.)'),
|
||||
'ee_ch11': _lazy(u'Share your Spark to someone in a French-speaking country'),
|
||||
'ee_ch12': _lazy(u'Share with someone roughly on the other side of the globe'),
|
||||
'ee_ch13': _lazy(u'Share your Spark between a North and South American city'),
|
||||
'ee_ch14': _lazy(u'Share to a country with a desert in it'),
|
||||
'ee_ch15': _lazy(u'Share to a friend in each of the original 13 US states'),
|
||||
'ee_ch16': _lazy(u'Share to someone in each continental state'),
|
||||
'ee_ch17': _lazy(u'Share with someone in each original EU country'),
|
||||
'ee_ch18': _lazy(u'Share to or from Brazil'),
|
||||
'ee_ch19': _lazy(u'Person with the most shares'),
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
from tower import ugettext_lazy as _lazy
|
||||
|
||||
# L10n: Description of the three first levels. Example: Level 2 (Complete 4 to advance.)
|
||||
LEVEL_GENERIC = _lazy(u'Level %(level)s (Complete %(num_challenges)s to advance.)')
|
||||
|
||||
# L10n: Description of the fourth level
|
||||
LEVEL_4 = _lazy(u'Level 4 (Complete these challenges and all previous challenges to advance.)')
|
||||
|
||||
# L10n: Description of the Super Sparker secret level
|
||||
LEVEL_5 = _lazy(u'The Super Sparker (Appears in challenge list once level 4 is completed.)')
|
|
@ -16,7 +16,7 @@ var initMenu = function () {
|
|||
$('#logout-confirmation').fadeIn('fast');
|
||||
});
|
||||
|
||||
$('#logout-confirmation button.left-button').click(function() {
|
||||
$('#logout-confirmation .left-button').click(function() {
|
||||
$('#logout-confirmation').fadeOut('fast');
|
||||
$('#menu-content').fadeIn('fast');
|
||||
});
|
||||
|
|
|
@ -30,28 +30,41 @@
|
|||
{% if num_notifications %}
|
||||
<div id="notifications">{{ num_notifications }}</div>
|
||||
{% endif %}
|
||||
{# L10n: Name of the mobile navigation menu #}
|
||||
{{ _('Menu') }}
|
||||
</div>
|
||||
<ul>
|
||||
<li><a href="{{ url('mobile.boost') }}">{{ _('Boost your Spark') }}</a></li>
|
||||
<li><a href="{{ url('mobile.stats') }}">{{ _('Stats') }}</a></li>
|
||||
<li><a href="{{ url('mobile.challenges') }}">{{ _('Challenges') }}
|
||||
{% if num_new_challenges %}
|
||||
{# L10n: {n} is the number of recently completed challenges. #}
|
||||
<span>{{ ngettext('+{n} new','+{n} new', num_new_challenges)|f(n=num_new_challenges) }}</span>
|
||||
{% endif %}
|
||||
</a>
|
||||
</li>
|
||||
<li><a href="{{ url('mobile.badges') }}">{{ _('Badges') }}
|
||||
{% if num_new_badges %}
|
||||
{# L10n: {n} is the number of recently obtained badges. #}
|
||||
<span>{{ ngettext('+{n} new','+{n} new', num_new_badges)|f(n=num_new_badges) }}</span>
|
||||
{% endif %}
|
||||
</a>
|
||||
</li>
|
||||
<li><a href="{{ url('mobile.about') }}">{{ _('About Mozilla') }}</a></li>
|
||||
</ul>
|
||||
<a href="{{ url('users.mobile_logout') }}" id="logout">{{ _('Do you wanna log out?') }}</a>
|
||||
<div id="menu-content">
|
||||
<ul>
|
||||
<li><a href="{{ url('mobile.boost') }}">{{ _('Boost your Spark') }}</a></li>
|
||||
<li><a href="{{ url('mobile.stats') }}">{{ _('Stats') }}</a></li>
|
||||
<li><a href="{{ url('mobile.challenges') }}">{{ _('Challenges') }}
|
||||
{% if num_new_challenges %}
|
||||
{# L10n: {n} is the number of recently completed challenges. #}
|
||||
<span>{{ ngettext('+{n} new','+{n} new', num_new_challenges)|f(n=num_new_challenges) }}</span>
|
||||
{% endif %}
|
||||
</a>
|
||||
</li>
|
||||
<li><a href="{{ url('mobile.badges') }}">{{ _('Badges') }}
|
||||
{% if num_new_badges %}
|
||||
{# L10n: {n} is the number of recently obtained badges. #}
|
||||
<span>{{ ngettext('+{n} new','+{n} new', num_new_badges)|f(n=num_new_badges) }}</span>
|
||||
{% endif %}
|
||||
</a>
|
||||
</li>
|
||||
<li><a href="{{ url('mobile.about') }}">{{ _('About Mozilla') }}</a></li>
|
||||
|
||||
</ul>
|
||||
<a href="#" id="logout">{{ _('Do you wanna log out?') }}</a>
|
||||
</div>
|
||||
<div id="logout-confirmation">
|
||||
<p class="section sans confirmation">
|
||||
_('Are you sure you want to log out ?')
|
||||
</p>
|
||||
<div class="buttons-wrapper">
|
||||
<div class="button left-button"><a href="#">{{ _('Cancel') }}</a></div>
|
||||
<div class="button right-button"><a href="{{ url('users.mobile_logout') }}">{{ _('Yes') }}</a></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div> <!-- end menu wrapper -->
|
||||
{% endif %}
|
||||
|
|
Загрузка…
Ссылка в новой задаче