diff options
author | Matan Kushner <hello@matchai.me> | 2019-12-24 16:54:29 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-24 16:54:29 -0500 |
commit | 75b103a44a63b789f2b06eba4968a573217f46d7 (patch) | |
tree | 139354ac12111e8fd379d253f782665d3aeef174 /docs/fr-FR | |
parent | ecc87543350d7addba9fc2539986808ae07106dc (diff) |
docs(i18n): Update translations (#735)
Diffstat (limited to 'docs/fr-FR')
-rw-r--r-- | docs/fr-FR/README.md | 55 | ||||
-rw-r--r-- | docs/fr-FR/config/README.md | 87 | ||||
-rw-r--r-- | docs/fr-FR/faq/README.md | 44 | ||||
-rw-r--r-- | docs/fr-FR/guide/README.md | 18 | ||||
-rw-r--r-- | docs/fr-FR/presets/README.md | 61 |
5 files changed, 167 insertions, 98 deletions
diff --git a/docs/fr-FR/README.md b/docs/fr-FR/README.md index 4e582187b..7b00f87d4 100644 --- a/docs/fr-FR/README.md +++ b/docs/fr-FR/README.md @@ -32,51 +32,36 @@ footer: ISC licencié | Copyright © 2019-present Starship Contributors 1. Installer le binaire **starship** : - **[Télécharger les archives des binaires précompilés](https://github.com/starship/starship/releases)** si vous n'utilisez pas une des plateformes citées ci-dessous. + #### Installer la dernière version - #### Homebrew + Avec Shell: ```sh - $ brew install starship + curl -fsSL https://starship.rs/install.sh | bash ``` - #### Rust (v1.38 ou plus) + #### Installer via le gestionnaire de paquets - ```sh - $ cargo install starship - ``` - - - #### Arch Linux (AUR) - - Starship is disponible sur AUR sous le nom `starship`. Installer le avec `yay` ou votre client AUR favori. - - ```sh - $ yay -S starship - ``` - - - #### Nix (non stable) + Avec [Homebrew](https://brew.sh/): ```sh - $ nix-env --install starship + brew install starship ``` + Avec [Scoop](https://scoop.sh): - #### Termux - - ```sh - $ pkg install starship + ```powershell + scoop install starship ``` -1. Add the init script to your shell's config file: +1. Ajouter le script d'initialization à la fiche config de votre shell: #### Bash - Add the following to the end of `~/.bashrc`: + Ajouter ce qui suit à la fin de `~/.bashrc`: ```sh # ~/.bashrc @@ -87,7 +72,7 @@ footer: ISC licencié | Copyright © 2019-present Starship Contributors #### Fish - Add the following to the end of `~/.config/fish/config.fish`: + Ajoute ce qui suit à la fin de `~/.config/fish/config.fish`: ```sh # ~/.config/fish/config.fish @@ -98,7 +83,7 @@ footer: ISC licencié | Copyright © 2019-present Starship Contributors #### Zsh - Add the following to the end of `~/.zshrc`: + Ajouter ce qui suit à la fin de `~/.zshrc`: ```sh # ~/.zshrc @@ -109,9 +94,21 @@ footer: ISC licencié | Copyright © 2019-present Starship Contributors #### Powershell - Add the following to the end of `~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1` (or `~/.config/powershell/Microsoft.PowerShell_profile.ps1` on -Nix): + Ajouter ce qui suit à la fin de `~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1` (ou `~/.config/powershell/Microsoft.PowerShell_profile.ps1` sur -Nix): ```sh # ~\Documents\PowerShell\Profile.ps1 + Invoke-Expression (&starship init powershell) ``` + + + #### Ion + + Ajouter ce qui suit à la fin de `~/.config/ion/initrc`: + + ```sh + # ~/.config/ion/initrc + + eval $(starship init ion) + ``` diff --git a/docs/fr-FR/config/README.md b/docs/fr-FR/config/README.md index d13405771..f309621a7 100644 --- a/docs/fr-FR/config/README.md +++ b/docs/fr-FR/config/README.md @@ -126,9 +126,10 @@ The `aws` module shows the current AWS region and profile. This is based on `AWS | Variable | Default | Description | | ----------------- | --------------- | --------------------------------------------------------------------------- | | `symbol` | `"☁️ "` | The symbol used before displaying the current AWS profile. | +| `displayed_items` | `all` | Choose which item to display. Possible values: [`all`, `profile`, `region`] | +| `region_aliases` | | Table of region aliases to display in addition to the AWS name. | | `style` | `"bold yellow"` | The style for the module. | | `disabled` | `false` | Disables the `AWS` module. | -| `displayed_items` | `all` | Choose which item to display. Possible values: [`all`, `profile`, `region`] | ### Example @@ -139,6 +140,9 @@ The `aws` module shows the current AWS region and profile. This is based on `AWS style = "bold blue" symbol = "🅰 " displayed_items = "region" +[aws.region_aliases] +ap-southeast-2 = "au" +us-east-1 = "va" ``` ## Battery @@ -255,12 +259,13 @@ Bash users who need preexec-like functionality can use [rcaloras's bash_preexec ### Options -| Variable | Default | Description | -| ---------- | --------------- | ---------------------------------------------------------- | -| `min_time` | `2` | Shortest duration to show time for. | -| `prefix` | `took` | Prefix to display immediately before the command duration. | -| `style` | `"bold yellow"` | The style for the module. | -| `disabled` | `false` | Disables the `cmd_duration` module. | +| Variable | Default | Description | +| ------------------- | --------------- | ---------------------------------------------------------- | +| `min_time` | `2_000` | Shortest duration to show time for (in milliseconds). | +| `show_milliseconds` | `false` | Show milliseconds in addition to seconds for the duration. | +| `prefix` | `took` | Prefix to display immediately before the command duration. | +| `style` | `"bold yellow"` | The style for the module. | +| `disabled` | `false` | Disables the `cmd_duration` module. | ### Example @@ -268,7 +273,7 @@ Bash users who need preexec-like functionality can use [rcaloras's bash_preexec # ~/.config/starship.toml [cmd_duration] -min_time = 4 +min_time = 500 prefix = "underwent " ``` @@ -276,7 +281,7 @@ prefix = "underwent " The `conda` module shows the current conda environment, if `$CONDA_DEFAULT_ENV` is set. -::: tip +::: remarque This does not suppress conda's own prompt modifier, you may want to run `conda config --set changeps1 False`. @@ -421,9 +426,9 @@ truncation_symbol = "" ## Git Commit -The `git_commit` module shows the active branch of the repo in your current directory. +The `git_commit` module shows the current commit hash of the repo in your current directory. -::: tip +::: remarque This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file. @@ -645,7 +650,7 @@ threshold = 4 Displays the current Kubernetes context name and, if set, the namespace from the kubeconfig file. The namespace needs to be set in the kubeconfig file, this can be done via `kubectl config set-context starship-cluster --namespace astronaut`. If the `$KUBECONFIG` env var is set the module will use that if not it will use the `~/.kube/config`. -::: tip +::: remarque This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file. @@ -698,8 +703,8 @@ The `nix_shell` module shows the nix-shell environment. The module will be shown | Variable | Default | Description | | ------------ | ------------ | ---------------------------------- | | `use_name` | `false` | Display the name of the nix-shell. | -| `impure_msg` | `impure` | Customize the "impure" msg. | -| `pure_msg` | `pure` | Customize the "pure" msg. | +| `impure_msg` | `"impure"` | Customize the "impure" msg. | +| `pure_msg` | `"pure"` | Customize the "pure" msg. | | `style` | `"bold red"` | The style for the module. | | `disabled` | `false` | Disables the `nix_shell` module. | @@ -715,13 +720,37 @@ impure_msg = "impure shell" pure_msg = "pure shell" ``` +## Java + +The `java` module shows the currently installed version of Java. The module will be shown if any of the following conditions are met: + +- The current directory contains a `pom.xml`, `build.gradle`, `build.gradle.kts` or `build.sbt` file +- The current directory contains a file with the `.java`, `.class` or `.jar` extension + +### Options + +| Variable | Default | Description | +| ---------- | -------------- | ------------------------------------------------------ | +| `symbol` | `"☕ "` | The symbol used before displaying the version of Java. | +| `style` | `"dimmed red"` | The style for the module. | +| `disabled` | `false` | Disables the `java` module. | + +### Example + +```toml +# ~/.config/starship.toml + +[java] +symbol = "🌟 " +``` + ## Memory Usage The `memory_usage` module shows current system memory and swap usage. By default the swap usage is displayed if the total system swap is non-zero. -::: tip +::: remarque This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file. @@ -753,30 +782,6 @@ separator = "/" style = "bold dimmed green" ``` -## Java - -The `java` module shows the currently installed version of Java. The module will be shown if any of the following conditions are met: - -- The current directory contains a `pom.xml`, `build.gradle` or `build.sbt` file -- The current directory contains a file with the `.java`, `.class` or `.jar` extension - -### Options - -| Variable | Default | Description | -| ---------- | -------------- | ------------------------------------------------------ | -| `symbol` | `"☕ "` | The symbol used before displaying the version of Java. | -| `style` | `"dimmed red"` | The style for the module. | -| `disabled` | `false` | Disables the `java` module. | - -### Example - -```toml -# ~/.config/starship.toml - -[java] -symbol = "🌟 " -``` - ## NodeJS The `nodejs` module shows the currently installed version of NodeJS. The module will be shown if any of the following conditions are met: @@ -970,7 +975,7 @@ symbol = "🏎💨 " The `time` module shows the current **local** time. The `format` configuration value is used by the [`chrono`](https://crates.io/crates/chrono) crate to control how the time is displayed. Take a look [at the chrono strftime docs](https://docs.rs/chrono/0.4.7/chrono/format/strftime/index.html) to see what options are available. -::: tip +::: remarque This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file. @@ -983,8 +988,8 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y | `use_12hr` | `false` | Enables 12 hour formatting | | `format` | see below | The [chrono format string](https://docs.rs/chrono/0.4.7/chrono/format/strftime/index.html) used to format the time. | | `style` | `bold yellow` | The style for the module time | -| `disabled` | `true` | Disables the `time` module. | | `utc_time_offset` | `local` | Sets the UTC offset to use. Range from -24 < x < 24. Allows floats to accommodate 30/45 minute timezone offsets. | +| `disabled` | `true` | Disables the `time` module. | If `use_12hr` is `true`, then `format` defaults to `"%r"`. Otherwise, it defaults to `"%T"`. Manually setting `format` will override the `use_12hr` setting. diff --git a/docs/fr-FR/faq/README.md b/docs/fr-FR/faq/README.md index 6d5674bec..4c44b4f25 100644 --- a/docs/fr-FR/faq/README.md +++ b/docs/fr-FR/faq/README.md @@ -1,45 +1,45 @@ -# FAQ +# Foire aux questions -## What is the configuration used in the demo GIF? +## Quelle est la configuration utilisée dans le GIF de démonstration ? -- **Terminal Emulator**: [iTerm2](https://iterm2.com/) - - **Theme**: Minimal - - **Color Scheme**: [Snazzy](https://github.com/sindresorhus/iterm2-snazzy) - - **Font**: [Fira Code](https://github.com/tonsky/FiraCode) -- **Shell**: [Fish Shell](https://fishshell.com/) - - **Configuration**: [matchai's Dotfiles](https://github.com/matchai/dotfiles/blob/master/.config/fish/config.fish) - - **Prompt**: [Starship](https://starship.rs/) +- **Émulateur de terminal**: [iTerm2](https://iterm2.com/) + - **Thème** : Minimal + - **Palette de couleurs**: [Snazzy](https://github.com/sindresorhus/iterm2-snazzy) + - **Police d'écriture**: [Fira Code](https://github.com/tonsky/FiraCode) +- **Shell** : [Fish Shell](https://fishshell.com/) + - **Configuration**: [Dotfiles de matchai](https://github.com/matchai/dotfiles/blob/master/.config/fish/config.fish) + - **Invite de commande**: [Starship](https://starship.rs/) -## Do `prompt_order` and `<module>.disabled` do the same thing? +## Est-ce que `prompt_order` et `<module>.disabled` font la même chose ? -Yes, they can both be used to disable modules in the prompt. If all you plan to do is disable modules, `<module>.disabled` is the preferred way to do so for these reasons: +Oui, ils peuvent tous deux être utilisés pour désactiver les modules dans l'invite de commande. Si tout ce que vous prévoyez de faire est de désactiver les modules, `<module>.disabled` est le meilleur moyen de le faire pour ces raisons : -- Disabling modules is more explicit than omitting them from the prompt_order -- Newly created modules will be added to the prompt as Starship is updated +- Désactiver les modules est plus explicite que de les omettre dans le prompt_order +- Les modules nouvellement créés seront ajoutés à l'invite de commande au fur et à mesure que Starship sera mis à jour -## The docs say Starship is cross-shell, but it doesn't support X shell. Why? +## La doc dit que Starship est cross-shell, mais il ne supporte pas X shell. Pourquoi ? -The way Starship is built, it should be possible to add support for virtually any shell. The starship binary is stateless and shell agnostic, so as long as your shell supports prompt customization and shell expansion, Starship can be used. +Étant donné la façon dont Starship est construit, il devrait être possible d'ajouter le support pour pratiquement n'importe quel shell. Le binaire de Starship est sans état et agnostique, donc tant que votre shell supporte la personnalisation rapide et l'expansion du shell, Starship peut être utilisé. -Here's a small example getting Starship working with bash: +Voici un petit exemple pour que Starship fonctionne avec bash : ```sh -# Get the status code from the last command executed +# Récupère le code d'état de la dernière commande exécutée STATUS=$? -# Get the number of jobs running. +# Récupère le nombre de tâches en cours d'exécution. NUM_JOBS=$(jobs -p | wc -l) -# Set the prompt to the output of `starship prompt` +# Définit l'invite de commande `starship prompt` PS1="$(starship prompt --status=$STATUS --jobs=NUM_JOBS)" ``` -The [Bash implementation](https://github.com/starship/starship/blob/master/src/init/starship.bash) built into Starship is slightly more complex to allow for advanced features like the [Command Duration module](https://starship.rs/config/#Command-Duration) and to ensure that Starship is compatible with pre-installed Bash configurations. +[L'implémentation Bash](https://github.com/starship/starship/blob/master/src/init/starship.bash) intégrée dans Starship est légèrement plus complexe pour permettre des fonctionnalités avancées comme le [module Durée de commande](https://starship.rs/config/#Command-Duration) et pour s'assurer que Starship est compatible avec les configurations Bash préinstallées. -For a list of all flags accepted by `starship prompt`, use the following command: +Pour une liste de tous les flags acceptés par `starship prompt`, utilisez la commande suivante : ```sh starship prompt --help ``` -The prompt will use as much context as is provided, but no flags are "required". +L'invite de commande utilisera toutes les données contextuelles fournies, mais aucun indicateur n'est "requis". diff --git a/docs/fr-FR/guide/README.md b/docs/fr-FR/guide/README.md index 267bccf35..3ab04db59 100644 --- a/docs/fr-FR/guide/README.md +++ b/docs/fr-FR/guide/README.md @@ -7,7 +7,7 @@ <p align="center"> <a href="https://github.com/starship/starship/actions" ><img - src="https://github.com/starship/starship/workflows/Main%20workflow/badge.svg" + src="https://github.com/starship/starship/workflows/Main%20workflow/badge.svg?branch=master&event=push" alt="GitHub Actions état du workflow" /></a> <a href="https://crates.io/crates/starship" ><img src="https://img.shields.io/crates/v/starship" alt="Version Crates.io" /></a> @@ -21,7 +21,7 @@ src="https://img.shields.io/discord/567163873606500352?logo=discord" alt="Discuter sur Discord" /></a> <!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section --> -<a href="#contributors"><img src="https://img.shields.io/badge/all%20contributors-58-orange" alt="Tous les contributeurs"></a> +<a href="#contributors"><img src="https://img.shields.io/badge/all%20contributors-63-orange" alt="Tous les contributeurs"></a> <!-- ALL-CONTRIBUTORS-BADGE:END --> </p> @@ -58,7 +58,7 @@ <h1></h1> -<p align="center"> Starship est un environnement minimal, extrêmement rapide et extrêmement personnalisable pour n'importe quelle terminale shell!<br /> Le prompt affiche les informations dont vous avez besoin pendant que vous travaillez, tout en restant élégant et hors du chemin. <p> +<p align="center"> Starship est l'invite de commande minimale, ultra rapide et extrêmement personnalisable pour n'importe quel shell !<br /> Il vous indique les informations dont vous avez besoin pendant que vous travaillez, tout en restant élégant et discret. <p> <p align="center"> <br> @@ -69,7 +69,7 @@ ## 🍬 Fonctionnalités -- Le symbole de prompt devient rouge si la dernière commande a retournée un code différent de zéro +- Le symbole de prompt devient rouge si la dernière commande a retourné un code différent de zéro - Version actuelle de Go (`🐹`) - Version actuelle de Java (`☕`) - Version actuelle de Node.js (`⬢`) @@ -82,7 +82,7 @@ - npm (Node.js) - cargo (Rust) - poetry (Python) - - compositeur (PHP) + - composer (PHP) - Branche Git actuelle et affichage "riche" du statut du dépôt: - `=` — Conflits dans les changements - `⇡` — En avance sur la branche distante @@ -181,12 +181,13 @@ ``` - #### Powershell + #### PowerShell Ajouter ce qui suit à la fin de `~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1` (ou `~/.config/powershell/Microsoft.PowerShell_profile.ps1` sur -Nix): ```sh # ~\Documents\PowerShell\Profile.ps1 + Invoke-Expression (&starship init powershell) ``` @@ -303,6 +304,11 @@ Merci à ces personnes merveilleuses ([clé emojis](https://allcontributors.org/ <tr> <td align="center"><a href="https://github.com/BuggStream"><img src="https://avatars1.githubusercontent.com/u/51194915?v=4" width="100px;" alt="" /><br /><sub><b>BuggStream</b></sub></a><br /><a href="https://github.com/starship/starship/commits?author=BuggStream" title="Code">💻</a> <a href="https://github.com/starship/starship/commits?author=BuggStream" title="Documentation">📖</a></td> <td align="center"><a href="http://jonstodle.com"><img src="https://avatars1.githubusercontent.com/u/1719761?v=4" width="100px;" alt="" /><br /><sub><b>Jon Grythe Stødle</b></sub></a><br /><a href="https://github.com/starship/starship/commits?author=jonstodle" title="Code">💻</a> <a href="https://github.com/starship/starship/commits?author=jonstodle" title="Tests">⚠️</a></td> + <td align="center"><a href="https://jasonet.co"><img src="https://avatars1.githubusercontent.com/u/10660468?v=4" width="100px;" alt="" /><br /><sub><b>Jason Etcovitch</b></sub></a><br /><a href="https://github.com/starship/starship/issues?q=author%3AJasonEtco" title="Bug reports">🐛</a></td> + <td align="center"><a href="https://github.com/etiennemabille"><img src="https://avatars3.githubusercontent.com/u/11175343?v=4" width="100px;" alt="" /><br /><sub><b>Etienne Mabille</b></sub></a><br /><a href="https://github.com/starship/starship/commits?author=etiennemabille" title="Code">💻</a></td> + <td align="center"><a href="https://github.com/Scotsguy"><img src="https://avatars3.githubusercontent.com/u/20385973?v=4" width="100px;" alt="" /><br /><sub><b>AppleTheGolden</b></sub></a><br /><a href="https://github.com/starship/starship/commits?author=Scotsguy" title="Code">💻</a> <a href="https://github.com/starship/starship/commits?author=Scotsguy" title="Documentation">📖</a></td> + <td align="center"><a href="http://sda.io"><img src="https://avatars1.githubusercontent.com/u/481987?v=4" width="100px;" alt="" /><br /><sub><b>Mike Sampson</b></sub></a><br /><a href="https://github.com/starship/starship/commits?author=mfs" title="Code">💻</a> <a href="https://github.com/starship/starship/commits?author=mfs" title="Documentation">📖</a> <a href="https://github.com/starship/starship/commits?author=mfs" title="Tests">⚠️</a></td> + <td align="center"><a href="https://sternentstehung.de"><img src="https://avatars3.githubusercontent.com/u/36575275?v=4" width="100px;" alt="" /><br /><sub><b>Dominik Braun</b></sub></a><br /><a href="https://github.com/starship/starship/commits?author=dominikbraun" title="Code">💻</a></td> </tr> </table> diff --git a/docs/fr-FR/presets/README.md b/docs/fr-FR/presets/README.md new file mode 100644 index 000000000..03c1a6385 --- /dev/null +++ b/docs/fr-FR/presets/README.md @@ -0,0 +1,61 @@ +# Presets + +Here is a collection of community-submitted configuration presets for Starship. If you have a preset to share, please [submit a PR](https://github.com/starship/starship/edit/master/docs/presets/README.md) updating this file! 😊 + +## Nerd Font Symbols + +This preset doesn't change anything except for the symbols used for each module. If emojis aren't your thing, this might catch your eye! + +![Screenshot of Nerd Font Symbols preset](/presets/nerd-font-symbols.png) + +### Pré-requis + +- A [Nerd Font](https://www.nerdfonts.com/) installed and enabled in your terminal (the example uses Fira Code Nerd Font) + +### Configuration + +```toml +[aws] +symbol = " " + +[battery] +full_symbol = "" +charging_symbol = "" +discharging_symbol = "" + +[conda] +symbol = " " + +[git_branch] +symbol = " " + +[golang] +symbol = " " + +[hg_branch] +symbol = " " + +[java] +symbol = " " + +[memory_usage] +symbol = " " + +[nodejs] +symbol = " " + +[package] +symbol = " " + +[php] +symbol = " " + +[python] +symbol = " " + +[ruby] +symbol = " " + +[rust] +symbol = " " +``` |