Skip to content

Commit

Permalink
fix(i18n): correction traduction by dans l'éditeur de texte (#1034)
Browse files Browse the repository at this point in the history
* interface en-fr: try to fix errors in workingVersion.jsx and Versions.jsx - translation by/par

* traduction en-fr: ajout d'une clef json pour corriger la traduction d'un mot dans Versions.jsx

---------

Co-authored-by: RochDLY <[email protected]>
  • Loading branch information
ggrossetie and RochDLY authored Oct 9, 2024
1 parent a4618b1 commit 6c659cf
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 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('version.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
4 changes: 3 additions & 1 deletion front/src/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
"article.sendCopy.errorNotification": "Unable to send a copy of the article: {{errMessage}}",
"version.editingSessionEnded.text": "Editing session ended",
"version.collaborativeSessionEnded.text": "Collaborative session ended",
"version.by.text": "by {{owner}}",
"collaborativeSessionAction.launchCollaborativeSessionButton.title": "Collaborative editing",
"soloSessionAction.launchSoloSessionButton.title": "Edit article",
"modal.cancelButton.text": "Cancel",
Expand Down Expand Up @@ -177,5 +178,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"
}
4 changes: 3 additions & 1 deletion front/src/locales/fr/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
"article.sendCopy.errorNotification": "Impossible d'envoyer une copie de l'article: {{errMessage}}",
"version.editingSessionEnded.text": "Session d'édition terminée",
"version.collaborativeSessionEnded.text": "Session collaborative terminée",
"version.by.text": "par {{owner}}",
"collaborativeSessionAction.launchCollaborativeSessionButton.title": "Édition collaborative",
"soloSessionAction.launchSoloSessionButton.title": "Modifier l'article",
"modal.cancelButton.text": "Annuler",
Expand Down Expand Up @@ -175,5 +176,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 6c659cf

Please sign in to comment.