Skip to content

Commit

Permalink
interface en-fr: try to fix errors in workingVersion.jsx and Versions…
Browse files Browse the repository at this point in the history
….jsx - translation by/par
  • Loading branch information
RochDLY authored and ggrossetie committed Oct 9, 2024
1 parent 014afe1 commit d4cc13b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion front/src/components/Write/Versions.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function Version ({ articleId, compareTo, readOnly, selectedVersion, v }) {
{!renaming && <p>
{v.owner && (
<span className={styles.author}>
by <strong>{v.owner.displayName || v.owner.username}</strong>
{t('article.by.text', {owner: v.owner.displayName || v.owner.username})}
</span>
)}
<span className={styles.momentsAgo}>
Expand Down
2 changes: 1 addition & 1 deletion front/src/components/Write/WorkingVersion.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export default function WorkingVersion ({ articleInfos, live, selectedVersion, m
<section>
<div className={styles.meta}>
<ul className={styles.byLine}>
<li className={styles.owners}>by {articleOwnerAndContributors.join(', ')}</li>
<li className={styles.owners}>{t('workingVersion.by.text')} {articleOwnerAndContributors.join(', ')}</li>
<li className={styles.version}>
<ArticleVersion version={live.version}/>
</li>
Expand Down
5 changes: 3 additions & 2 deletions front/src/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"article.versions.title": "Versions",
"article.workspaces.title": "Workspaces",
"article.tags.title": "Tags",
"article.by.text": "by",
"article.by.text": "by {{owner}}",
"article.deleteModal.title": "Delete an article",
"article.deleteModal.confirmMessage": "Are you sure you want to delete this article?",
"article.deleteModal.contributorsRemovalNote": "If you delete this article, contributors won't have access to this article anymore.",
Expand Down Expand Up @@ -177,5 +177,6 @@
"workingVersion.stateUiProps.savedText": "Last saved",
"workingVersion.stateUiProps.savingText": "Saving",
"workingVersion.stateUiProps.saveErrorText": "Error",
"workingVersion.spanWorkingCopy.text": "working copy"
"workingVersion.spanWorkingCopy.text": "working copy",
"workingVersion.by.text": "by"
}
5 changes: 3 additions & 2 deletions front/src/locales/fr/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"article.versions.title": "Versions",
"article.workspaces.title": "Espaces de travail",
"article.tags.title": "Étiquettes",
"article.by.text": "par",
"article.by.text": "par {{owner}}",
"article.deleteModal.title": "Supprimer un article",
"article.deleteModal.confirmMessage": "Êtes-vous sûr de vouloir supprimer cet article ?",
"article.deleteModal.contributorsRemovalNote": "Si vous supprimez cet article, les contributeurs ne pourront plus accéder à celui-ci.",
Expand Down Expand Up @@ -175,5 +175,6 @@
"workingVersion.stateUiProps.savedText": "Dernière sauvegarde",
"workingVersion.stateUiProps.savingText": "En cours de sauvegarde",
"workingVersion.stateUiProps.saveErrorText": "Erreur",
"workingVersion.spanWorkingCopy.text": "version de travail"
"workingVersion.spanWorkingCopy.text": "version de travail",
"workingVersion.by.text": "par"
}

0 comments on commit d4cc13b

Please sign in to comment.