Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
solo-1
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
solo-1
Commits
157cbf1e
Unverified
Commit
157cbf1e
authored
Mar 04, 2019
by
Liang Ding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🌐
清理无用的多语言配置项
parent
549f6e4e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
46 deletions
+10
-46
src/main/java/org/b3log/solo/service/DataModelService.java
src/main/java/org/b3log/solo/service/DataModelService.java
+0
-2
src/main/resources/lang_en_US.properties
src/main/resources/lang_en_US.properties
+0
-16
src/main/resources/lang_zh_CN.properties
src/main/resources/lang_zh_CN.properties
+0
-16
src/main/resources/local.properties
src/main/resources/local.properties
+10
-10
src/main/webapp/admin/admin-label.ftl
src/main/webapp/admin/admin-label.ftl
+0
-2
No files found.
src/main/java/org/b3log/solo/service/DataModelService.java
View file @
157cbf1e
...
...
@@ -1047,8 +1047,6 @@ public class DataModelService {
topBarModel
.
put
(
Common
.
ONLINE_VISITOR_CNT
,
StatisticQueryService
.
getOnlineVisitorCount
());
if
(
null
==
currentUser
)
{
topBarModel
.
put
(
Common
.
LOGIN_URL
,
userQueryService
.
getLoginURL
(
Common
.
ADMIN_INDEX_URI
));
topBarModel
.
put
(
"loginLabel"
,
langPropsService
.
get
(
"loginLabel"
));
topBarModel
.
put
(
"registerLabel"
,
langPropsService
.
get
(
"registerLabel"
));
topBarModel
.
put
(
"startToUseLabel"
,
langPropsService
.
get
(
"startToUseLabel"
));
topBarTemplate
.
process
(
topBarModel
,
stringWriter
);
...
...
src/main/resources/lang_en_US.properties
View file @
157cbf1e
...
...
@@ -135,8 +135,6 @@ timeZoneId1Label=Time Zone:
adminLabel
=
Admin
roleLabel
=
Role
administratorLabel
=
Administrator
loginLabel
=
Login
loginFailLabel
=
Login Fail :-(
logoutLabel
=
Logout
initLabel
=
Initial
popTagsLabel
=
Popular Tags
...
...
@@ -228,8 +226,6 @@ selectDateLabel=Select Date
selectDate1Label
=
Select Date:
selectLabel
=
Select
importLabel
=
Import
chooseBlog1Label
=
Choose Blog:
blogArticleImportLabel
=
Article Import
userNameLabel
=
Username
userName1Label
=
Username:
userLabel
=
User
...
...
@@ -269,9 +265,6 @@ saveLabel=Save
autoSaveLabel
=
Auto Save
tagLabel
=
Tag
tagsLabel
=
Tags
importedLabel
=
Imported
captcha1Label
=
Captcha:
captchaLabel
=
Captcha
indexLabel
=
Index
nextArticle1Label
=
Next:
previousArticle1Label
=
Previous:
...
...
@@ -337,7 +330,6 @@ unPulbishSuccLabel=Un Publish Successfully
unPulbishFailLabel
=
Un Publish Fail
removeSuccLabel
=
Remove Successfully
removeFailLabel
=
Remove Fail
removeUserFailSkinNeedMulUsersLabel
=
Remove Fail, the current skin need multiple users!
putTopSuccLabel
=
Put Top Successfully
putTopFailLabel
=
Put Top Fail
cancelTopSuccLabel
=
Cancel Top Successfully
...
...
@@ -346,18 +338,13 @@ addSuccLabel=Add Successfully
addFailLabel
=
Add Fail
updateSuccLabel
=
Update Successfully
updateFailLabel
=
Update Fail
updatePreferenceFailNeedMulUsersLabel
=
Update Fail, the selected skin need multiple users!
setFailLabel
=
Set Fail
setSuccLabel
=
Set Successfully
getFailLabel
=
Get Fail
getSuccLabel
=
Get Successfully
importSuccLabel
=
Import Successfully :-)
importFailLabel
=
Some Import Fail %>_<%
noCommentLabel
=
No Comment
captchaErrorLabel
=
Captcha Error
inputErrorLabel
=
Input Error!
gotoLabel
=
Go
nameEmptyLabel
=
Username is empty
passwordNotMatchLabel
=
Password Not Match
notAllowCommentLabel
=
Not allow comment!
nameTooLongLabel
=
Sorry, your username must be between 2 and 20 characters long.
...
...
@@ -365,7 +352,6 @@ categoryTooLongLabel=Sorry, category name must be between 2 and 32 characters lo
urlInvalidLabel
=
URL is invalid
nonNegativeIntegerOnlyLabel
=
Non-Negative integer only
commentContentCannotEmptyLabel
=
Sorry, your content must be between 2 and 500 characters long.
captchaCannotEmptyLabel
=
Captcha is empty
loadingLabel
=
Loading....
titleEmptyLabel
=
Title is empty
contentEmptyLabel
=
Content is empty
...
...
@@ -381,8 +367,6 @@ duplicatedUserNameLabel=Duplicated username!
refreshAndRetryLabel
=
Please refresh and try again!
editorLeaveLabel
=
Content is not null, Do you leave?
editorPostLabel
=
Content is not null, Do you clear?
registerSoloUserLabel
=
Register Solo User
registerLabel
=
Register
changeRoleLabel
=
Change Role
####
confirmRemoveLabel
=
Are You Remove
...
...
src/main/resources/lang_zh_CN.properties
View file @
157cbf1e
...
...
@@ -135,8 +135,6 @@ timeZoneId1Label=\u65F6\u533A\uFF1A
adminLabel
=
\u
7BA1
\u7406
roleLabel
=
\u
89D2
\u8272
administratorLabel
=
\u
7BA1
\u7406\u5458
loginLabel
=
\u
767B
\u
5F55
loginFailLabel
=
\u
767B
\u
5F55
\u5931\u
8D25 :-(
logoutLabel
=
\u
767B
\u
51FA
initLabel
=
\u
521D
\u
59CB
\u5316
popTagsLabel
=
\u5206\u
7C7B
\u6807\u
7B7E
...
...
@@ -228,8 +226,6 @@ selectDateLabel=\u9009\u62E9\u65E5\u671F
selectDate1Label
=
\u9009\u
62E9
\u
65E5
\u
671F
\u
FF1A
selectLabel
=
\u9009\u
62E9
importLabel
=
\u
5BFC
\u5165
chooseBlog1Label
=
\u
8BF7
\u9009\u
62E9
\u9700\u8981\u
7BA1
\u7406\u7684\u
535A
\u
5BA2
\u
FF1A
blogArticleImportLabel
=
\u6587\u
7AE0
\u
5BFC
\u5165
userNameLabel
=
\u7528\u6237\u
540D
userName1Label
=
\u7528\u6237\u
540D
\u
FF1A
userLabel
=
\u7528\u6237
...
...
@@ -269,9 +265,6 @@ saveLabel=\u4FDD\u5B58
autoSaveLabel
=
\u
81EA
\u
52A8
\u
4FDD
\u
5B58
tagLabel
=
\u6807\u
7B7E
tagsLabel
=
\u6807\u
7B7E
importedLabel
=
\u
5DF2
\u
5BFC
\u5165
captcha1Label
=
\u
9A8C
\u
8BC1
\u7801\u
FF1A
captchaLabel
=
\u
9A8C
\u
8BC1
\u7801
indexLabel
=
\u9996\u9875
nextArticle1Label
=
\u
65B0
\u
4E00
\u
7BC7
\u
FF1A
previousArticle1Label
=
\u
65E7
\u
4E00
\u
7BC7
\u
FF1A
...
...
@@ -337,7 +330,6 @@ unPulbishSuccLabel=\u53D6\u6D88\u53D1\u5E03\u6210\u529F
unPulbishFailLabel
=
\u
53D6
\u
6D88
\u
53D1
\u
5E03
\u5931\u
8D25
removeSuccLabel
=
\u5220\u9664\u6210\u
529F
removeFailLabel
=
\u5220\u9664\u5931\u
8D25
removeUserFailSkinNeedMulUsersLabel
=
\u5220\u9664\u5931\u
8D25
\u
FF0C
\u
5F53
\u
524D
\u
4F7F
\u7528\u7684\u
76AE
\u
80A4
\u9700\u8981\u
591A
\u7528\u6237\u
652F
\u6301
putTopSuccLabel
=
\u
7F6E
\u9876\u6210\u
529F
putTopFailLabel
=
\u
7F6E
\u9876\u5931\u
8D25
cancelTopSuccLabel
=
\u
53D6
\u
6D88
\u
7F6E
\u9876\u6210\u
529F
...
...
@@ -346,18 +338,13 @@ addSuccLabel=\u6DFB\u52A0\u6210\u529F
addFailLabel
=
\u
6DFB
\u
52A0
\u5931\u
8D25
updateSuccLabel
=
\u
66F4
\u
65B0
\u6210\u
529F
updateFailLabel
=
\u
66F4
\u
65B0
\u5931\u
8D25
updatePreferenceFailNeedMulUsersLabel
=
\u
66F4
\u
65B0
\u5931\u
8D25
\u
FF0C
\u9700\u8981\u
591A
\u7528\u6237\u
624D
\u
80FD
\u
4F7F
\u7528\u9009\u
62E9
\u7684\u
76AE
\u
80A4
setFailLabel
=
\u
8BBE
\u
7F6E
\u5931\u
8D25
setSuccLabel
=
\u
8BBE
\u
7F6E
\u6210\u
529F
getFailLabel
=
\u
83B7
\u
53D6
\u5931\u
8D25
getSuccLabel
=
\u
83B7
\u
53D6
\u6210\u
529F
importSuccLabel
=
\u
5BFC
\u5165\u6210\u
529F :-)
importFailLabel
=
\u
90E8
\u5206\u
5BFC
\u5165\u5931\u
8D25 %>_<%
noCommentLabel
=
\u6682\u
65E0
\u
8BC4
\u
8BBA
captchaErrorLabel
=
\u
9A8C
\u
8BC1
\u7801\u9519\u
8BEF
inputErrorLabel
=
\u
8F93
\u5165\u9519\u
8BEF
\u
FF01
gotoLabel
=
\u
8DF3
\u
8F6C
nameEmptyLabel
=
\u
59D3
\u
540D
\u
4E0D
\u
80FD
\u
4E3A
\u
7A7A
\u
FF01
passwordNotMatchLabel
=
\u
5BC6
\u7801\u
4E0D
\u5339\u
914D
\u
FF01
notAllowCommentLabel
=
\u
4E0D
\u5141\u
8BB8
\u
8BC4
\u
8BBA
\u
FF01
nameTooLongLabel
=
\u
59D3
\u
540D
\u
53EA
\u
80FD
\u
4E3A 2
\u5230
20
\u
4E2A
\u
5B57
\u
7B26
\u
FF01
...
...
@@ -365,7 +352,6 @@ categoryTooLongLabel=\u5206\u7C7B\u540D\u79F0\u53EA\u80FD\u4E3A 2 \u5230 32 \u4E
urlInvalidLabel
=
\u
94FE
\u
63A5
\u
683C
\u
5F0F
\u
4E0D
\u
6B63
\u
786E
\u
FF01
nonNegativeIntegerOnlyLabel
=
\u
53EA
\u
80FD
\u
4E3A
\u
975E
\u
8D1F
\u6574\u6570\u
FF01
commentContentCannotEmptyLabel
=
\u
8BC4
\u
8BBA
\u5185\u
5BB9
\u
53EA
\u
80FD
\u
4E3A 2
\u5230
500
\u
4E2A
\u
5B57
\u
7B26
\u
FF01
captchaCannotEmptyLabel
=
\u
9A8C
\u
8BC1
\u7801\u
4E0D
\u
80FD
\u
4E3A
\u
7A7A
\u
FF01
loadingLabel
=
\u
8F7D
\u5165\u
4E2D....
titleEmptyLabel
=
\u6807\u9898\u
4E0D
\u
80FD
\u
4E3A
\u
7A7A
\u
FF01
contentEmptyLabel
=
\u5185\u
5BB9
\u
4E0D
\u
80FD
\u
4E3A
\u
7A7A
\u
FF01
...
...
@@ -381,8 +367,6 @@ duplicatedUserNameLabel=\u7528\u6237\u540D\u91CD\u590D\uFF01
refreshAndRetryLabel
=
\u
8BF7
\u5237\u
65B0
\u
91CD
\u
8BD5
\u
FF01
editorLeaveLabel
=
\u
7F16
\u
8F91
\u5668\u
4E2D
\u
8FD8
\u6709\u5185\u
5BB9
\u
FF0C
\u
662F
\u5426\u
79BB
\u
5F00
\u
FF1F
editorPostLabel
=
\u
7F16
\u
8F91
\u5668\u
4E2D
\u
8FD8
\u6709\u5185\u
5BB9
\u
FF0C
\u
662F
\u5426\u
6E05
\u
7A7A
\u
FF1F
registerSoloUserLabel
=
\u
6CE8
\u
518C Solo
\u7528\u6237
registerLabel
=
\u
6CE8
\u
518C
changeRoleLabel
=
\u6539\u
53D8
\u
89D2
\u8272
####
confirmRemoveLabel
=
\u
662F
\u5426\u5220\u9664
...
...
src/main/resources/local.properties
View file @
157cbf1e
...
...
@@ -23,18 +23,18 @@
#
#### H2 runtime ####
runtimeDatabase
=
H2
jdbc.username
=
root
jdbc.password
=
jdbc.driver
=
org.h2.Driver
jdbc.URL
=
jdbc:h2:~/solo_h2/db
#
runtimeDatabase=H2
#
jdbc.username=root
#
jdbc.password=
#
jdbc.driver=org.h2.Driver
#
jdbc.URL=jdbc:h2:~/solo_h2/db
#### MySQL runtime ####
#
runtimeDatabase=MYSQL
#
jdbc.username=root
#
jdbc.password=123456
#
jdbc.driver=com.mysql.cj.jdbc.Driver
#
jdbc.URL=jdbc:mysql://localhost:3306/solo?useUnicode=yes&characterEncoding=UTF-8&useSSL=false&serverTimezone=UTC
runtimeDatabase
=
MYSQL
jdbc.username
=
root
jdbc.password
=
123456
jdbc.driver
=
com.mysql.cj.jdbc.Driver
jdbc.URL
=
jdbc:mysql://localhost:3306/solo?useUnicode=yes&characterEncoding=UTF-8&useSSL=false&serverTimezone=UTC
# The minConnCnt MUST larger or equal to 3
jdbc.minConnCnt
=
5
...
...
src/main/webapp/admin/admin-label.ftl
View file @
157cbf1e
...
...
@@ -83,9 +83,7 @@
"administratorLabel": "${administratorLabel}",
"sumLabel": "${sumLabel}",
"countLabel": "${countLabel}",
"importSuccLabel": "${importSuccLabel}",
"categoryLabel": "${categoryLabel}",
"importedLabel": "${importedLabel}",
"tagsEmptyLabel": "${tagsEmptyLabel}",
"abstractEmptyLabel": "${abstractEmptyLabel}",
"commonUserLabel": "${commonUserLabel}",
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment