forked from potsda.mn/mobilizon
Replace $tc( with t(
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
e893f3f089
commit
d8cf49e315
|
@ -5,40 +5,43 @@
|
||||||
<h3 class="dark:text-white text-3xl font-bold">
|
<h3 class="dark:text-white text-3xl font-bold">
|
||||||
{{ t("A practical tool") }}
|
{{ t("A practical tool") }}
|
||||||
</h3>
|
</h3>
|
||||||
<p
|
<i18n-t
|
||||||
|
tag="p"
|
||||||
class="dark:text-white"
|
class="dark:text-white"
|
||||||
v-html="
|
keypath="Mobilizon is a tool that helps you {find_create_organize_events}."
|
||||||
t(
|
>
|
||||||
'Mobilizon is a tool that helps you <b>find, create and organise events</b>.'
|
<template #find_create_organize_events>
|
||||||
)
|
<b>{{ t("find, create and organise events") }}</b>
|
||||||
"
|
</template>
|
||||||
/>
|
</i18n-t>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<h3 class="dark:text-white text-3xl font-bold">
|
<h3 class="dark:text-white text-3xl font-bold">
|
||||||
{{ t("An ethical alternative") }}
|
{{ t("An ethical alternative") }}
|
||||||
</h3>
|
</h3>
|
||||||
<p
|
<i18n-t
|
||||||
|
tag="p"
|
||||||
class="dark:text-white"
|
class="dark:text-white"
|
||||||
v-html="
|
keypath="Ethical alternative to Facebook events, groups and pages, Mobilizon is a {tool_designed_to_serve_you}. Period."
|
||||||
t(
|
>
|
||||||
'Ethical alternative to Facebook events, groups and pages, Mobilizon is a <b>tool designed to serve you</b>. Period.'
|
<template #tool_designed_to_serve_you>
|
||||||
)
|
<b>{{ t("tool designed to serve you") }}</b>
|
||||||
"
|
</template>
|
||||||
/>
|
</i18n-t>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<h3 class="dark:text-white text-3xl font-bold">
|
<h3 class="dark:text-white text-3xl font-bold">
|
||||||
{{ t("A federated software") }}
|
{{ t("A federated software") }}
|
||||||
</h3>
|
</h3>
|
||||||
<p
|
<i18n-t
|
||||||
|
tag="p"
|
||||||
class="dark:text-white"
|
class="dark:text-white"
|
||||||
v-html="
|
keypath="Mobilizon is not a giant platform, but a {multitude_of_interconnected_mobilizon_websites}."
|
||||||
t(
|
>
|
||||||
'Mobilizon is not a giant platform, but a <b>multitude of interconnected Mobilizon websites</b>.'
|
<template #multitude_of_interconnected_mobilizon_websites>
|
||||||
)
|
<b>{{ t("multitude of interconnected Mobilizon websites") }}</b>
|
||||||
"
|
</template>
|
||||||
/>
|
</i18n-t>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="mt-4 text-center">
|
<div class="mt-4 text-center">
|
||||||
|
|
|
@ -9,9 +9,13 @@
|
||||||
<div class="actions" v-if="validCheckedResources.length > 0">
|
<div class="actions" v-if="validCheckedResources.length > 0">
|
||||||
<small>
|
<small>
|
||||||
{{
|
{{
|
||||||
$tc("No resources selected", validCheckedResources.length, {
|
$t(
|
||||||
|
"No resources selected",
|
||||||
|
{
|
||||||
count: validCheckedResources.length,
|
count: validCheckedResources.length,
|
||||||
})
|
},
|
||||||
|
validCheckedResources.length
|
||||||
|
)
|
||||||
}}
|
}}
|
||||||
</small>
|
</small>
|
||||||
<o-button
|
<o-button
|
||||||
|
|
|
@ -169,16 +169,17 @@
|
||||||
v-if="event.contacts && event.contacts.length"
|
v-if="event.contacts && event.contacts.length"
|
||||||
v-html="
|
v-html="
|
||||||
' ' +
|
' ' +
|
||||||
$tc(
|
$t(
|
||||||
'<b>{contact}</b> will be displayed as contact.',
|
'<b>{contact}</b> will be displayed as contact.',
|
||||||
event.contacts.length,
|
|
||||||
{
|
{
|
||||||
contact: formatList(
|
contact: formatList(
|
||||||
event.contacts.map((contact) =>
|
event.contacts.map((contact) =>
|
||||||
displayNameAndUsername(contact)
|
displayNameAndUsername(contact)
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
}
|
},
|
||||||
|
event.contacts.length
|
||||||
)
|
)
|
||||||
"
|
"
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -144,21 +144,33 @@
|
||||||
v-if="isInLessThanSevenDays(row[0])"
|
v-if="isInLessThanSevenDays(row[0])"
|
||||||
>
|
>
|
||||||
<span v-if="isToday(row[0])">{{
|
<span v-if="isToday(row[0])">{{
|
||||||
$tc("You have one event today.", row[1].size, {
|
$t(
|
||||||
|
"You have one event today.",
|
||||||
|
{
|
||||||
count: row[1].size,
|
count: row[1].size,
|
||||||
})
|
},
|
||||||
|
row[1].size
|
||||||
|
)
|
||||||
}}</span>
|
}}</span>
|
||||||
<span v-else-if="isTomorrow(row[0])">{{
|
<span v-else-if="isTomorrow(row[0])">{{
|
||||||
$tc("You have one event tomorrow.", row[1].size, {
|
$t(
|
||||||
|
"You have one event tomorrow.",
|
||||||
|
{
|
||||||
count: row[1].size,
|
count: row[1].size,
|
||||||
})
|
},
|
||||||
|
row[1].size
|
||||||
|
)
|
||||||
}}</span>
|
}}</span>
|
||||||
<span v-else-if="isInLessThanSevenDays(row[0])">
|
<span v-else-if="isInLessThanSevenDays(row[0])">
|
||||||
{{
|
{{
|
||||||
$tc("You have one event in {days} days.", row[1].size, {
|
$t(
|
||||||
|
"You have one event in {days} days.",
|
||||||
|
{
|
||||||
count: row[1].size,
|
count: row[1].size,
|
||||||
days: calculateDiffDays(row[0]),
|
days: calculateDiffDays(row[0]),
|
||||||
})
|
},
|
||||||
|
row[1].size
|
||||||
|
)
|
||||||
}}
|
}}
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
|
@ -223,10 +235,10 @@
|
||||||
</h2>
|
</h2>
|
||||||
<p>
|
<p>
|
||||||
{{
|
{{
|
||||||
$tc("Within {number} kilometers of {place}", radius, {
|
$t("Within {number} kilometers of {place}", {
|
||||||
radius,
|
radius,
|
||||||
place: locationName,
|
place: locationName,
|
||||||
})
|
}, radius)
|
||||||
}}
|
}}
|
||||||
<router-link
|
<router-link
|
||||||
:to="{ name: RouteName.PREFERENCES }"
|
:to="{ name: RouteName.PREFERENCES }"
|
||||||
|
|
|
@ -42,10 +42,14 @@
|
||||||
>
|
>
|
||||||
<h3 class="is-size-3">
|
<h3 class="is-size-3">
|
||||||
{{
|
{{
|
||||||
$tc("{title} ({count} todos)", todoList.todos.total, {
|
$t(
|
||||||
|
"{title} ({count} todos)",
|
||||||
|
{
|
||||||
count: todoList.todos.total,
|
count: todoList.todos.total,
|
||||||
title: todoList.title,
|
title: todoList.title,
|
||||||
})
|
},
|
||||||
|
todoList.todos.total
|
||||||
|
)
|
||||||
}}
|
}}
|
||||||
</h3>
|
</h3>
|
||||||
</router-link>
|
</router-link>
|
||||||
|
|
Loading…
Reference in a new issue