Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP - traduction by #983

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions front/src/components/Write/Versions.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ function Version ({ articleId, compareTo, readOnly, selectedVersion, v }) {
{!renaming && <p>
{v.owner && (
<span className={styles.author}>
by <strong>{v.owner.displayName || v.owner.username}</strong>
</span>
{t('article.by.text', {owner: v.owner.displayName || v.owner.username})}
</span>
)}
<span className={styles.momentsAgo}>
<TimeAgo date={v.updatedAt}/>
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 @@ -128,7 +128,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 @@ -35,7 +35,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 @@ -89,5 +89,6 @@
"workspace.createForm.descriptionField": "Description",
"workspace.createForm.colorField": "Color",
"workspace.createForm.buttonTitle": "Create a new workspace",
"workspace.createForm.buttonText": "Create"
"workspace.createForm.buttonText": "Create",
"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 @@ -35,7 +35,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 @@ -87,5 +87,6 @@
"workspace.createForm.descriptionField": "Description",
"workspace.createForm.colorField": "Couleur",
"workspace.createForm.buttonTitle": "Créer un nouvel espace de travail",
"workspace.createForm.buttonText": "Créer"
"workspace.createForm.buttonText": "Créer",
"workingVersion.by.text": "par"
}