Extending transation coverage to profile and landing page

This commit is contained in:
Jeff Poirier 2024-07-01 08:02:33 -04:00
parent ace65df62a
commit f8f8dc6969
11 changed files with 131 additions and 29 deletions

Binary file not shown.

Binary file not shown.

View file

@ -227,7 +227,7 @@
v-html="conversationProfile.display_name" v-html="conversationProfile.display_name"
@click="gotoProfile(conversationProfile)" @click="gotoProfile(conversationProfile)"
> >
</p> </p>
<p <p
class="username primary" class="username primary"

View file

@ -6,13 +6,13 @@
<div class="card-header bg-bluegray-800 nav-menu" style="border-top-left-radius: 10px; border-top-right-radius: 10px;"> <div class="card-header bg-bluegray-800 nav-menu" style="border-top-left-radius: 10px; border-top-right-radius: 10px;">
<ul class="nav justify-content-around"> <ul class="nav justify-content-around">
<li class="nav-item"> <li class="nav-item">
<router-link to="/" class="nav-link">About</router-link> <router-link to="/" class="nav-link">{{ $t('landing.about') }}</router-link>
</li> </li>
<li v-if="config.show_directory" class="nav-item"> <li v-if="config.show_directory" class="nav-item">
<router-link to="/web/directory" class="nav-link">Directory</router-link> <router-link to="/web/directory" class="nav-link">{{ $t('landing.directory') }}</router-link>
</li> </li>
<li v-if="config.show_explore_feed" class="nav-item"> <li v-if="config.show_explore_feed" class="nav-item">
<router-link to="/web/explore" class="nav-link">Explore</router-link> <router-link to="/web/explore" class="nav-link">{{ $t('landing.explore') }}</router-link>
</li> </li>
</ul> </ul>
</div> </div>
@ -31,7 +31,11 @@
<div class="server-header"> <div class="server-header">
<p class="server-header-domain">{{ config.domain }}</p> <p class="server-header-domain">{{ config.domain }}</p>
<p class="server-header-attribution"> <p class="server-header-attribution">
Decentralized photo sharing social media powered by <a href="https://pixelfed.org" target="_blank">Pixelfed</a> <i18n path="landing.header" tag="p">
<template v-slot:pixelfedLink>
<a href="https://pixelfed.org" target="_blank">Pixelfed</a>
</template>
</i18n>
</p> </p>
</div> </div>

View file

@ -12,7 +12,7 @@
</div> </div>
<div class="d-flex align-items-center justify-content-center flex-column w-100 overflow-hidden"> <div class="d-flex align-items-center justify-content-center flex-column w-100 overflow-hidden">
<p class="small text-muted mb-0 text-uppercase font-weight-light cursor-pointer text-truncate text-center" style="width: 70%;" @click="goBack()">&commat;{{ profile.acct }}</p> <p class="small text-muted mb-0 text-uppercase font-weight-light cursor-pointer text-truncate text-center" style="width: 70%;" @click="goBack()">&commat;{{ profile.acct }}</p>
<p class="lead font-weight-bold mt-n1 mb-0">{{ $t('profile.followers') }}</p> <p class="lead font-weight-bold mt-n1 mb-0">{{ $t('profile.followers.caption') }}</p>
</div> </div>
<div> <div>
<a class="btn btn-dark rounded-pill font-weight-bold spacer-btn" href="#">Back</a> <a class="btn btn-dark rounded-pill font-weight-bold spacer-btn" href="#">Back</a>

View file

@ -72,7 +72,7 @@
<p class="stats"> <p class="stats">
<span class="stats-following"> <span class="stats-following">
<span class="following-count">{{ formatCount(profile.following_count) }}</span> Following <span class="following-count">{{ formatCount(profile.following_count) }}</span> {{ $t('profile.following.caption', profile.following_count) }}
</span> </span>
<span class="stats-followers"> <span class="stats-followers">
<span class="followers-count">{{ formatCount(profile.followers_count) }}</span> Followers <span class="followers-count">{{ formatCount(profile.followers_count) }}</span> Followers

View file

@ -16,10 +16,10 @@
<p class="username primary">&commat;{{ user.username }}</p> <p class="username primary">&commat;{{ user.username }}</p>
<p class="stats"> <p class="stats">
<span class="stats-following"> <span class="stats-following">
<span class="following-count">{{ formatCount(user.following_count) }}</span> Following <span class="following-count">{{ formatCount(user.following_count) }}</span>&nbsp;{{ $tc('sidebar.followingCount', user.following_count) }}
</span> </span>
<span class="stats-followers"> <span class="stats-followers">
<span class="followers-count">{{ formatCount(user.followers_count) }}</span> Followers <span class="followers-count">{{ formatCount(user.followers_count) }}</span>&nbsp;{{ $tc('sidebar.followersCount', user.followers_count) }}
</span> </span>
</p> </p>
</div> </div>
@ -29,10 +29,10 @@
<div class="btn-group btn-group-lg btn-block mb-4"> <div class="btn-group btn-group-lg btn-block mb-4">
<!-- <button type="button" class="btn btn-outline-primary btn-block font-weight-bold" style="border-top-left-radius: 18px;border-bottom-left-radius:18px;font-size:18px;font-weight:300!important" @click="createNewPost()"> <!-- <button type="button" class="btn btn-outline-primary btn-block font-weight-bold" style="border-top-left-radius: 18px;border-bottom-left-radius:18px;font-size:18px;font-weight:300!important" @click="createNewPost()">
<i class="fal fa-arrow-circle-up mr-1"></i> {{ $t('navmenu.compose') }} Post <i class="fal fa-arrow-circle-up mr-1"></i> {{ $t('navmenu.composePost') }}
</button> --> </button> -->
<router-link to="/i/web/compose" class="btn btn-primary btn-block font-weight-bold"> <router-link to="/i/web/compose" class="btn btn-primary btn-block font-weight-bold">
<i class="fal fa-arrow-circle-up mr-1"></i> {{ $t('navmenu.compose') }} Post <i class="fal fa-arrow-circle-up mr-1"></i> {{ $t('navmenu.composePost') }}
</router-link> </router-link>
<button type="button" class="btn btn-outline-primary dropdown-toggle dropdown-toggle-split" data-toggle="dropdown" aria-expanded="false"> <button type="button" class="btn btn-outline-primary dropdown-toggle dropdown-toggle-split" data-toggle="dropdown" aria-expanded="false">
<span class="sr-only">Toggle Dropdown</span> <span class="sr-only">Toggle Dropdown</span>

View file

@ -43,10 +43,11 @@
"notifications": "Notifications", "notifications": "Notifications",
"groups": "Groups", "groups": "Groups",
"stories": "Stories", "stories": "Stories",
"uiSettings": "UI Settings",
"profile": "Profile", "profile": "Profile",
"drive": "Drive", "drive": "Drive",
"settings": "Settings", "settings": "Settings",
"compose": "Create New", "composePost": "Create New Post",
"logout": "Logout", "logout": "Logout",
"about": "About", "about": "About",
"help": "Help", "help": "Help",
@ -56,6 +57,12 @@
"poweredByPixelfed": "Powered by Pixelfed", "poweredByPixelfed": "Powered by Pixelfed",
"backToPreviousDesign": "Go back to previous design" "backToPreviousDesign": "Go back to previous design"
}, },
"landing": {
"about": "About",
"directory": "Directory",
"explore": "Explore",
"header": "Decentralized photo sharing social media powered by {pixelfedLink}"
},
"uiSettings": { "uiSettings": {
"title": "UI Settings", "title": "UI Settings",
"theme": "Theme", "theme": "Theme",
@ -104,8 +111,12 @@
}, },
"profile": { "profile": {
"posts": "Posts", "posts": "Posts",
"followers": "Followers", "followers": {
"following": "Following", "caption": "Follower | Followers"
},
"following": {
"caption": "Following"
},
"admin": "Admin", "admin": "Admin",
"collections": "Collections", "collections": "Collections",
"follow": "Follow", "follow": "Follow",
@ -181,5 +192,9 @@
"sendingReport": "Sending report", "sendingReport": "Sending report",
"thanksMsg": "Thanks for the report, people like you help keep our community safe!", "thanksMsg": "Thanks for the report, people like you help keep our community safe!",
"contactAdminMsg": "If you'd like to contact an administrator about this post or report" "contactAdminMsg": "If you'd like to contact an administrator about this post or report"
},
"sidebar": {
"followingCount": "Following",
"followersCount": "Followers"
} }
} }

View file

@ -10,6 +10,7 @@
"shared": "Partag\u00e9", "shared": "Partag\u00e9",
"shares": "Partages", "shares": "Partages",
"unshare": "Ne plus partager", "unshare": "Ne plus partager",
"bookmark": "Signet",
"cancel": "Annuler", "cancel": "Annuler",
"copyLink": "Copier le lien", "copyLink": "Copier le lien",
"delete": "Supprimer", "delete": "Supprimer",
@ -19,6 +20,10 @@
"other": "Autre", "other": "Autre",
"readMore": "En savoir plus", "readMore": "En savoir plus",
"success": "Op\u00e9ration r\u00e9ussie", "success": "Op\u00e9ration r\u00e9ussie",
"proceed": "Continuer",
"next": "Suivant",
"close": "Fermer",
"clickHere": "cliquez ici",
"sensitive": "Sensible", "sensitive": "Sensible",
"sensitiveContent": "Contenu sensible", "sensitiveContent": "Contenu sensible",
"sensitiveContentWarning": "Le contenu de ce message peut \u00eatre sensible" "sensitiveContentWarning": "Le contenu de ce message peut \u00eatre sensible"
@ -42,7 +47,7 @@
"profile": "Mon profil", "profile": "Mon profil",
"drive": "M\u00e9diath\u00e8que", "drive": "M\u00e9diath\u00e8que",
"settings": "Param\u00e8tres", "settings": "Param\u00e8tres",
"compose": "R\u00e9daction", "composePost": "R\u00e9diger",
"logout": "D\u00e9connexion", "logout": "D\u00e9connexion",
"about": "\u00c0 propos", "about": "\u00c0 propos",
"help": "Aide", "help": "Aide",
@ -52,6 +57,12 @@
"poweredByPixelfed": "Propuls\u00e9 par Pixelfed", "poweredByPixelfed": "Propuls\u00e9 par Pixelfed",
"backToPreviousDesign": "Basculer vers l'ancienne interface" "backToPreviousDesign": "Basculer vers l'ancienne interface"
}, },
"landing": {
"about": "\u00c0 propos",
"directory": "Bottin",
"explore": "D\u00e9couverte",
"header": "Le partage de photos, dans un m\u00e9dia social d\u00e9centralis\u00e9, propuls\u00e9 par {pixelfedLink}"
},
"uiSettings": { "uiSettings": {
"title": "Param\u00e8tres visuels", "title": "Param\u00e8tres visuels",
"theme": "Jeu de couleurs", "theme": "Jeu de couleurs",
@ -89,7 +100,8 @@
"groupPost": "publication de groupe", "groupPost": "publication de groupe",
"modlog": "journal de mod\u00e9ration", "modlog": "journal de mod\u00e9ration",
"post": "publication", "post": "publication",
"story": "story" "story": "story",
"noneFound": "Aucune notification"
}, },
"post": { "post": {
"shareToFollowers": "Partager avec ses abonn\u00e9\u00b7e\u00b7s", "shareToFollowers": "Partager avec ses abonn\u00e9\u00b7e\u00b7s",
@ -99,8 +111,12 @@
}, },
"profile": { "profile": {
"posts": "Publications", "posts": "Publications",
"followers": "Abonn\u00e9\u00b7e\u00b7s", "followers": {
"following": "Abonnements", "caption": "Abonn\u00e9\u00b7e | Abonn\u00e9\u00b7e\u00b7s"
},
"following": {
"caption": "Abonnement | Abonnements"
},
"admin": "Administrateur\u00b7rice", "admin": "Administrateur\u00b7rice",
"collections": "Collections", "collections": "Collections",
"follow": "S'abonner", "follow": "S'abonner",
@ -158,9 +174,27 @@
"add": "Ajouter une Story" "add": "Ajouter une Story"
}, },
"timeline": { "timeline": {
"peopleYouMayKnow": "Connaissances potentielles" "peopleYouMayKnow": "Connaissances potentielles",
"onboarding": {
"welcome": "Bienvenue",
"thisIsYourHomeFeed": "Voici votre fil personnel, qui offre les publications de comptes suivis, en ordre chronologique.",
"letUsHelpYouFind": "Laissez-nous vous pr\u00e9senter des gens qui vont vous int\u00e9resser",
"refreshFeed": "Mise \u00e0 jour de mon fil"
}
}, },
"hashtags": { "hashtags": {
"emptyFeed": "Aucune publication associ\u00e9e \u00e0 ce mot-clic!" "emptyFeed": "Aucune publication associ\u00e9e \u00e0 ce mot-clic!"
},
"report": {
"report": "Signaler",
"selectReason": "Signaler en tant que",
"reported": "Signal\u00e9",
"sendingReport": "Envoi du signalement",
"thanksMsg": "Merci de votre signalement; vous contribuez \u00e0 la s\u00e9curit\u00e9 de notre communaut\u00e9!",
"contactAdminMsg": "Si vous d\u00e9sirez discuter de ce signalement avec un\u00b7e admnistrateur\u00b7trice"
},
"sidebar": {
"followingCount": "Abonnement|Abonnements",
"followersCount": "Abonn\u00e9\u00b7e|Abonn\u00e9\u00b7e\u00b7s"
} }
} }

View file

@ -54,12 +54,13 @@ return [
'notifications' => 'Notifications', 'notifications' => 'Notifications',
'groups' => 'Groups', 'groups' => 'Groups',
'stories' => 'Stories', 'stories' => 'Stories',
'uiSettings' => 'UI Settings',
// Self links // Self links
'profile' => 'Profile', 'profile' => 'Profile',
'drive' => 'Drive', 'drive' => 'Drive',
'settings' => 'Settings', 'settings' => 'Settings',
'compose' => 'Create New', 'composePost' => 'Create New Post',
'logout' => 'Logout', 'logout' => 'Logout',
// Nav footer // Nav footer
@ -73,6 +74,13 @@ return [
// Temporary links // Temporary links
'backToPreviousDesign' => 'Go back to previous design' 'backToPreviousDesign' => 'Go back to previous design'
], ],
'landing' => [
'about' => 'About',
'directory' => 'Directory',
'explore' => 'Explore',
'header' => 'Decentralized photo sharing social media powered by {pixelfedLink}',
],
'uiSettings' => [ 'uiSettings' => [
'title' => 'UI Settings', 'title' => 'UI Settings',
@ -130,8 +138,12 @@ return [
'profile' => [ 'profile' => [
'posts' => 'Posts', 'posts' => 'Posts',
'followers' => 'Followers', 'followers' => [
'following' => 'Following', 'caption' => 'Follower | Followers',
],
'following' => [
'caption' => 'Following',
],
'admin' => 'Admin', 'admin' => 'Admin',
'collections' => 'Collections', 'collections' => 'Collections',
'follow' => 'Follow', 'follow' => 'Follow',
@ -221,4 +233,8 @@ return [
'contactAdminMsg' => 'If you\'d like to contact an administrator about this post or report', 'contactAdminMsg' => 'If you\'d like to contact an administrator about this post or report',
], ],
'sidebar' => [
'followingCount' => 'Following',
'followersCount' => 'Followers'
]
]; ];

View file

@ -13,7 +13,7 @@ return [
'shared' => 'Partagé', 'shared' => 'Partagé',
'shares' => 'Partages', 'shares' => 'Partages',
'unshare' => 'Ne plus partager', 'unshare' => 'Ne plus partager',
'bookmark' => 'Signet',
'cancel' => 'Annuler', 'cancel' => 'Annuler',
'copyLink' => 'Copier le lien', 'copyLink' => 'Copier le lien',
'delete' => 'Supprimer', 'delete' => 'Supprimer',
@ -23,6 +23,10 @@ return [
'other' => 'Autre', 'other' => 'Autre',
'readMore' => 'En savoir plus', 'readMore' => 'En savoir plus',
'success' => 'Opération réussie', 'success' => 'Opération réussie',
'proceed' => 'Continuer',
'next' => 'Suivant',
'close' => 'Fermer',
'clickHere' => 'cliquez ici',
'sensitive' => 'Sensible', 'sensitive' => 'Sensible',
'sensitiveContent' => 'Contenu sensible', 'sensitiveContent' => 'Contenu sensible',
@ -55,7 +59,7 @@ return [
'profile' => 'Mon profil', 'profile' => 'Mon profil',
'drive' => 'Médiathèque', 'drive' => 'Médiathèque',
'settings' => 'Paramètres', 'settings' => 'Paramètres',
'compose' => 'Rédaction', 'composePost' => 'Rédiger',
'logout' => 'Déconnexion', 'logout' => 'Déconnexion',
// Nav footer // Nav footer
@ -70,6 +74,13 @@ return [
'backToPreviousDesign' => 'Basculer vers l\'ancienne interface' 'backToPreviousDesign' => 'Basculer vers l\'ancienne interface'
], ],
'landing' => [
'about' => 'À propos',
'directory' => 'Bottin',
'explore' => 'Découverte',
'header' => 'Des images partagées de manière décentralisée grâce au média social {pixelfedLink}',
],
'uiSettings' => [ 'uiSettings' => [
'title' => 'Paramètres visuels', 'title' => 'Paramètres visuels',
'theme' => 'Jeu de couleurs', 'theme' => 'Jeu de couleurs',
@ -114,7 +125,8 @@ return [
'modlog' => 'journal de modération', 'modlog' => 'journal de modération',
'post' => 'publication', 'post' => 'publication',
'story' => 'story', 'story' => 'story',
], 'noneFound' => 'Aucune notification'
],
'post' => [ 'post' => [
'shareToFollowers' => 'Partager avec ses abonné·e·s', 'shareToFollowers' => 'Partager avec ses abonné·e·s',
@ -125,8 +137,12 @@ return [
'profile' => [ 'profile' => [
'posts' => 'Publications', 'posts' => 'Publications',
'followers' => 'Abonné·e·s', 'followers' => [
'following' => 'Abonnements', 'caption' => 'Abonné·e | Abonné·e·s',
],
'following' => [
'caption' => 'Abonnement | Abonnements',
],
'admin' => 'Administrateur·rice', 'admin' => 'Administrateur·rice',
'collections' => 'Collections', 'collections' => 'Collections',
'follow' => 'S\'abonner', 'follow' => 'S\'abonner',
@ -193,11 +209,28 @@ return [
], ],
'timeline' => [ 'timeline' => [
'peopleYouMayKnow' => 'Connaissances potentielles' 'peopleYouMayKnow' => 'Connaissances potentielles',
'onboarding' => [
'welcome' => 'Bienvenue',
'thisIsYourHomeFeed' => 'Voici votre fil personnel, qui offre les publications de comptes suivis, en ordre chronologique.',
'letUsHelpYouFind' => 'Laissez-nous vous présenter des gens qui vont vous intéresser',
'refreshFeed' => 'Mise à jour de mon fil',
],
], ],
'hashtags' => [ 'hashtags' => [
'emptyFeed' => 'Aucune publication associée à ce mot-clic!' 'emptyFeed' => 'Aucune publication associée à ce mot-clic!'
], ],
'report' => [
'report' => 'Signaler',
'selectReason' => 'Signaler en tant que',
'reported' => 'Signalé',
'sendingReport' => 'Envoi du signalement',
'thanksMsg' => 'Merci de votre signalement; vous contribuez à la sécurité de notre communauté!',
'contactAdminMsg' => 'Si vous désirez discuter de ce signalement avec un·e admnistrateur·trice',
],
'sidebar' => [
'followingCount' => 'Abonnement|Abonnements',
'followersCount' => 'Abonné·e|Abonné·e·s'
]
]; ];