Replace $tc( with t(

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2022-08-12 16:45:11 +02:00
parent e893f3f089
commit d8cf49e315
5 changed files with 67 additions and 43 deletions

View File

@@ -5,40 +5,43 @@
<h3 class="dark:text-white text-3xl font-bold">
{{ t("A practical tool") }}
</h3>
<p
<i18n-t
tag="p"
class="dark:text-white"
v-html="
t(
'Mobilizon is a tool that helps you <b>find, create and organise events</b>.'
)
"
/>
keypath="Mobilizon is a tool that helps you {find_create_organize_events}."
>
<template #find_create_organize_events>
<b>{{ t("find, create and organise events") }}</b>
</template>
</i18n-t>
</div>
<div>
<h3 class="dark:text-white text-3xl font-bold">
{{ t("An ethical alternative") }}
</h3>
<p
<i18n-t
tag="p"
class="dark:text-white"
v-html="
t(
'Ethical alternative to Facebook events, groups and pages, Mobilizon is a <b>tool designed to serve you</b>. Period.'
)
"
/>
keypath="Ethical alternative to Facebook events, groups and pages, Mobilizon is a {tool_designed_to_serve_you}. Period."
>
<template #tool_designed_to_serve_you>
<b>{{ t("tool designed to serve you") }}</b>
</template>
</i18n-t>
</div>
<div>
<h3 class="dark:text-white text-3xl font-bold">
{{ t("A federated software") }}
</h3>
<p
<i18n-t
tag="p"
class="dark:text-white"
v-html="
t(
'Mobilizon is not a giant platform, but a <b>multitude of interconnected Mobilizon websites</b>.'
)
"
/>
keypath="Mobilizon is not a giant platform, but a {multitude_of_interconnected_mobilizon_websites}."
>
<template #multitude_of_interconnected_mobilizon_websites>
<b>{{ t("multitude of interconnected Mobilizon websites") }}</b>
</template>
</i18n-t>
</div>
</div>
<div class="mt-4 text-center">

View File

@@ -9,9 +9,13 @@
<div class="actions" v-if="validCheckedResources.length > 0">
<small>
{{
$tc("No resources selected", validCheckedResources.length, {
count: validCheckedResources.length,
})
$t(
"No resources selected",
{
count: validCheckedResources.length,
},
validCheckedResources.length
)
}}
</small>
<o-button