]> git.openstreetmap.org Git - osqa.git/commitdiff
Adding some more accurate Unicode support, modified to » some special character...
authorjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Wed, 29 Dec 2010 23:28:38 +0000 (23:28 +0000)
committerjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Wed, 29 Dec 2010 23:28:38 +0000 (23:28 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@656 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/skins/default/templates/account_settings.html
forum/skins/default/templates/answer_edit_tips.html
forum/skins/default/templates/question_edit_tips.html
forum/skins/default/templates/question_retag.html
forum/views/meta.py

index 91267d263d76b55d2303261db216de15efda8923..d1349ec77c42e2399fb28ff11454ee470100349d 100644 (file)
        {% endif %}
 
        <dl class="list-item">
-        <dt>» <a href="{% url user_changepw %}">{% trans "Change password" %}</a></dt>
+        <dt>&raquo; <a href="{% url user_changepw %}">{% trans "Change password" %}</a></dt>
         <dd>{% trans "Give your  account a new password." %}</dd>
         {% comment %}
-        <dt>» <a href="{% url user_changeemail %}">{% trans "Change email " %}</a></dt>
+        <dt>&raquo; <a href="{% url user_changeemail %}">{% trans "Change email " %}</a></dt>
         <dd>{% trans "Add or update the email address associated with your account." %}</dd>
 
-        <dt>» <a href="{% url user_changeopenid %}">{% trans "Change OpenID" %}</a></dt>
+        <dt>&raquo; <a href="{% url user_changeopenid %}">{% trans "Change OpenID" %}</a></dt>
         <dd>{% trans "Change openid associated to your account" %}</dd>
 
         
-        <dt>» <a href="{% url user_delete %}">{% trans "Delete account" %}</a></dt>
+        <dt>&raquo; <a href="{% url user_delete %}">{% trans "Delete account" %}</a></dt>
         <dd>{% trans "Erase your username and all your data from website" %}</dd>
         {% endcomment %}
        </dl>
index 43240c8e36d18928dab74051adb0dc8d1dd4a025..39e1f3c2a34aac7088b6764175c9ba57ec52d6f1 100644 (file)
@@ -17,7 +17,7 @@
             </li>
         </ul>
         <p class='info-box-follow-up-links'>
-            <a href="{% url faq %}" target="_blank" title="{% trans "see frequently asked questions" %}">faq »</a>
+            <a href="{% url faq %}" target="_blank" title="{% trans "see frequently asked questions" %}">faq &raquo;</a>
         </p>
     </div>
 </div>
index 855e9c3ac44a8bfd6fbfa9e3fcb1a0f1362899cc..d54deefaf459dfe3f21d0f32185fa587b0f6c686 100644 (file)
@@ -19,7 +19,7 @@
             </li>
         </ul>
         <p class='info-box-follow-up-links'>
-            <a href="{% url faq %}" target="_blank" title="{% trans "see frequently asked questions" %}">{% trans "faq" %} »</a>
+            <a href="{% url faq %}" target="_blank" title="{% trans "see frequently asked questions" %}">{% trans "faq" %} &raquo;</a>
         </p>
     </div>
 </div>
index fdcffd0ce6bc71761b07975ca43abca88eeb3c87..6ec13134cb0c6b7baf8830aaa07605b22b76e6d6 100644 (file)
         <li>
             {% trans "tags help us keep Questions organized" %}
         </li>
-        {% comment %}
-        <li>
-            修改完整问题需要用户的积分达到一定条件(比如:积分 >= 3000分,自己发布的问题除外),而用户积分达到比较低的时候,就可以修改问题的标签(比如:积分 >= 500, 这里指所有问题的标签)。
-        </li>
-        {% endcomment %}
         <li>
             {% trans "tag editors receive special awards from the community" %}
         </li>
     </ul>
     <p class='info-box-follow-up-links'>
-        <a href="{% url faq %}">faq »</a>
+        <a href="{% url faq %}">faq &raquo;</a>
     </p>
 </div>
 
index 2177301d48b3bf723a254815aef85106a08484d0..536cf2603515cee8a6cfda653450691e57eff7a9 100644 (file)
@@ -33,8 +33,15 @@ def static(request, title, content):
                               context_instance=RequestContext(request))
 
 def media(request, skin, path):
-    return serve(request, "%s/media/%s" % (skin, path),
+    response = serve(request, "%s/media/%s" % (skin, path),
                  document_root=os.path.join(os.path.dirname(os.path.dirname(__file__)), 'skins').replace('\\', '/'))
+    content_type = response['Content-Type']
+    if ('charset=' not in content_type):
+        if (content_type.startswith('text') or content_type=='application/x-javascript'):
+            content_type += '; charset=utf-8'
+            response['Content-Type'] = content_type
+    return response
+
 
 def markdown_help(request):
     return render_to_response('markdown_help.html', context_instance=RequestContext(request))