From 23e49c6e6e63a518e704f82879a5fdcf268c51d8 Mon Sep 17 00:00:00 2001 From: INOUE Daisuke Date: Tue, 8 Apr 2025 22:14:04 +0900 Subject: 1st stage, only language switch. Thank you, MomentQYC ( https://github.com/MomentQYC ). Your first attemt encourage me. --- views/404.handlebars | 4 +- views/createEventMagicLink.handlebars | 10 +- views/event.handlebars | 139 +++++++++++++------------- views/eventgroup.handlebars | 70 +++++++------ views/home.handlebars | 52 ++++------ views/layouts/main.handlebars | 2 +- views/newevent.handlebars | 22 ++-- views/optionsform.handlebars | 16 +-- views/partials/editeventgroupmodal.handlebars | 10 +- views/partials/editeventmodal.handlebars | 10 +- views/partials/eventForm.handlebars | 74 +++++++------- views/partials/eventGroupForm.handlebars | 32 +++--- views/partials/eventList.handlebars | 2 +- views/partials/importeventform.handlebars | 14 +-- views/partials/instanceRules.handlebars | 2 +- views/partials/sidebar.handlebars | 6 +- views/publicEventList.handlebars | 14 +-- 17 files changed, 231 insertions(+), 248 deletions(-) (limited to 'views') diff --git a/views/404.handlebars b/views/404.handlebars index ec8fcb5..8b821c3 100755 --- a/views/404.handlebars +++ b/views/404.handlebars @@ -1,4 +1,4 @@
-

404 - Event not found

-

It may have never existed, or it's been removed from the server. Don't despair - why not create a new one? I for one would love to come to your ocarina recital.

+

{{t "404.notfound"}}

+

{{t "404.desc"}}

diff --git a/views/createEventMagicLink.handlebars b/views/createEventMagicLink.handlebars index d0a0a49..59017eb 100644 --- a/views/createEventMagicLink.handlebars +++ b/views/createEventMagicLink.handlebars @@ -1,5 +1,5 @@
-

Request a link to create a new event

+

{{t "ml.requestml" }}

- The administrator of this instance has limited event creation to a set of specific email addresses. If your email address is allowed to create events, you will be sent a magic link. If not, you won't receive anything. + {{t "ml.requestmldesc" }}

If you run into any issues, please contact the instance administrator. @@ -19,11 +19,11 @@ {{/if}}

- - + +
- +
diff --git a/views/event.handlebars b/views/event.handlebars index 1b1022e..e78ce88 100755 --- a/views/event.handlebars +++ b/views/event.handlebars @@ -11,7 +11,7 @@
{{#if editingEnabled}} - + {{/if}}
@@ -39,7 +39,7 @@
- {{#if eventHasBegun}}{{#unless eventHasConcluded}}Started {{else}}Ended {{/unless}}{{/if}}{{fromNow}} + {{#if eventHasBegun}}{{#unless eventHasConcluded}}{{t "event.started"}} {{else}}{{t "event.ended"}} {{/unless}}{{/if}}{{fromNow}} {{#if eventHasHost}} @@ -47,7 +47,7 @@ - Hosted by {{eventData.hostName}} + {{{t "event.hostedby" }}} {{/if}} {{#if eventData.eventGroup}} @@ -55,7 +55,7 @@ - Part of {{eventData.eventGroup.name}} + {{{t "event.partof" }}} {{/if}} {{#if eventData.url}} @@ -74,7 +74,7 @@ https://{{domain}}/{{eventData.id}} {{#if isFederated}} @@ -84,7 +84,7 @@ @{{eventData.id}}@{{domain}} {{/if}} @@ -94,16 +94,16 @@ {{#if editingEnabled}}
-

To add an event to this group, copy and paste the two codes below into the 'Event Group' box when creating a new event or editing an existing event.

+

{{t "group.addevent" }}

- + - +
Event group ID{{t "group.p.eventgroupid" }} {{eventGroupData.id}}
Event group editing password{{t "group.editpswd" }} {{eventGroupData.editToken}}
@@ -110,19 +109,19 @@ {{/if}}
-
About
+
{{t "about" }}
{{{parsedDescription}}}
-
Upcoming events
+
{{t "upcomingevents" }}
{{> eventList upcomingEvents}}
-
Past events
+
{{t "pastevents" }}
{{> eventList pastEvents}}
@@ -134,19 +133,19 @@