Skip to content
New issue

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

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

Already on GitHub? # to your account

fix: corrected French translations in Markdown guide and i18n file #263

Merged
Merged
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
84 changes: 44 additions & 40 deletions exampleSite/content/fr/posts/markdown-syntax/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,74 +49,78 @@ Vous pouvez également inclure des images provenant de sources externes.

![Image](https://source.unsplash.com/random/600x400/?tech)

## Blockquotes
## Citations

The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a `footer` or `cite` element, and optionally with in-line changes such as annotations and abbreviations.
L'élément de citation représente un contenu cité d'une autre source, éventuellement avec une attribution qui doit être dans un élément `footer` ou `cite`, et éventuellement avec des modifications en ligne telles que des annotations et des abréviations.

### Blockquote without attribution

> You can use Markdown syntax within a blockquote, like **bold**, _italics_, [links](https://gohugo.io/), `code`.
### Citation sans attribution

### Blockquote with attribution
> Vous pouvez utiliser la syntaxe Markdown dans une citation, comme **gras**, _italique_, [liens](https://gohugo.io/) ou `code`.

> Don't communicate by sharing memory, share memory by communicating.<br>
### Citation avec attribution

> Ne communiquez pas en partageant de la mémoire, partagez la mémoire en communiquant.<br>
> — <cite>Rob Pike[^1]</cite>


[^1]: The above quote is excerpted from Rob Pike's [talk](https://www.youtube.com/watch?v=PAAkCSZUG1c) during Gopherfest, November 18, 2015.
[^1]: La citation ci-dessus est extraite du [discours](https://www.youtube.com/watch?v=PAAkCSZUG1c) de Rob Pike durant Gopherfest, le 18 novembre 2015.

## Tableaux

## Tables
Les tableaux ne font pas partie de la spécification Markdown de base, mais Hugo les prend en charge nativement.

Tables aren't part of the core Markdown spec, but Hugo supports supports them out-of-the-box.

Name | Age
Nom | Age
--------|------
Bob | 27
Alice | 23

### Markdown within tables
### Markdown dans les tableaux

| Italics | Bold | Code |
| Italique | Gras | Code |
| -------- | -------- | ------ |
| *italics* | **bold** | `code` |
| *Italique* | **Gras** | `code` |

## Code Blocks
## Blocs de code

### Code block with backticks
### Bloc de code avec des accents graves

```html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Example HTML5 Document</title>
<title>Exemple de document HTML5</title>
</head>
<body>
<p>Test</p>
</body>
</html>
```

### Code block indented with four spaces
### Bloc de code indenté avec quatre espaces

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Example HTML5 Document</title>
<title>Exemple de document HTML5</title>
</head>
<body>
<p>Test</p>
</body>
</html>

### Code block with Hugo's internal highlight shortcode
### Bloc de code avec le shortcode interne de mise en évidence d'Hugo

{{< highlight html >}}
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Example HTML5 Document</title>
<title>Exemple de document HTML5</title>
</head>
<body>
<p>Test</p>
Expand All @@ -126,40 +130,40 @@ Tables aren't part of the core Markdown spec, but Hugo supports supports them ou

### Inline code

Use the backtick to refer to a `variable` within a sentence.
Utilisez l'accent grave pour faire référence à une `variable` dans une phrase.

## List Types
## Types de listes

### Ordered List
### Liste ordonnée

1. First item
2. Second item
3. Third item
1. Premier élément
2. Deuxième élément
3. Troisième élément

### Unordered List
### Liste non ordonnée

* List item
* Another item
* And another item
* Premier élément
* Deuxième élément
* Troisième élément

### Nested list
### Liste imbriquée

* Fruit
* Apple
* Fruits
* Pomme
* Orange
* Banana
* Dairy
* Milk
* Cheese
* Banane
* Produits laitiers
* Lait
* Fromage

## Other Elements — abbr, sub, sup, kbd, mark
## Autres éléments — abbr, sub, sup, kbd, mark

<abbr title="Graphics Interchange Format">GIF</abbr> is a bitmap image format.
<abbr title="Graphics Interchange Format">GIF</abbr> est un format d'image bitmap.

H<sub>2</sub>O

X<sup>n</sup> + Y<sup>n</sup> = Z<sup>n</sup>

Press <kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>Delete</kbd> to end the session.
Appuyez sur <kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>Delete</kbd> pour terminer la session.

Most <mark>salamanders</mark> are nocturnal, and hunt for insects, worms, and other small creatures.
La plupart des <mark>salamandres</mark> sont nocturnes et chassent des insectes, des vers et d'autres petites créatures.
8 changes: 3 additions & 5 deletions exampleSite/hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -243,17 +243,15 @@ theme = "hugo-blog-awesome"

############################## French language ################################
[Languages.fr-fr]
languageName = "french"
languageName = "French"
languageCode = "fr-fr"
contentDir = "content/fr"
weight = 1

[Languages.fr-fr.menu]
[[Languages.fr-fr.menu.main]]
# The page reference (pageRef) is useful for menu highlighting
# When pageRef is set, setting `url` is optional; it will be used as a fallback if the page is not found.
pageRef="/"
name = 'Acceuil'
name = 'Accueil'
url = '/'
weight = 10
[[Languages.fr-fr.menu.main]]
Expand All @@ -273,7 +271,7 @@ theme = "hugo-blog-awesome"
# Setting it to 'auto' applies the color scheme based on the visitor's device color preference.If you don't specify anything, ignore this parameter, or leave it blank,
# the default value is set to 'auto'.
# You can take a look at layouts/index.html for more information.
description = "Thème de blog Hugo minimal avec mode clair et sombre"
description = "Thème minimal pour blog Hugo avec prise en charge des modes clair et sombre"
mainSections = ['posts']
toc = true # set to false to disable table of contents 'globally'
tocOpen = false # set to true to open table of contents by default
Expand Down
6 changes: 3 additions & 3 deletions i18n/fr-fr.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## HOME ##
- id: "home.home"
translation: "Acceuil"
translation: "Accueil"

- id: "home.recent_posts"
translation: "Articles récents"
Expand All @@ -21,7 +21,7 @@

## ERRORS ##
- id: "errors.404"
translation: "404 PAGE NON TROUVÉ"
translation: "404 PAGE NON TROUVÉE"

- id: "errors.404_description"
translation: "Vous avez suivi une route qui n'existe pas."
translation: "Vous avez suivi une adresse qui n'existe pas."
Loading