From 92d8910fefb2994d272aea34eedc1a97dd3fb012 Mon Sep 17 00:00:00 2001 From: ruibaby Date: Fri, 7 Sep 2018 08:34:47 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E5=AE=8C=E6=88=90=E9=83=A8=E5=88=86?= =?UTF-8?q?=E7=BF=BB=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/i18n/messages.properties | 56 ++++++++++++++++++ .../resources/i18n/messages_en_US.properties | 58 ++++++++++++++++++- .../resources/i18n/messages_zh_CN.properties | 56 ++++++++++++++++++ .../templates/admin/admin_attachment.ftl | 3 +- .../templates/admin/admin_backup.ftl | 2 +- .../templates/admin/admin_category.ftl | 2 +- .../templates/admin/admin_comment.ftl | 2 +- .../resources/templates/admin/admin_halo.ftl | 15 ++--- .../resources/templates/admin/admin_index.ftl | 2 +- .../resources/templates/admin/admin_menu.ftl | 2 +- .../templates/admin/admin_option.ftl | 2 +- .../resources/templates/admin/admin_page.ftl | 3 +- .../templates/admin/admin_page_gallery.ftl | 3 +- .../templates/admin/admin_page_link.ftl | 3 +- .../templates/admin/admin_page_md_editor.ftl | 2 +- .../resources/templates/admin/admin_post.ftl | 3 +- .../templates/admin/admin_post_md_editor.ftl | 2 +- .../templates/admin/admin_profile.ftl | 2 +- .../resources/templates/admin/admin_tag.ftl | 3 +- .../templates/admin/admin_theme-editor.ftl | 2 +- .../resources/templates/admin/admin_theme.ftl | 2 +- .../templates/admin/module/_macro.ftl | 4 +- 22 files changed, 196 insertions(+), 33 deletions(-) diff --git a/src/main/resources/i18n/messages.properties b/src/main/resources/i18n/messages.properties index 6521ee962..560bf6fae 100644 --- a/src/main/resources/i18n/messages.properties +++ b/src/main/resources/i18n/messages.properties @@ -65,6 +65,62 @@ admin.index.widgets.logs-lastest = 最新日志 admin.index.widgets.btn.clear-logs = 清空日志 admin.index.blog-data.motto = 加油!不要因为走的太远,而忘了当初为什么出发。 +# 附件管理页面 +admin.attachments.title = 附件管理 + +# 备份管理页面 +admin.backup.title = 备份管理 + +# 分类管理页面 +admin.categories.title = 分类目录 + +# 评论管理页面 +admin.comments.title = 评论管理 + +# 菜单管理页面 +admin.menus.title = 菜单管理 + +# 博客设置页面 +admin.options.title = 博客设置 + +# 页面管理页面 +admin.pages.title = 页面管理 + +# 图库页面管理 +admin.pages.gallery.title = 图库页面 + +# 友情链接页面管理 +admin.pages.link.title = 友情链接 + +# 页面编辑页面 +admin.pages.edit.title = 页面编辑 + +# 文章管理页面 +admin.posts.title = 文章管理 + +# 文章编辑页面 +admin.posts.edit.title = 文章编辑 + +# 个人资料页面 +admin.user.profile.title = 个人资料 + +# 标签管理页面 +admin.tags.title = 标签 + +# 主题管理页面 +admin.themes.title = 主题管理 + +# 主题编辑页面 +admin.themes.edit.title = 主题编辑 + +# 关于页面 +admin.halo.title = 关于Halo +admin.halo.bread.index = 首页 +admin.halo.bread.active = 关于Halo +admin.halo.content.p1 = Halo可能是最好的Java博客系统 +admin.halo.content.p2 = 非常感谢你使用Halo进行创作。 +admin.halo.content.p3 = 如果在使用过程中出现bug或者无法解决的问题,希望各位在使用过程中及时向我反馈。 + # 通用 common.btn.save = 保存 common.btn.view-all = 查看所有 diff --git a/src/main/resources/i18n/messages_en_US.properties b/src/main/resources/i18n/messages_en_US.properties index 39f883505..27b274f41 100644 --- a/src/main/resources/i18n/messages_en_US.properties +++ b/src/main/resources/i18n/messages_en_US.properties @@ -65,7 +65,63 @@ admin.index.widgets.logs-lastest = Newest logs admin.index.widgets.btn.clear-logs = Clear logs admin.index.blog-data.motto = Come on! Don’t forget why you left because you’re too far away. -# 通用 +# attachments page +admin.attachments.title = Attachments management + +# backup page +admin.backup.title = Backup management + +# categories page +admin.categories.title = Categories + +# comments page +admin.comments.title = Comments management + +# menus page +admin.menus.title = Menus management + +# options page +admin.options.title = Settings + +# pages page +admin.pages.title = Pages management + +# pages gallery page +admin.pages.galleries.title = Galleries page + +# pages link page +admin.pages.links.title = Links page + +# pages edit page +admin.pages.edit.title = Page edit + +# posts page +admin.posts.title = Posts management + +# posts edit page +admin.posts.edit.title = Post edit + +# user profile page +admin.user.profile.title = Profile + +# tags page +admin.tags.title = Tags + +# themes page +admin.themes.title = Themes management + +# themes edit page +admin.themes.edit.title = Theme edit + +# about page +admin.halo.title = About Halo +admin.halo.bread.index = Home +admin.halo.bread.active = About halo +admin.halo.content.p1 = Halo may be the best Java blog system. +admin.halo.content.p2 = Thank you very much for writing with Halo. +admin.halo.content.p3 = If there are bugs or problems that cannot be solved during use, I hope that you will give me feedback in time. + +# common common.btn.save = Save common.btn.view-all = View all common.btn.upload-image = Upload images diff --git a/src/main/resources/i18n/messages_zh_CN.properties b/src/main/resources/i18n/messages_zh_CN.properties index 6521ee962..560bf6fae 100644 --- a/src/main/resources/i18n/messages_zh_CN.properties +++ b/src/main/resources/i18n/messages_zh_CN.properties @@ -65,6 +65,62 @@ admin.index.widgets.logs-lastest = 最新日志 admin.index.widgets.btn.clear-logs = 清空日志 admin.index.blog-data.motto = 加油!不要因为走的太远,而忘了当初为什么出发。 +# 附件管理页面 +admin.attachments.title = 附件管理 + +# 备份管理页面 +admin.backup.title = 备份管理 + +# 分类管理页面 +admin.categories.title = 分类目录 + +# 评论管理页面 +admin.comments.title = 评论管理 + +# 菜单管理页面 +admin.menus.title = 菜单管理 + +# 博客设置页面 +admin.options.title = 博客设置 + +# 页面管理页面 +admin.pages.title = 页面管理 + +# 图库页面管理 +admin.pages.gallery.title = 图库页面 + +# 友情链接页面管理 +admin.pages.link.title = 友情链接 + +# 页面编辑页面 +admin.pages.edit.title = 页面编辑 + +# 文章管理页面 +admin.posts.title = 文章管理 + +# 文章编辑页面 +admin.posts.edit.title = 文章编辑 + +# 个人资料页面 +admin.user.profile.title = 个人资料 + +# 标签管理页面 +admin.tags.title = 标签 + +# 主题管理页面 +admin.themes.title = 主题管理 + +# 主题编辑页面 +admin.themes.edit.title = 主题编辑 + +# 关于页面 +admin.halo.title = 关于Halo +admin.halo.bread.index = 首页 +admin.halo.bread.active = 关于Halo +admin.halo.content.p1 = Halo可能是最好的Java博客系统 +admin.halo.content.p2 = 非常感谢你使用Halo进行创作。 +admin.halo.content.p3 = 如果在使用过程中出现bug或者无法解决的问题,希望各位在使用过程中及时向我反馈。 + # 通用 common.btn.save = 保存 common.btn.view-all = 查看所有 diff --git a/src/main/resources/templates/admin/admin_attachment.ftl b/src/main/resources/templates/admin/admin_attachment.ftl index 8c9edb706..7f0d6c4e7 100755 --- a/src/main/resources/templates/admin/admin_attachment.ftl +++ b/src/main/resources/templates/admin/admin_attachment.ftl @@ -1,7 +1,6 @@ <#compress > <#include "module/_macro.ftl"> -<@head title="${options.blog_title} | 后台管理:媒体库"> - +<@head>${options.blog_title} | <@spring.message code='admin.attachments.title' />
<#include "module/_header.ftl"> diff --git a/src/main/resources/templates/admin/admin_backup.ftl b/src/main/resources/templates/admin/admin_backup.ftl index 6bce513d6..eb614da47 100644 --- a/src/main/resources/templates/admin/admin_backup.ftl +++ b/src/main/resources/templates/admin/admin_backup.ftl @@ -1,6 +1,6 @@ <#compress > <#include "module/_macro.ftl"> -<@head title="${options.blog_title} | 后台管理:备份"> +<@head>${options.blog_title} | <@spring.message code='admin.backup.title' />
<#include "module/_header.ftl"> diff --git a/src/main/resources/templates/admin/admin_category.ftl b/src/main/resources/templates/admin/admin_category.ftl index 4100a338a..2300edf28 100755 --- a/src/main/resources/templates/admin/admin_category.ftl +++ b/src/main/resources/templates/admin/admin_category.ftl @@ -1,6 +1,6 @@ <#compress > <#include "module/_macro.ftl"> -<@head title="${options.blog_title} | 后台管理:分类目录"> +<@head>${options.blog_title} | <@spring.message code='admin.categories.title' />
<#include "module/_header.ftl"> diff --git a/src/main/resources/templates/admin/admin_comment.ftl b/src/main/resources/templates/admin/admin_comment.ftl index cb1cacb4c..4f72db39f 100755 --- a/src/main/resources/templates/admin/admin_comment.ftl +++ b/src/main/resources/templates/admin/admin_comment.ftl @@ -1,6 +1,6 @@ <#compress > <#include "module/_macro.ftl"> -<@head title="${options.blog_title} | 后台管理:评论"> +<@head>${options.blog_title} | <@spring.message code='admin.comments.title' />
<#include "module/_header.ftl"> diff --git a/src/main/resources/templates/admin/admin_halo.ftl b/src/main/resources/templates/admin/admin_halo.ftl index 181c25576..417f283a1 100644 --- a/src/main/resources/templates/admin/admin_halo.ftl +++ b/src/main/resources/templates/admin/admin_halo.ftl @@ -1,6 +1,6 @@ <#compress > <#include "module/_macro.ftl"> -<@head title="关于Halo"> +<@head><@spring.message code="admin.halo.title" />
<#include "module/_header.ftl"> @@ -16,25 +16,26 @@ }
-

关于Halo

+

<@spring.message code='admin.halo.title' />

-

Halo可能是最好的Java博客系统😉

-

非常感谢你使用Halo进行创作。

+

<@spring.message code='admin.halo.content.p1' />😉

+

<@spring.message code='admin.halo.content.p2' />

-

如果在使用过程中出现bug或者无法解决的问题,希望各位在使用过程中及时向我反馈:

+

<@spring.message code='admin.halo.content.p3' />

Github issues :https://github.com/ruibaby/halo/issues

Blog : https://ryanc.cc

Email : i@ryanc.cc

Telegram : ruibaby

+

Telegram Channel: Ryan0up'S Channel

QQ : 709831589

diff --git a/src/main/resources/templates/admin/admin_index.ftl b/src/main/resources/templates/admin/admin_index.ftl index bdbaedad7..234e08394 100755 --- a/src/main/resources/templates/admin/admin_index.ftl +++ b/src/main/resources/templates/admin/admin_index.ftl @@ -1,6 +1,6 @@ <#compress > <#include "module/_macro.ftl"> -<@head title="${options.blog_title} | <@spring.message code='admin.index.title' >"> +<@head>${options.blog_title} | <@spring.message code='admin.index.title' />
<#include "module/_header.ftl"> diff --git a/src/main/resources/templates/admin/admin_menu.ftl b/src/main/resources/templates/admin/admin_menu.ftl index 43c9c340a..fc5a48ea2 100644 --- a/src/main/resources/templates/admin/admin_menu.ftl +++ b/src/main/resources/templates/admin/admin_menu.ftl @@ -1,6 +1,6 @@ <#compress > <#include "module/_macro.ftl"> -<@head title="${options.blog_title} | 后台管理:菜单设置"> +<@head>${options.blog_title} | <@spring.message code='admin.menus.title' />
<#include "module/_header.ftl"> diff --git a/src/main/resources/templates/admin/admin_option.ftl b/src/main/resources/templates/admin/admin_option.ftl index ffd4bcec8..b9f740c85 100755 --- a/src/main/resources/templates/admin/admin_option.ftl +++ b/src/main/resources/templates/admin/admin_option.ftl @@ -1,6 +1,6 @@ <#compress > <#include "module/_macro.ftl"> -<@head title="${options.blog_title} | 后台管理:系统设置"> +<@head>${options.blog_title} | <@spring.message code='admin.options.title' />
<#include "module/_header.ftl"> diff --git a/src/main/resources/templates/admin/admin_page.ftl b/src/main/resources/templates/admin/admin_page.ftl index 90f99ae71..6a1af7277 100755 --- a/src/main/resources/templates/admin/admin_page.ftl +++ b/src/main/resources/templates/admin/admin_page.ftl @@ -1,7 +1,6 @@ <#compress > <#include "module/_macro.ftl"> -<@head title="${options.blog_title} | 后台管理:页面"> - +<@head>${options.blog_title} | <@spring.message code='admin.pages.title' />
<#include "module/_header.ftl"> diff --git a/src/main/resources/templates/admin/admin_page_gallery.ftl b/src/main/resources/templates/admin/admin_page_gallery.ftl index 68a2da646..637e36638 100644 --- a/src/main/resources/templates/admin/admin_page_gallery.ftl +++ b/src/main/resources/templates/admin/admin_page_gallery.ftl @@ -1,7 +1,6 @@ <#compress > <#include "module/_macro.ftl"> -<@head title="${options.blog_title} | 后台管理:图库"> - +<@head>${options.blog_title} | <@spring.message code='admin.pages.galleries.title' />
<#include "module/_header.ftl"> diff --git a/src/main/resources/templates/admin/admin_page_link.ftl b/src/main/resources/templates/admin/admin_page_link.ftl index fe0ba0d5a..6b419738a 100755 --- a/src/main/resources/templates/admin/admin_page_link.ftl +++ b/src/main/resources/templates/admin/admin_page_link.ftl @@ -1,7 +1,6 @@ <#compress > <#include "module/_macro.ftl"> -<@head title="${options.blog_title} | 后台管理:友情链接"> - +<@head>${options.blog_title} | <@spring.message code='admin.pages.links.title' />
<#include "module/_header.ftl"> diff --git a/src/main/resources/templates/admin/admin_page_md_editor.ftl b/src/main/resources/templates/admin/admin_page_md_editor.ftl index ff8e20b8d..feba8db83 100755 --- a/src/main/resources/templates/admin/admin_page_md_editor.ftl +++ b/src/main/resources/templates/admin/admin_page_md_editor.ftl @@ -1,6 +1,6 @@ <#compress > <#include "module/_macro.ftl"> -<@head title="${options.blog_title} | 后台管理:页面编辑"> +<@head>${options.blog_title} | <@spring.message code='admin.pages.edit.title' />
<#include "module/_header.ftl"> diff --git a/src/main/resources/templates/admin/admin_post.ftl b/src/main/resources/templates/admin/admin_post.ftl index eff801277..143cbdb33 100755 --- a/src/main/resources/templates/admin/admin_post.ftl +++ b/src/main/resources/templates/admin/admin_post.ftl @@ -1,7 +1,6 @@ <#compress > <#include "module/_macro.ftl"> -<@head title="${options.blog_title} | 后台管理:文章"> - +<@head>${options.blog_title} | <@spring.message code='admin.posts.title' />
<#include "module/_header.ftl"> diff --git a/src/main/resources/templates/admin/admin_post_md_editor.ftl b/src/main/resources/templates/admin/admin_post_md_editor.ftl index 61cf7ba9b..20468b681 100755 --- a/src/main/resources/templates/admin/admin_post_md_editor.ftl +++ b/src/main/resources/templates/admin/admin_post_md_editor.ftl @@ -1,6 +1,6 @@ <#compress > <#include "module/_macro.ftl"> -<@head title="${options.blog_title} | 后台管理:文章编辑"> +<@head>${options.blog_title} | <@spring.message code='admin.posts.edit.title' />
<#include "module/_header.ftl"> diff --git a/src/main/resources/templates/admin/admin_profile.ftl b/src/main/resources/templates/admin/admin_profile.ftl index 397f2bf19..d1c96bcfe 100644 --- a/src/main/resources/templates/admin/admin_profile.ftl +++ b/src/main/resources/templates/admin/admin_profile.ftl @@ -1,6 +1,6 @@ <#compress > <#include "module/_macro.ftl"> -<@head title="${options.blog_title} | 后台管理:个人资料"> +<@head>${options.blog_title} | <@spring.message code='admin.user.profile.title' />
<#include "module/_header.ftl"> diff --git a/src/main/resources/templates/admin/admin_tag.ftl b/src/main/resources/templates/admin/admin_tag.ftl index ec4bf9e89..648e0d52f 100755 --- a/src/main/resources/templates/admin/admin_tag.ftl +++ b/src/main/resources/templates/admin/admin_tag.ftl @@ -1,7 +1,6 @@ <#compress > <#include "module/_macro.ftl"> -<@head title="${options.blog_title} | 后台管理:标签"> - +<@head>${options.blog_title} | <@spring.message code='admin.tags.title' />
<#include "module/_header.ftl"> diff --git a/src/main/resources/templates/admin/admin_theme-editor.ftl b/src/main/resources/templates/admin/admin_theme-editor.ftl index b4dd37e35..65bc76da9 100644 --- a/src/main/resources/templates/admin/admin_theme-editor.ftl +++ b/src/main/resources/templates/admin/admin_theme-editor.ftl @@ -1,6 +1,6 @@ <#compress > <#include "module/_macro.ftl"> -<@head title="${options.blog_title} | 后台管理:主题编辑"> +<@head>${options.blog_title} | <@spring.message code='admin.themes.edit.title' />
<#include "module/_header.ftl"> diff --git a/src/main/resources/templates/admin/admin_theme.ftl b/src/main/resources/templates/admin/admin_theme.ftl index 684853056..c0e7aadd5 100755 --- a/src/main/resources/templates/admin/admin_theme.ftl +++ b/src/main/resources/templates/admin/admin_theme.ftl @@ -1,6 +1,6 @@ <#compress > <#include "module/_macro.ftl"> -<@head title="${options.blog_title} | 后台管理:主题"> +<@head>${options.blog_title} | <@spring.message code='admin.themes.title' />
<#include "module/_header.ftl"> diff --git a/src/main/resources/templates/admin/module/_macro.ftl b/src/main/resources/templates/admin/module/_macro.ftl index 28a159dfa..bbe57b8d9 100644 --- a/src/main/resources/templates/admin/module/_macro.ftl +++ b/src/main/resources/templates/admin/module/_macro.ftl @@ -1,11 +1,11 @@ -<#macro head title=""> +<#macro head> - ${title?default("Halo后台管理")} + <#nested >