Permalink
Browse files

L10N minor bugs fixed.

  • Loading branch information...
1 parent f4d4d55 commit 2d39c6de2657220c9f18e86995920a92aaee4ddf @livid committed Oct 9, 2010
Showing with 10 additions and 3 deletions.
  1. +0 −2 place.py
  2. +9 −0 t.py
  3. +1 −1 tpl/desktop/rightbar/ads.html
View
@@ -91,8 +91,6 @@ def post(self, ip):
else:
go = '/place'
member = CheckAuth(self)
- l10n = GetMessages(self, member, site)
- template_values['l10n'] = l10n
place = GetPlaceByIP(ip)
say = self.request.get('say').strip()
if len(say) > 0 and len(say) < 280 and member and place:
View
9 t.py
@@ -29,6 +29,7 @@
from v2ex.babel.security import *
from v2ex.babel.ua import *
from v2ex.babel.da import *
+from v2ex.babel.l10n import *
from v2ex.babel.ext.cookies import Cookies
from v2ex.babel.ext.sessions import Session
@@ -152,6 +153,8 @@ def get(self):
template_values['site'] = site
template_values['rnd'] = random.randrange(1, 100)
template_values['member'] = member
+ l10n = GetMessages(self, member, site)
+ template_values['l10n'] = l10n
template_values['page_title'] = site.title + u' › Twitter › Home'
access_token = OAuthToken.from_string(member.twitter_oauth_string)
twitter = OAuthApi(CONSUMER_KEY, CONSUMER_SECRET, access_token)
@@ -194,6 +197,8 @@ def get(self):
template_values['site'] = site
template_values['rnd'] = random.randrange(1, 100)
template_values['member'] = member
+ l10n = GetMessages(self, member, site)
+ template_values['l10n'] = l10n
template_values['page_title'] = site.title + u' › Twitter › Mentions'
access_token = OAuthToken.from_string(member.twitter_oauth_string)
twitter = OAuthApi(CONSUMER_KEY, CONSUMER_SECRET, access_token)
@@ -236,6 +241,8 @@ def get(self):
template_values['site'] = site
template_values['rnd'] = random.randrange(1, 100)
template_values['member'] = member
+ l10n = GetMessages(self, member, site)
+ template_values['l10n'] = l10n
template_values['page_title'] = site.title + u' › Twitter › Direct Messages › Inbox'
access_token = OAuthToken.from_string(member.twitter_oauth_string)
twitter = OAuthApi(CONSUMER_KEY, CONSUMER_SECRET, access_token)
@@ -277,6 +284,8 @@ def get(self, screen_name):
template_values['site'] = site
template_values['rnd'] = random.randrange(1, 100)
template_values['member'] = member
+ l10n = GetMessages(self, member, site)
+ template_values['l10n'] = l10n
template_values['page_title'] = site.title + u' › Twitter › ' + screen_name
template_values['screen_name'] = screen_name
access_token = OAuthToken.from_string(member.twitter_oauth_string)
@@ -3,7 +3,7 @@
<div style="width: 240px; text-align: left" >
<span style="font-weight: bold; font-size: 10px; color: #e2e2e2;">Sponsored by</span>
<div class="sep10"></div>
- <a href="http://we.jiepang.com/careers/?utm_source=v2ex&utm_medium=banner&utm_campaign=V2EX" target="_blank" onClick="recordOutboundLink(this, 'Outbound Links', 'we.jiepang.com');"><img src="http://web.me.com/v2ex.livid/badges/jiepang.png" border="0" width="120" height="90" alt="iMoney HD" /></a>
+ <a href="http://we.jiepang.com/careers/?utm_source=v2ex&utm_medium=banner&utm_campaign=V2EX" target="_blank" onClick="recordOutboundLink(this, 'Outbound Links', 'we.jiepang.com');"><img src="http://web.me.com/v2ex.livid/badges/jiepang.png" border="0" width="120" height="90" alt="街旁" /></a>
<div class="sep5"></div>
<span style="font-size: 11px; color: #666;">
<strong style="color: #000;"><a href="http://we.jiepang.com/careers/?utm_source=v2ex&utm_medium=banner&utm_campaign=V2EX" class="black" onClick="recordOutboundLink(this, 'Outbound Links', 'we.jiepang.com');">街旁寻 iOS 开发者</a></strong><div class="sep3"></div><span style="font-size: 12px;">街旁是一支短小精悍的团队,期待你的加入 :)</span>

0 comments on commit 2d39c6d

Please sign in to comment.