Skip to content

Translate spare words #41

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

Merged
merged 6 commits into from
Aug 1, 2023
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
3 changes: 0 additions & 3 deletions documentation/docs/02-template-syntax/02-basic-markup.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,6 @@ Un élément ou un composant peut avoir plusieurs attributs décomposés, parsem
<Widget {...things} />
```

`$$props` references all props that are passed to a component, including ones that are not declared with `export`. Using `$$props` will not perform as well as references to a specific prop because changes to any prop will cause Svelte to recheck all usages of `$$props`. But it can be useful in some cases – for example, when you don't know at compile time what props might be passed to a component.


La variable `$$props` référence toutes les props qui sont fournies à un composant, y compris celles qui ne sont pas déclarées avec `export`. Utiliser `$$props` ne sera pas aussi performant qu'utiliser une <span class="vo">[prop](/docs/sveltejs#props)</span> spécifique directement car les changements de n'importe quelle prop vont déclencher une nouvelle vérification de toutes les occurences de `$$props`. Toutefois `$$props` peut être utile dans certains cas — par exemple, lorsque vous ne savez pas à la compilation quelles props peuvent être passées au composant.

```svelte
Expand Down
2 changes: 1 addition & 1 deletion documentation/docs/07-glossary/02-web.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Le DOM relie les pages web aux scripts, fichiers de styles, ressources externes

Un _language server_ est un algorithme exécuté par un <span class="vo">[IDE](/docs/development#ide)</span>. Il permet d’exécuter les aides au développement (autocomplétion, accès rapide, liste des utilisations, etc.) adaptées à un langage de programmation. L'interface entre l'IDE et le _language server_ est défini par un protocole, le _Language Server Protocol_ (LSP).

Plus d'infos sur le [site de la documentation du LSP](https://microsoft.github.io/language-server-protocol/).
Plus d'infos sur le [site de la documentation du LSP](https://microsoft.github.io/language-server-protocol/).

## Lazy loading

Expand Down
2 changes: 1 addition & 1 deletion sites/svelte.dev/src/app.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en" class="theme-default typo-default">
<html lang="fr" class="theme-default typo-default">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
Expand Down
6 changes: 3 additions & 3 deletions sites/svelte.dev/src/lib/time.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ const o = {

export const ago = (nd, s) => {
var r = Math.round,
dir = ' ago',
dir = 'il y a ',
pl = function (v, n) {
return s === undefined ? n + ' ' + v + (n > 1 ? 's' : '') + dir : n + v.substring(0, 1);
return s === undefined ? dir + n + ' ' + v + (n > 1 ? 's' : '') : n + v.substring(0, 1);
},
ts = Date.now() - new Date(nd).getTime(),
ii;
if (ts < 0) {
ts *= -1;
dir = ' from now';
dir = 'dans ';
}
for (var i in o) {
if (r(ts) < o[i]) return pl(ii || 'm', r(ts / (o[ii] || 1)));
Expand Down
35 changes: 18 additions & 17 deletions sites/svelte.dev/src/routes/(authed)/apps/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@

async function destroy_selected() {
const confirmed = confirm(
`Are you sure you want to delete ${selected.length} ${
selected.length === 1 ? 'app' : 'apps'
}?`
`Êtes vous sûr.e de vouloir supprimer ${selected.length} ${
selected.length === 1 ? 'application' : 'applications'
} ?`
);
if (!confirmed) return;

Expand All @@ -40,7 +40,7 @@
// TODO raise an issue
// location.reload();
} else {
alert('Deletion failed');
alert('La suppression a échoué');
}

destroying = false;
Expand All @@ -51,13 +51,13 @@
</script>

<svelte:head>
<title>Your apps • Svelte</title>
<title>Vos applications • Svelte</title>
</svelte:head>

<div class="apps">
{#if data.user}
<header>
<h1>Your apps</h1>
<h1>Vos applications</h1>
<div class="user">
<img
class="avatar"
Expand All @@ -66,7 +66,7 @@
/>
<span>
{data.user.github_name || data.user.github_login}
(<a on:click|preventDefault={logout} href="/auth/logout">log out</a>)
(<a on:click|preventDefault={logout} href="/auth/logout">Se déconnecter</a>)
</span>
</div>
</header>
Expand All @@ -75,11 +75,11 @@
{#if selected.length > 0}
<button class="delete" on:click={() => destroy_selected()} disabled={destroying}>
<Icon name="delete" />
Delete {selected.length}
{selected.length === 1 ? 'app' : 'apps'}
Supprimer {selected.length}
{selected.length === 1 ? 'application' : 'applications'}
</button>

<button on:click={() => (selected = [])}>Clear selection</button>
<button on:click={() => (selected = [])}>Désélectionner les applications</button>
{:else}
<form
on:submit|preventDefault={(e) => {
Expand All @@ -89,8 +89,8 @@
>
<input
type="search"
placeholder="Search"
aria-label="Search"
placeholder="Chercher"
aria-label="Chercher"
name="search"
value={data.search}
/>
Expand All @@ -104,12 +104,12 @@
<li class:selected={selected.includes(gist.id)}>
<a href={selecting ? undefined : `/repl/${gist.id}`}>
<h2>{gist.name}</h2>
<span>updated {format(gist.updated_at || gist.created_at)}</span>
<span>Mis à jour {format(gist.updated_at || gist.created_at)}</span>
</a>

<label>
<input
aria-label="Select for delection"
aria-label="Sélectionner pour suppression"
type="checkbox"
bind:group={selected}
value={gist.id}
Expand All @@ -125,16 +125,17 @@
<a
href="/apps?offset={data.next}{data.search
? `&search=${encodeURIComponent(data.search)}`
: ''}">Next page...</a
: ''}">Page suivante...</a
>
{/if}
</div>
{:else}
<p>No apps here. <a href="/repl">Go make one!</a></p>
<p>Vous n'avez pas d'application. <a href="/repl">En créer une !</a></p>
{/if}
{:else}
<p>
Please <a on:click|preventDefault={login} href="/auth/login">log in</a> to see your saved apps.
Merci de <a on:click|preventDefault={login} href="/auth/login">vous connecter</a> pour voir vos
applications sauvegardées.
</p>
{/if}
</div>
Expand Down
4 changes: 2 additions & 2 deletions sites/svelte.dev/src/routes/(authed)/repl/[id]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@
<title>{name} • REPL • Svelte</title>

<meta name="twitter:title" content="{data.gist.name} • REPL • Svelte" />
<meta name="twitter:description" content="Cybernetically enhanced web apps" />
<meta name="Description" content="Interactive Svelte playground" />
<meta name="twitter:description" content="Applications web cybernétiquement améliorées" />
<meta name="Description" content="Bac à sable Svelte interactif" />
</svelte:head>

<div class="repl-outer {zen_mode ? 'zen-mode' : ''}">
Expand Down
23 changes: 14 additions & 9 deletions sites/svelte.dev/src/routes/(authed)/repl/[id]/AppControls.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
if (navigator.onLine) {
alert(err.message);
} else {
alert(`It looks like you're offline! Find the internet and try again`);
alert(`Vous semblez être hors ligne ! Connectez-vous et réessayez`);
}
}

Expand All @@ -91,7 +91,7 @@

async function save() {
if (!user) {
alert('Please log in before saving your app');
alert('Merci de vous connecter pour sauvegarder votre application');
return;
}
if (saving) return;
Expand Down Expand Up @@ -137,7 +137,7 @@
if (navigator.onLine) {
alert(err.message);
} else {
alert(`It looks like you're offline! Find the internet and try again`);
alert('Merci de vous connecter pour sauvegarder votre application');
}
}

Expand Down Expand Up @@ -192,15 +192,20 @@ export default app;`
<input bind:value={name} on:focus={(e) => e.target.select()} use:enter={(e) => e.target.blur()} />

<div class="buttons">
<button class="icon" on:click={() => (zen_mode = !zen_mode)} title="fullscreen editor">
<button class="icon fullscreen" on:click={() => (zen_mode = !zen_mode)} title="Plein écran">
{#if zen_mode}
<Icon name="close" />
{:else}
<Icon name="maximize" />
{/if}
</button>

<button class="icon" disabled={downloading} on:click={download} title="download zip file">
<button
class="icon"
disabled={downloading}
on:click={download}
title="Télécharger le fichier zip"
>
<Icon name="download" />
</button>

Expand All @@ -212,7 +217,7 @@ export default app;`
{/if}
</button>

<button class="icon" disabled={saving || !user} on:click={save} title="save">
<button class="icon" disabled={saving || !user} on:click={save} title="Sauvegarder">
{#if justSaved}
<Icon name="check" />
{:else}
Expand All @@ -228,7 +233,7 @@ export default app;`
{:else}
<button class="icon" on:click|preventDefault={login}>
<Icon name="log-in" />
<span>&nbsp;Log in to save</span>
<span>&nbsp;Se connecter pour sauvegarder</span>
</button>
{/if}
</div>
Expand Down Expand Up @@ -279,7 +284,7 @@ export default app;`
opacity: 0.3;
}

.icon[title^='fullscreen'] {
.icon.fullscreen {
display: none;
}

Expand Down Expand Up @@ -324,7 +329,7 @@ export default app;`
}

@media (min-width: 600px) {
.icon[title^='fullscreen'] {
.icon.fullscreen {
display: inline;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@

{#if showMenu}
<div class="menu">
<a href="/apps">Your saved apps</a>
<button on:click={logout}>Log out</button>
<a href="/apps">Vos applications sauvegardées</a>
<button on:click={logout}>Se déconnecter</button>
</div>
{/if}
</div>
Expand Down
4 changes: 2 additions & 2 deletions sites/svelte.dev/src/routes/(authed)/repl/embed/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
<svelte:head>
<title>REPL • Svelte</title>

<meta name="twitter:title" content="Svelte REPL" />
<meta name="twitter:title" content="REPL • Svelte" />
<meta name="twitter:description" content="Cybernetically enhanced web apps" />
<meta name="Description" content="Interactive Svelte playground" />
<meta name="Description" content="Bac à sable Svelte interactif" />
</svelte:head>

<div class="repl-outer">
Expand Down
4 changes: 2 additions & 2 deletions sites/svelte.dev/src/routes/docs/[slug]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
<title>{data.page?.title} • Docs • Svelte</title>

<meta name="twitter:title" content="{data.page.title} • Docs • Svelte" />
<meta name="twitter:description" content="{data.page.title} • Svelte documentation" />
<meta name="Description" content="{data.page.title} • Svelte documentation" />
<meta name="twitter:description" content="{data.page.title} • Documentation Svelte " />
<meta name="Description" content="{data.page.title} • Documentation Svelte" />
</svelte:head>

<div class="text" id="docs-content">
Expand Down
6 changes: 3 additions & 3 deletions sites/svelte.dev/src/routes/examples/[slug]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@
<svelte:head>
<title>{data.example?.title} {data.example?.title ? '•' : ''} Svelte Examples</title>

<meta name="twitter:title" content="Svelte examples" />
<meta name="twitter:title" content="Exemples Svelte" />
<meta name="twitter:description" content="Cybernetically enhanced web apps" />
<meta name="Description" content="Interactive example Svelte apps" />
<meta name="Description" content="Exemples Svelte interactifs" />
</svelte:head>

<h1 class="visually-hidden">Examples</h1>
<h1 class="visually-hidden">Exemples</h1>
<div class="examples-container" bind:clientWidth={width}>
<div class="viewport offset-{offset}">
<TableOfContents
Expand Down
4 changes: 2 additions & 2 deletions sites/svelte.dev/src/routes/nav.json/+server.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ async function get_nav_list() {

return [
{
title: 'Docs',
title: 'Documentation',
prefix: 'docs',
pathname: '/docs/introduction',
sections: processed_docs_list
},
{
title: 'Examples',
title: 'Exemples',
prefix: 'examples',
pathname: '/examples',
sections: processed_examples_list
Expand Down
6 changes: 3 additions & 3 deletions sites/svelte.dev/src/routes/search/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
</script>

<svelte:head>
<title>Search • Svelte</title>
<title>Rechercher • Svelte</title>
</svelte:head>

<main>
<h1>Search</h1>
<h1>Rechercher</h1>
<form>
<input name="q" value={data.query} placeholder="Search" spellcheck="false" />
<input name="q" value={data.query} placeholder="Rechercher" spellcheck="false" />
</form>

<SearchResults results={data.results} query={data.query} />
Expand Down
8 changes: 4 additions & 4 deletions sites/svelte.dev/src/routes/tutorial/[slug]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
<svelte:head>
<title>{selected.section.title} / {selected.chapter.title} • Svelte Tutorial</title>

<meta name="twitter:title" content="Svelte tutorial" />
<meta name="twitter:title" content="Tutoriel Svelte" />
<meta name="twitter:description" content="{selected.section.title} / {selected.chapter.title}" />
<meta name="Description" content="{selected.section.title} / {selected.chapter.title}" />
</svelte:head>
Expand All @@ -122,17 +122,17 @@
<!-- TODO disable this button when the contents of the REPL
matches the expected end result -->
<button class="show" on:click={() => (completed ? reset() : complete())}>
{completed ? 'Reset' : 'Show me'}
{completed ? 'Réinitialiser' : 'Montrez-moi'}
</button>
{/if}

{#if selected.next}
<a class="next" href="/tutorial/{selected.next.slug}">Next</a>
<a class="next" href="/tutorial/{selected.next.slug}">Suivant</a>
{/if}
</div>

<div class="improve-chapter">
<a class="no-underline" href={improve_link}>Edit this chapter</a>
<a class="no-underline" href={improve_link}>Éditer ce chapitre</a>
</div>
</div>
</div>
Expand Down