From d206a0306f09d6b63a2ca3e5700014fc75c94068 Mon Sep 17 00:00:00 2001
From: theeditor
Date: Tue, 27 Feb 2018 22:28:47 -0500
Subject: [PATCH 1/8] update locale translation
---
client/src/app/app.module.ts | 2 +-
.../src/app/view/about/about.component.html | 12 +-
.../activity-detail.component.html | 4 +-
.../app/view/activity/activity.component.html | 4 +-
client/src/app/view/home/home.component.html | 6 +-
.../partical/footer/footer.component.html | 2 +-
.../partical/navbar/navbar.component.html | 6 +-
.../not-found/not-found.component.html | 8 +-
client/src/app/view/qa/qa.component.html | 12 +-
.../work-detail/work-detail.component.html | 2 +-
client/src/app/view/work/work.component.html | 4 +-
client/src/locale/messages.sr-cn.xlf | 236 +++++++++++++++++
client/src/locale/messages.zh-CN.xlf | 249 ++++++++++++++++++
client/src/messages.xlf | 247 +++++++++++++++++
14 files changed, 763 insertions(+), 31 deletions(-)
create mode 100644 client/src/locale/messages.sr-cn.xlf
create mode 100644 client/src/locale/messages.zh-CN.xlf
create mode 100644 client/src/messages.xlf
diff --git a/client/src/app/app.module.ts b/client/src/app/app.module.ts
index cf5a66f..262e438 100644
--- a/client/src/app/app.module.ts
+++ b/client/src/app/app.module.ts
@@ -1,5 +1,5 @@
import { BrowserModule } from '@angular/platform-browser';
-import { NgModule } from '@angular/core';
+import { LOCALE_ID,NgModule } from '@angular/core';
import { ServiceWorkerModule } from '@angular/service-worker';
diff --git a/client/src/app/view/about/about.component.html b/client/src/app/view/about/about.component.html
index 2de1dd7..9559d51 100644
--- a/client/src/app/view/about/about.component.html
+++ b/client/src/app/view/about/about.component.html
@@ -2,9 +2,9 @@
About Us
-
+
“Is the mic OK? Check,1,2,OK.”
-
+
Hello everyone, we are Starry Sea Volunteers Association, dedicated to delivering the best of Love Live Sunshine
Aqours events related support association in China!
@@ -12,11 +12,11 @@
About Us
other souvenirs for Aqours events in China several times, trying hard to pass on the warmth of school idols, and
leave a warm and precious memory for everyone who loves school idols!
-
+
From the predecessor of the organization μ’S Final LoveLive Callbook and all the way to today, we made include but
not limited to Aqours' 1st and 2nd Callbook and BML-SP's leaflets and other related commemorative badges, and we
still committed to providing with more beautiful, more diverse souvenirs!
-
+
The cost of making a souvenir comes from the crowdfunding of the members, we keep a record of all the detailed
expenses.Leave footprint of the stories you created with us!We Believe, with the joint efforts of everyone, we can
definitely create "The new story that everyone accomplishes together"!
@@ -38,8 +38,8 @@
About Us
-
Any Questions?
-
Question Box
+
Any Questions?
+
Question Box
diff --git a/client/src/app/view/activity-detail/activity-detail.component.html b/client/src/app/view/activity-detail/activity-detail.component.html
index 206f402..00fc28b 100644
--- a/client/src/app/view/activity-detail/activity-detail.component.html
+++ b/client/src/app/view/activity-detail/activity-detail.component.html
@@ -10,8 +10,8 @@
- Name
- Amount
+ Name
+ Amount
diff --git a/client/src/app/view/activity/activity.component.html b/client/src/app/view/activity/activity.component.html
index ac149e6..c8dd8dc 100644
--- a/client/src/app/view/activity/activity.component.html
+++ b/client/src/app/view/activity/activity.component.html
@@ -1,6 +1,6 @@
-
Activities
+ Activities
@@ -11,7 +11,7 @@
Activities
diff --git a/client/src/app/view/home/home.component.html b/client/src/app/view/home/home.component.html
index ad6edad..d994946 100644
--- a/client/src/app/view/home/home.component.html
+++ b/client/src/app/view/home/home.component.html
@@ -2,13 +2,13 @@
-
+
We Are Starry Sea Volunteers Association
- Dedicated to delivering the best of LoveLive Sunshine Aqours events related support
+ Dedicated to delivering the best of LoveLive Sunshine Aqours events related support
-
+
The main job of Starry Sea is to make and distribute
callbooks and other goods for Aqours' activities throughout China,
and provide volunteer service as much as possible at live events.
diff --git a/client/src/app/view/partical/footer/footer.component.html b/client/src/app/view/partical/footer/footer.component.html
index f008448..f8613e3 100644
--- a/client/src/app/view/partical/footer/footer.component.html
+++ b/client/src/app/view/partical/footer/footer.component.html
@@ -1,5 +1,5 @@
diff --git a/client/src/app/view/partical/navbar/navbar.component.html b/client/src/app/view/partical/navbar/navbar.component.html
index b735644..4c720bd 100644
--- a/client/src/app/view/partical/navbar/navbar.component.html
+++ b/client/src/app/view/partical/navbar/navbar.component.html
@@ -7,13 +7,13 @@
diff --git a/client/src/app/view/partical/not-found/not-found.component.html b/client/src/app/view/partical/not-found/not-found.component.html
index 00d7470..aed455a 100644
--- a/client/src/app/view/partical/not-found/not-found.component.html
+++ b/client/src/app/view/partical/not-found/not-found.component.html
@@ -1,15 +1,15 @@
-
404
+
404
Page Not Found
-
Please Try Again Later
+
Please Try Again Later
-
Here is a random picture of cucu
-
Show Picture
+
Here is a random picture of cucu
+
Show Picture
-
If you have any questions or any doubt
-
Please write it in the question box
+
If you have any questions or any doubt
+
Please write it in the question box
@@ -11,17 +11,17 @@
-
Answered Questions
+
Answered Questions
diff --git a/client/src/app/view/work-detail/work-detail.component.html b/client/src/app/view/work-detail/work-detail.component.html
index 753ddd8..73af7cf 100644
--- a/client/src/app/view/work-detail/work-detail.component.html
+++ b/client/src/app/view/work-detail/work-detail.component.html
@@ -8,7 +8,7 @@
{{workData.name}}
{{workData.summary}}
-
Download
+
Download
diff --git a/client/src/app/view/work/work.component.html b/client/src/app/view/work/work.component.html
index 3ef976c..cd0ef63 100644
--- a/client/src/app/view/work/work.component.html
+++ b/client/src/app/view/work/work.component.html
@@ -1,6 +1,6 @@
-
Works Gallery
+ Works Gallery
@@ -11,7 +11,7 @@
Works Gallery
diff --git a/client/src/locale/messages.sr-cn.xlf b/client/src/locale/messages.sr-cn.xlf
new file mode 100644
index 0000000..2db84f4
--- /dev/null
+++ b/client/src/locale/messages.sr-cn.xlf
@@ -0,0 +1,236 @@
+
+
+
+
+
+ 我们是星之海志愿者公会
+
+
+ app/view/home/home.component.ts
+ 5
+
+ 首页heading
+
+
+ 致力于传递LoveLive Sunshine的魅力Aqours events相关应援
+
+ app/view/home/home.component.ts
+ 9
+
+
+
+
+ 星之海的主要工作是为Aqours在国内进行的活动
+ 制作callbook、应援物进行免费的发放,
+ 并在live时为大家提供力所能及的志愿服务。
+ 想要以那“第十人”为目标,努力做到最好!
+
+
+ app/view/home/home.component.ts
+ 11
+
+
+
+ 作品展示
+
+ app/view/work/work.component.ts
+ 3
+
+ 作品展示
+
+
+ 了解更多
+
+ app/view/work/work.component.ts
+ 14
+
+
+ app/view/activity/activity.component.ts
+ 14
+
+ 了解更多
+
+
+ 活动
+
+ app/view/activity/activity.component.ts
+ 3
+
+
+
+ 作品阅览
+
+ app/view/partical/navbar/navbar.component.ts
+ 10
+
+ 作品
+
+
+ 活动众筹
+
+ app/view/partical/navbar/navbar.component.ts
+ 13
+
+ 活动
+
+
+ 关于我们
+
+ app/view/partical/navbar/navbar.component.ts
+ 16
+
+ 关于我们
+
+
+ 众筹人名字
+
+ app/view/activity-detail/activity-detail.component.ts
+ 13
+
+ 众筹人名字
+
+
+ 众筹金额
+
+ app/view/activity-detail/activity-detail.component.ts
+ 14
+
+ 众筹金额
+
+
+ 下载
+
+ app/view/work-detail/work-detail.component.ts
+ 11
+
+
+
+ 404 页面未找到
+
+
+ app/view/partical/not-found/not-found.component.ts
+ 3
+
+
+
+ 请稍后重试
+
+ app/view/partical/not-found/not-found.component.ts
+ 8
+
+
+
+ 我们的公会之花的照片
+
+ app/view/partical/not-found/not-found.component.ts
+ 11
+
+ 醋图
+
+
+ 显示照片
+
+ app/view/partical/not-found/not-found.component.ts
+ 12
+
+ 展示醋图
+
+
+ "麦克风还正常吗?Check,1,2,OK"
+
+ app/view/about/about.component.ts
+ 5
+
+
+
+
+ 大家好,我们是星之海志愿者公会,致力于为校园偶像在中国国内的Event应援、向各位传递LoveLove!Sunshine!!的魅力的组织!
+ 想要成为Aqours的【第十人】,我们凭借各自微小的力量聚集在了一起,为Aqours在国内的活动多次制作了CallBook,宣传折页,徽章等纪念品,
+ 力图将校园偶像带给我们的温暖传递下去,为热爱校园偶像的每一个人留下一份温暖而珍贵的回忆!
+
+
+ app/view/about/about.component.ts
+ 7
+
+
+
+
+ 从组织前身的μ’S Final LoveLive Callbook制作组走来,我们制作了包括但不限于Aqours 的1st 与2nd 的CallBook以及BML-SP的宣传折页和其他相应的纪念徽章在内的应援物,
+ 并且还在致力于为大家提供更精美,更多样的纪念品!
+
+
+ app/view/about/about.component.ts
+ 15
+
+
+
+
+ 制作纪念品时的花销来自于成员们的众筹款,每一次的详细花销我们都记录在册,
+ 留下你与我们一同创造的故事的痕迹!我们相信,在大家共同的努力下,我们定能创造出【大家一起实现的崭新的故事】!
+
+
+ app/view/about/about.component.ts
+ 19
+
+
+
+ 任何问题和意见?
+
+ app/view/about/about.component.ts
+ 41
+
+
+
+ 质问箱
+
+ app/view/about/about.component.ts
+ 42
+
+
+
+ ©2018-2019 StarrySea
+
+ app/view/partical/footer/footer.component.ts
+ 3
+
+
+
+ 如果您对我们有任何意见、建议或者是单纯的留言
+
+ app/view/qa/qa.component.ts
+ 5
+
+
+
+ 请在质问箱里面提出来吧
+
+ app/view/qa/qa.component.ts
+ 6
+
+
+
+ 您的消息
+
+ app/view/qa/qa.component.ts
+ 14
+
+ 您的问题
+
+
+ 提问是完全匿名,不符合社会主义核心价值观和让人感到伤心的问题还是请不要提出,谢谢茄子
+
+ app/view/qa/qa.component.ts
+ 16
+
+
+
+ 确认送出
+
+ app/view/qa/qa.component.ts
+ 18
+
+ 提问
+
+
+
+
diff --git a/client/src/locale/messages.zh-CN.xlf b/client/src/locale/messages.zh-CN.xlf
new file mode 100644
index 0000000..d9a4091
--- /dev/null
+++ b/client/src/locale/messages.zh-CN.xlf
@@ -0,0 +1,249 @@
+
+
+
+
+
+ We Are Starry Sea Volunteers Association
+
+
+ app/view/home/home.component.ts
+ 5
+
+ 首页heading 我们是星之海志愿者公会
+
+
+ Dedicated to delivering the best of LoveLive Sunshine Aqours events related support
+
+ app/view/home/home.component.ts
+ 9
+ 致力于传递LoveLive Sunshine的魅力Aqours events相关应援
+
+
+
+ The main job of Starry Sea is to make and distribute
+ callbooks and other goods for Aqours' activities throughout China,
+ and provide volunteer service as much as possible at live events.
+ Aim for that "tenth person", strive to be the best!
+
+
+ About us
+
+
+ app/view/home/home.component.ts
+ 11
+ 星之海的主要工作是为Aqours在国内进行的活动制作callbook、应援物进行免费的发放,并在live时为大家提供力所能及的志愿服务。想要以那“第十人”为目标,努力做到最好!
+
+
+ 关于我们
+
+
+ Works Gallery
+
+ app/view/work/work.component.ts
+ 3
+
+ 作品展示 作品展示
+
+
+ Learn More
+
+ app/view/work/work.component.ts
+ 14
+
+
+ app/view/activity/activity.component.ts
+ 14
+
+ 了解更多 了解更多
+
+
+ Activities
+
+ app/view/activity/activity.component.ts
+ 3
+ 活动
+
+
+ Work
+
+ app/view/partical/navbar/navbar.component.ts
+ 10
+
+ 作品 作品阅览
+
+
+ Activity
+
+ app/view/partical/navbar/navbar.component.ts
+ 13
+
+ 活动 活动众筹
+
+
+ About Us
+
+ app/view/partical/navbar/navbar.component.ts
+ 16
+
+ 关于我们 关于我们
+
+
+ Name
+
+ app/view/activity-detail/activity-detail.component.ts
+ 13
+
+ 众筹人名字 众筹人名字
+
+
+ Amount
+
+ app/view/activity-detail/activity-detail.component.ts
+ 14
+
+ 众筹金额 众筹金额
+
+
+ Download
+
+ app/view/work-detail/work-detail.component.ts
+ 11
+ 下载
+
+
+ 404
+
+ Page Not Found
+
+
+ app/view/partical/not-found/not-found.component.ts
+ 3
+ 404 页面未找到
+
+
+ Please Try Again Later
+
+ app/view/partical/not-found/not-found.component.ts
+ 8
+ 请稍后重试
+
+
+ Here is a random picture of cucu
+
+ app/view/partical/not-found/not-found.component.ts
+ 11
+
+ 醋图 我们的公会之花的照片
+
+
+ Show Picture
+
+ app/view/partical/not-found/not-found.component.ts
+ 12
+
+ 展示醋图 显示照片
+
+
+
+ “Is the mic OK? Check,1,2,OK.”
+
+ app/view/about/about.component.ts
+ 5
+ "麦克风还正常吗?Check,1,2,OK"
+
+
+
+ Hello everyone, we are Starry Sea Volunteers Association, dedicated to delivering the best of Love Live Sunshine
+ Aqours events related support association in China!
+
+ Aim to be the "Tenth Person" of Aqours, we gather our own tiny strength together, made callbooks, leaflet, badges
+ other souvenirs for Aqours events in China several times, trying hard to pass on the warmth of school idols, and
+ leave a warm and precious memory for everyone who loves school idols!
+
+
+ app/view/about/about.component.ts
+ 7
+ 大家好,我们是星之海志愿者公会,致力于为校园偶像在中国国内的Event应援、向各位传递LoveLove!Sunshine!!的魅力的组织!
想要成为Aqours的【第十人】,我们凭借各自微小的力量聚集在了一起,为Aqours在国内的活动多次制作了CallBook,宣传折页,徽章等纪念品,力图将校园偶像带给我们的温暖传递下去,为热爱校园偶像的每一个人留下一份温暖而珍贵的回忆!
+
+
+
+ From the predecessor of the organization μ’S Final LoveLive Callbook and all the way to today, we made include but
+ not limited to Aqours' 1st and 2nd Callbook and BML-SP's leaflets and other related commemorative badges, and we
+ still committed to providing with more beautiful, more diverse souvenirs!
+
+ app/view/about/about.component.ts
+ 15
+ 从组织前身的μ’S Final LoveLive Callbook制作组走来,我们制作了包括但不限于Aqours 的1st 与2nd 的CallBook以及BML-SP的宣传折页和其他相应的纪念徽章在内的应援物,并且还在致力于为大家提供更精美,更多样的纪念品!
+
+
+
+ The cost of making a souvenir comes from the crowdfunding of the members, we keep a record of all the detailed
+ expenses.Leave footprint of the stories you created with us!We Believe, with the joint efforts of everyone, we can
+ definitely create "The new story that everyone accomplishes together"!
+
+
+ app/view/about/about.component.ts
+ 19
+ 制作纪念品时的花销来自于成员们的众筹款,每一次的详细花销我们都记录在册,留下你与我们一同创造的故事的痕迹!我们相信,在大家共同的努力下,我们定能创造出【大家一起实现的崭新的故事】!
+
+
+ Any Questions?
+
+ app/view/about/about.component.ts
+ 41
+ 任何问题和意见?
+
+
+ Question Box
+
+ app/view/about/about.component.ts
+ 42
+ 质问箱
+
+
+ ©2018-2019 StarrySea
+
+ app/view/partical/footer/footer.component.ts
+ 3
+ (c)2018-2019 星之海项目
+
+
+ If you have any questions or any doubt
+
+ app/view/qa/qa.component.ts
+ 5
+ 如果您对我们有任何意见、建议或者是单纯的留言
+
+
+ Please write it in the question box
+
+ app/view/qa/qa.component.ts
+ 6
+ 请在质问箱里面提出来吧
+
+
+ Your Message:
+
+ app/view/qa/qa.component.ts
+ 14
+
+ 您的问题 您的消息
+
+
+ The question is completely anonymous,Please do not ask question that do not meet the core values of socialism,谢谢茄子
+
+ app/view/qa/qa.component.ts
+ 16
+ 提问是完全匿名,不符合社会主义核心价值观和让人感到伤心的问题还是请不要提出,谢谢茄子
+
+
+ Send
+
+ app/view/qa/qa.component.ts
+ 18
+
+ 提问 确认送出
+
+
+
+
diff --git a/client/src/messages.xlf b/client/src/messages.xlf
new file mode 100644
index 0000000..57a1e65
--- /dev/null
+++ b/client/src/messages.xlf
@@ -0,0 +1,247 @@
+
+
+
+
+
+
+ We Are Starry Sea Volunteers Association
+
+
+ app/view/home/home.component.ts
+ 5
+
+ 首页heading
+
+
+ Dedicated to delivering the best of LoveLive Sunshine Aqours events related support
+
+ app/view/home/home.component.ts
+ 9
+
+
+
+
+ The main job of Starry Sea is to make and distribute
+ callbooks and other goods for Aqours' activities throughout China,
+ and provide volunteer service as much as possible at live events.
+ Aim for that "tenth person", strive to be the best!
+
+
+ About us
+
+
+ app/view/home/home.component.ts
+ 11
+
+
+
+ Works Gallery
+
+ app/view/work/work.component.ts
+ 3
+
+ 作品展示
+
+
+ Learn More
+
+ app/view/work/work.component.ts
+ 14
+
+
+ app/view/activity/activity.component.ts
+ 14
+
+ 了解更多
+
+
+ Activities
+
+ app/view/activity/activity.component.ts
+ 3
+
+
+
+ Work
+
+ app/view/partical/navbar/navbar.component.ts
+ 10
+
+ 作品
+
+
+ Activity
+
+ app/view/partical/navbar/navbar.component.ts
+ 13
+
+ 活动
+
+
+ About Us
+
+ app/view/partical/navbar/navbar.component.ts
+ 16
+
+ 关于我们
+
+
+ Name
+
+ app/view/activity-detail/activity-detail.component.ts
+ 13
+
+ 众筹人名字
+
+
+ Amount
+
+ app/view/activity-detail/activity-detail.component.ts
+ 14
+
+ 众筹金额
+
+
+ Download
+
+ app/view/work-detail/work-detail.component.ts
+ 11
+
+
+
+ 404
+
+ Page Not Found
+
+
+ app/view/partical/not-found/not-found.component.ts
+ 3
+
+
+
+ Please Try Again Later
+
+ app/view/partical/not-found/not-found.component.ts
+ 8
+
+
+
+ Here is a random picture of cucu
+
+ app/view/partical/not-found/not-found.component.ts
+ 11
+
+ 醋图
+
+
+ Show Picture
+
+ app/view/partical/not-found/not-found.component.ts
+ 12
+
+ 展示醋图
+
+
+
+ “Is the mic OK? Check,1,2,OK.”
+
+ app/view/about/about.component.ts
+ 5
+
+
+
+
+ Hello everyone, we are Starry Sea Volunteers Association, dedicated to delivering the best of Love Live Sunshine
+ Aqours events related support association in China!
+
+ Aim to be the "Tenth Person" of Aqours, we gather our own tiny strength together, made callbooks, leaflet, badges
+ other souvenirs for Aqours events in China several times, trying hard to pass on the warmth of school idols, and
+ leave a warm and precious memory for everyone who loves school idols!
+
+
+ app/view/about/about.component.ts
+ 7
+
+
+
+
+ From the predecessor of the organization μ’S Final LoveLive Callbook and all the way to today, we made include but
+ not limited to Aqours' 1st and 2nd Callbook and BML-SP's leaflets and other related commemorative badges, and we
+ still committed to providing with more beautiful, more diverse souvenirs!
+
+ app/view/about/about.component.ts
+ 15
+
+
+
+
+ The cost of making a souvenir comes from the crowdfunding of the members, we keep a record of all the detailed
+ expenses.Leave footprint of the stories you created with us!We Believe, with the joint efforts of everyone, we can
+ definitely create "The new story that everyone accomplishes together"!
+
+
+ app/view/about/about.component.ts
+ 19
+
+
+
+ Any Questions?
+
+ app/view/about/about.component.ts
+ 41
+
+
+
+ Question Box
+
+ app/view/about/about.component.ts
+ 42
+
+
+
+ ©2018-2019 StarrySea
+
+ app/view/partical/footer/footer.component.ts
+ 3
+
+
+
+ If you have any questions or any doubt
+
+ app/view/qa/qa.component.ts
+ 5
+
+
+
+ Please write it in the question box
+
+ app/view/qa/qa.component.ts
+ 6
+
+
+
+ Your Message:
+
+ app/view/qa/qa.component.ts
+ 14
+
+ 您的问题
+
+
+ The question is completely anonymous,Please do not ask question that do not meet the core values of socialism,谢谢茄子
+
+ app/view/qa/qa.component.ts
+ 16
+
+
+
+ Send
+
+ app/view/qa/qa.component.ts
+ 18
+
+ 提问
+
+
+
+
From e6717695006807ce7f430233956e95ddcd8d2e60 Mon Sep 17 00:00:00 2001
From: theeditor
Date: Wed, 28 Feb 2018 16:53:57 -0500
Subject: [PATCH 2/8] complete locale adaptation
---
client/src/app/common/locale.ts | 4 ++++
.../activity-management.component.html | 6 ++++++
.../activity-management.component.ts | 8 +++++++-
.../work-management.component.html | 6 ++++++
.../work-management/work-management.component.ts | 8 +++++++-
client/src/app/view/qa/qa.component.html | 2 +-
client/src/index.html | 8 +++++---
server/actions/activity/create.js | 4 ++--
server/actions/activity/fetch.js | 15 ++++++++++++---
server/actions/work/create.js | 3 ++-
server/actions/work/fetch.js | 15 ++++++++++++---
server/models/Activity.js | 5 +++++
server/models/Qa.js | 5 +++++
server/models/Works.js | 5 +++++
14 files changed, 79 insertions(+), 15 deletions(-)
create mode 100644 client/src/app/common/locale.ts
diff --git a/client/src/app/common/locale.ts b/client/src/app/common/locale.ts
new file mode 100644
index 0000000..d18671b
--- /dev/null
+++ b/client/src/app/common/locale.ts
@@ -0,0 +1,4 @@
+export const locale = [
+ "en-US",
+ "ja-JP"
+];
diff --git a/client/src/app/view/admin/activity-management/activity-management.component.html b/client/src/app/view/admin/activity-management/activity-management.component.html
index 96c8f7e..fcaab82 100644
--- a/client/src/app/view/admin/activity-management/activity-management.component.html
+++ b/client/src/app/view/admin/activity-management/activity-management.component.html
@@ -1,5 +1,11 @@