Skip to content

Commit

Permalink
fix lang tag in html
Browse files Browse the repository at this point in the history
  • Loading branch information
mein Name authored and alphatownsman committed Feb 7, 2025
1 parent ee62e2b commit 8c84b21
Show file tree
Hide file tree
Showing 42 changed files with 124 additions and 42 deletions.
3 changes: 2 additions & 1 deletion catalog/templates/catalog_delete.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
{% load l10n %}
{% load mastodon %}
{% load thumb %}
{% get_current_language as LANGUAGE_CODE %}
<!DOCTYPE html>
<html lang="zh">
<html lang="{{ LANGUAGE_CODE }}">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Expand Down
3 changes: 2 additions & 1 deletion catalog/templates/catalog_edit.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{% load static %}
{% load i18n %}
{% load mastodon %}
{% get_current_language as LANGUAGE_CODE %}
<!DOCTYPE html>
<html lang="zh" class="content-page">
<html lang="{{ LANGUAGE_CODE }}" class="content-page">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Expand Down
3 changes: 2 additions & 1 deletion catalog/templates/catalog_history.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{% load static %}
{% load i18n %}
{% load mastodon %}
{% get_current_language as LANGUAGE_CODE %}
<!DOCTYPE html>
<html lang="zh" class="content-page">
<html lang="{{ LANGUAGE_CODE }}" class="content-page">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Expand Down
3 changes: 2 additions & 1 deletion catalog/templates/catalog_merge.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
{% load l10n %}
{% load mastodon %}
{% load thumb %}
{% get_current_language as LANGUAGE_CODE %}
<!DOCTYPE html>
<html lang="zh">
<html lang="{{ LANGUAGE_CODE }}">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Expand Down
3 changes: 2 additions & 1 deletion catalog/templates/discover.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
{% load i18n %}
{% load mastodon %}
{% load thumb %}
{% get_current_language as LANGUAGE_CODE %}
<!DOCTYPE html>
<html lang="zh" class="classic-page nav-page-discover">
<html lang="{{ LANGUAGE_CODE }}" class="classic-page nav-page-discover">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Expand Down
3 changes: 2 additions & 1 deletion catalog/templates/embed_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
{% load mastodon %}
{% load strip_scheme %}
{% load thumb %}
{% get_current_language as LANGUAGE_CODE %}
<!DOCTYPE html>
<html lang="zh">
<html lang="{{ LANGUAGE_CODE }}">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Expand Down
3 changes: 2 additions & 1 deletion catalog/templates/fetch_pending.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
{% load humanize %}
{% load mastodon %}
{% load thumb %}
{% get_current_language as LANGUAGE_CODE %}
<!DOCTYPE html>
<html lang="zh" class="classic-page">
<html lang="{{ LANGUAGE_CODE }}" class="classic-page">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Expand Down
5 changes: 3 additions & 2 deletions catalog/templates/item_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
{% load thumb %}
{% load user_actions %}
{% load duration %}
{% get_current_language as LANGUAGE_CODE %}
<!DOCTYPE html>
<html lang="zh" class="item-page">
<html lang="{{ LANGUAGE_CODE }}" class="item-page">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Expand Down Expand Up @@ -111,7 +112,7 @@ <h1>
{% else %}
<section>
<p class="empty">
<span><a href="{% url 'users:login' %}?next={{ request.path | urlencode }}">
<span><a href="{% url 'users:login' %}?next={{ request.get_full_path | urlencode }}">
{% trans 'Login or register to review or add this item to your collection.' %}
</a></span>
</p>
Expand Down
3 changes: 2 additions & 1 deletion catalog/templates/item_mark_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
{% load thumb %}
{% load user_actions %}
{% load duration %}
{% get_current_language as LANGUAGE_CODE %}
<!DOCTYPE html>
<html lang="zh" class="content-page">
<html lang="{{ LANGUAGE_CODE }}" class="content-page">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Expand Down
3 changes: 2 additions & 1 deletion catalog/templates/item_review_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
{% load thumb %}
{% load user_actions %}
{% load duration %}
{% get_current_language as LANGUAGE_CODE %}
<!DOCTYPE html>
<html lang="zh" class="content-page">
<html lang="{{ LANGUAGE_CODE }}" class="content-page">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Expand Down
3 changes: 2 additions & 1 deletion catalog/templates/search_results.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
{% load mastodon %}
{% load duration %}
{% load thumb %}
{% get_current_language as LANGUAGE_CODE %}
<!DOCTYPE html>
<html lang="zh" class="classic-page nav-page-search">
<html lang="{{ LANGUAGE_CODE }}" class="classic-page nav-page-search">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Expand Down
3 changes: 2 additions & 1 deletion common/templates/400.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
{% load l10n %}
{% load mastodon %}
{% load thumb %}
{% get_current_language as LANGUAGE_CODE %}
<!DOCTYPE html>
<html lang="zh">
<html lang="{{ LANGUAGE_CODE }}">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Expand Down
4 changes: 3 additions & 1 deletion common/templates/503.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{% load i18n %}
{% get_current_language as LANGUAGE_CODE %}
<!DOCTYPE html>
<html lang="zh">
<html lang="{{ LANGUAGE_CODE }}">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Expand Down
2 changes: 1 addition & 1 deletion common/templates/_header.html
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
{% endif %}
{% else %}
<li>
<a href="{% url 'users:login' %}?next={{ request.path | urlencode }}">{% trans 'Sign up or Login' %}</a>
<a href="{% url 'users:login' %}?next={{ request.get_full_path | urlencode }}">{% trans 'Sign up or Login' %}</a>
</li>
{% endif %}
</ul>
Expand Down
3 changes: 2 additions & 1 deletion common/templates/common/error.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
{% load l10n %}
{% load mastodon %}
{% load thumb %}
{% get_current_language as LANGUAGE_CODE %}
<!DOCTYPE html>
<html lang="zh">
<html lang="{{ LANGUAGE_CODE }}">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Expand Down
3 changes: 2 additions & 1 deletion common/templates/common/info.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
{% load l10n %}
{% load mastodon %}
{% load thumb %}
{% get_current_language as LANGUAGE_CODE %}
<!DOCTYPE html>
<html lang="zh">
<html lang="{{ LANGUAGE_CODE }}">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Expand Down
40 changes: 40 additions & 0 deletions docs/assets/servers.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"version": "1.0",
"servers": [
{
"name": "NeoDB",
"host": "neodb.social",
"labels": [
"flagship"
],
"languages": [
"zh",
"en"
]
},
{
"name": "Eggplant",
"host": "eggplant.place",
"labels": [
"beta"
],
"languages": [
"en"
]
},
{
"name": "ReviewDB",
"host": "neodb.social",
"languages": [
"en"
]
},
{
"name": "Minreol",
"host": "minreol.dk",
"languages": [
"da"
]
}
]
}
3 changes: 2 additions & 1 deletion journal/templates/collection.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
{% load thumb %}
{% load collection %}
{% load user_actions %}
{% get_current_language as LANGUAGE_CODE %}
<!DOCTYPE html>
<html lang="zh" class="content-page">
<html lang="{{ LANGUAGE_CODE }}" class="content-page">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Expand Down
3 changes: 2 additions & 1 deletion journal/templates/collection_edit.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{% load static %}
{% load i18n %}
{% load mastodon %}
{% get_current_language as LANGUAGE_CODE %}
<!DOCTYPE html>
<html lang="zh" class="content-page">
<html lang="{{ LANGUAGE_CODE }}" class="content-page">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Expand Down
3 changes: 2 additions & 1 deletion journal/templates/piece_delete.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{% load static %}
{% load i18n %}
{% load mastodon %}
{% get_current_language as LANGUAGE_CODE %}
<!DOCTYPE html>
<html lang="zh">
<html lang="{{ LANGUAGE_CODE }}">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Expand Down
4 changes: 3 additions & 1 deletion journal/templates/profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
{% load i18n %}
{% load mastodon %}
{% load thumb %}
{% get_current_language as LANGUAGE_CODE %}
<!DOCTYPE html>
<html lang="zh" class="classic-page{% if me %} nav-page-home{% endif %}">
<html lang="{{ LANGUAGE_CODE }}"
class="classic-page{% if me %} nav-page-home{% endif %}">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Expand Down
3 changes: 2 additions & 1 deletion journal/templates/review.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
{% load thumb %}
{% load user_actions %}
{% load duration %}
{% get_current_language as LANGUAGE_CODE %}
<!DOCTYPE html>
<html lang="zh" class="content-page">
<html lang="{{ LANGUAGE_CODE }}" class="content-page">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Expand Down
3 changes: 2 additions & 1 deletion journal/templates/review_edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
{% load i18n %}
{% load mastodon %}
{% load thumb %}
{% get_current_language as LANGUAGE_CODE %}
<!DOCTYPE html>
<html lang="zh" class="content-page">
<html lang="{{ LANGUAGE_CODE }}" class="content-page">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Expand Down
3 changes: 2 additions & 1 deletion journal/templates/search_journal.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
{% load mastodon %}
{% load duration %}
{% load thumb %}
{% get_current_language as LANGUAGE_CODE %}
<!DOCTYPE html>
<html lang="zh" class="classic-page nav-page-search">
<html lang="{{ LANGUAGE_CODE }}" class="classic-page nav-page-search">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Expand Down
3 changes: 2 additions & 1 deletion journal/templates/user_collection_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
{% load mastodon %}
{% load user_actions %}
{% load thumb %}
{% get_current_language as LANGUAGE_CODE %}
<!DOCTYPE html>
<html lang="zh" class="classic-page">
<html lang="{{ LANGUAGE_CODE }}" class="classic-page">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Expand Down
3 changes: 2 additions & 1 deletion journal/templates/user_item_list_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
{% load l10n %}
{% load mastodon %}
{% load thumb %}
{% get_current_language as LANGUAGE_CODE %}
<!DOCTYPE html>
<html lang="zh" class="classic-page">
<html lang="{{ LANGUAGE_CODE }}" class="classic-page">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Expand Down
3 changes: 2 additions & 1 deletion journal/templates/user_tag_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
{% load humanize %}
{% load mastodon %}
{% load thumb %}
{% get_current_language as LANGUAGE_CODE %}
<!DOCTYPE html>
<html lang="zh" class="classic-page">
<html lang="{{ LANGUAGE_CODE }}" class="classic-page">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Expand Down
3 changes: 2 additions & 1 deletion journal/templates/wrapped.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
{% load thumb %}
{% load collection %}
{% load user_actions %}
{% get_current_language as LANGUAGE_CODE %}
<!DOCTYPE html>
<html lang="zh" class="classic-page">
<html lang="{{ LANGUAGE_CODE }}" class="classic-page">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Expand Down
3 changes: 2 additions & 1 deletion social/templates/feed.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
{% load l10n %}
{% load mastodon %}
{% load thumb %}
{% get_current_language as LANGUAGE_CODE %}
<!DOCTYPE html>
<html lang="zh" class="feed-page nav-page-feed">
<html lang="{{ LANGUAGE_CODE }}" class="feed-page nav-page-feed">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Expand Down
3 changes: 2 additions & 1 deletion social/templates/notification.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
{% load l10n %}
{% load mastodon %}
{% load thumb %}
{% get_current_language as LANGUAGE_CODE %}
<!DOCTYPE html>
<html lang="zh" class="feed-page nav-page-feed">
<html lang="{{ LANGUAGE_CODE }}" class="feed-page nav-page-feed">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Expand Down
3 changes: 2 additions & 1 deletion social/templates/search_feed.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
{% load l10n %}
{% load mastodon %}
{% load thumb %}
{% get_current_language as LANGUAGE_CODE %}
<!DOCTYPE html>
<html lang="zh" class="feed-page nav-page-feed">
<html lang="{{ LANGUAGE_CODE }}" class="feed-page nav-page-feed">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Expand Down
3 changes: 2 additions & 1 deletion users/templates/users/account.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
{% load i18n %}
{% load mastodon %}
{% load thumb %}
{% get_current_language as LANGUAGE_CODE %}
<!DOCTYPE html>
<html lang="zh" class="classic-page">
<html lang="{{ LANGUAGE_CODE }}" class="classic-page">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Expand Down
3 changes: 2 additions & 1 deletion users/templates/users/announcements.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
{% load i18n %}
{% load humanize %}
{% load duration %}
{% get_current_language as LANGUAGE_CODE %}
<!DOCTYPE html>
<html lang="zh">
<html lang="{{ LANGUAGE_CODE }}">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Expand Down
Loading

0 comments on commit 8c84b21

Please sign in to comment.