i18n: change all page titles and nav text to Chinese

This commit is contained in:
2026-07-05 22:40:49 +08:00
parent 23897560ad
commit fc55507019
8 changed files with 14 additions and 14 deletions

View File

@@ -3,17 +3,17 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% block title %}Postcard Manager{% endblock %}</title> <title>{% block title %}明信片管理器{% endblock %}</title>
<link rel="stylesheet" href="/static/style.css"> <link rel="stylesheet" href="/static/style.css">
</head> </head>
<body> <body>
<nav class="navbar"> <nav class="navbar">
<a href="/dashboard" class="nav-brand">📮 Postcard Manager</a> <a href="/dashboard" class="nav-brand">📮 明信片管理器</a>
<div class="nav-links"> <div class="nav-links">
{% if user is defined and user %} {% if user is defined and user %}
<a href="/profiles">Profiles</a> <a href="/profiles">Profile</a>
<a href="/settings">Settings</a> <a href="/settings">设置</a>
<a href="/logout" class="nav-logout">Logout</a> <a href="/logout" class="nav-logout">退出</a>
{% endif %} {% endif %}
</div> </div>
</nav> </nav>

View File

@@ -1,5 +1,5 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block title %}Dashboard - Postcard Manager{% endblock %} {% block title %}总览 - 明信片管理器{% endblock %}
{% block content %} {% block content %}
<div class="section-header"> <div class="section-header">
<h1>👋 欢迎,{{ user.username }}</h1> <h1>👋 欢迎,{{ user.username }}</h1>
@@ -94,7 +94,7 @@
</div> </div>
<div class="dash-section"> <div class="dash-section">
<h2>Profiles</h2> <h2>Profile</h2>
<div class="dash-profiles"> <div class="dash-profiles">
{% for p in profiles %} {% for p in profiles %}
<a href="/profiles/{{ p.id }}/postcards" class="dash-profile-link"> <a href="/profiles/{{ p.id }}/postcards" class="dash-profile-link">

View File

@@ -1,5 +1,5 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block title %}登录 - Postcard Manager{% endblock %} {% block title %}登录 - 明信片管理器{% endblock %}
{% block content %} {% block content %}
<div class="auth-form"> <div class="auth-form">
<h2>登录</h2> <h2>登录</h2>

View File

@@ -1,5 +1,5 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block title %}明信片详情 - Postcard Manager{% endblock %} {% block title %}明信片详情 - 明信片管理器{% endblock %}
{% block content %} {% block content %}
<div class="section-header"> <div class="section-header">
<h1>{{ postcard.card_number }}</h1> <h1>{{ postcard.card_number }}</h1>

View File

@@ -1,5 +1,5 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block title %}{{ '编辑' if postcard else '新建' }}明信片 - Postcard Manager{% endblock %} {% block title %}{{ '编辑' if postcard else '新建' }}明信片 - 明信片管理器{% endblock %}
{% block content %} {% block content %}
<div class="section-header"> <div class="section-header">
<h1>{{ '编辑' if postcard else '新建' }}明信片</h1> <h1>{{ '编辑' if postcard else '新建' }}明信片</h1>

View File

@@ -1,5 +1,5 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block title %}{{ profile.nickname }} - Postcard Manager{% endblock %} {% block title %}{{ profile.nickname }} - 明信片管理器{% endblock %}
{% block content %} {% block content %}
<div class="section-header"> <div class="section-header">
<h1>{{ profile.nickname }} 的明信片</h1> <h1>{{ profile.nickname }} 的明信片</h1>

View File

@@ -1,8 +1,8 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block title %}Profiles - Postcard Manager{% endblock %} {% block title %}Profile - 明信片管理器{% endblock %}
{% block content %} {% block content %}
<div class="section-header"> <div class="section-header">
<h1>Profiles</h1> <h1>Profile</h1>
</div> </div>
<div class="inline-form"> <div class="inline-form">
<form method="post" action="/profiles" class="form-row"> <form method="post" action="/profiles" class="form-row">

View File

@@ -1,5 +1,5 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block title %}用户设置 - Postcard Manager{% endblock %} {% block title %}用户设置 - 明信片管理器{% endblock %}
{% block content %} {% block content %}
<div class="section-header"> <div class="section-header">
<h1>用户设置</h1> <h1>用户设置</h1>