Skip to content

Commit 4991cd8

Browse files
committed
feat: added French, minor English typo fixes
1 parent e132ccd commit 4991cd8

File tree

6 files changed

+95
-7
lines changed

6 files changed

+95
-7
lines changed

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"height": 750,
6767
"resizable": true,
6868
"title": "Advanced PortChecker",
69-
"width": 1000
69+
"width": 1100
7070
}
7171
]
7272
}

src/contexts/MainContextProvider/index.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import React, { createContext, useReducer } from 'react';
22
import MainReducer from '../../reducers/MainReducer';
33
import enUs from '../../languages/en_us.json';
44
import nlNl from '../../languages/nl_nl.json';
5+
import frFr from '../../languages/fr_fr.json';
56

67
const languageIndex = localStorage.languageIndex ? parseFloat(localStorage.languageIndex) : 0;
78
const themeIndex = localStorage.themeIndex ? parseFloat(localStorage.themeIndex) : 0;
@@ -19,6 +20,7 @@ const initState = {
1920
languageIndex,
2021
languages: [
2122
enUs,
23+
frFr,
2224
nlNl,
2325
],
2426
themeIndex,

src/languages/en_us.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
"about": "About",
66
"scan": "Scan",
77
"address": "Address",
8-
"startingPort": "Starting Port",
9-
"endingPort": "Ending Port",
8+
"startingPort": "Starting port",
9+
"endingPort": "Ending port",
1010
"port": "Port",
11-
"hostName": "Host Name",
12-
"portStatus": "Port Status",
13-
"scanDate": "Scan Date",
11+
"hostName": "Hostname",
12+
"portStatus": "Port status",
13+
"scanDate": "Scan date",
1414
"error": "Error",
1515
"ok": "OK",
1616
"updateAvailable": "Update available",

src/languages/fr_fr.json

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
{
2+
"applicationName": "Advanced PortChecker",
3+
"settings": "Réglages",
4+
"donate": "Faire un don",
5+
"about": "À propos",
6+
"scan": "Scanner",
7+
"address": "Adresse",
8+
"startingPort": "Démarrage du port TCP",
9+
"endingPort": "Fin du port TCP",
10+
"port": "Port",
11+
"hostName": "Nom d'hôte",
12+
"portStatus": "Statut du port",
13+
"scanDate": "Date d'analyse",
14+
"error": "Erreur",
15+
"ok": "D'ACCORD",
16+
"updateAvailable": "Mise à jour disponible",
17+
"newVersion": "La version {x} est disponible. Voulez-vous le télécharger ?",
18+
"information": "Information",
19+
"download": "Télécharger",
20+
"cancel": "Annuler",
21+
"aboutText": "Advanced PortChecker a été créé par DeadLine.\n\nThème : MUI\nLicence : GPLv3\nVersion : {x}\n\nCopyright © {year} CodeDead",
22+
"license": "Licence",
23+
"website": "Site web",
24+
"autoUpdate": "Rechercher automatiquement les mises à jour",
25+
"colorOnDark": "Couleur sur thème sombre",
26+
"language": "Langue",
27+
"yes": "Oui",
28+
"no": "Non",
29+
"confirmation": "Confirmation",
30+
"confirmResetSettings": "Êtes-vous sûr de vouloir réinitialiser tous les paramètres ?",
31+
"default": "Défaut",
32+
"defaultThemeDescription": "Le thème par défaut.",
33+
"lightBlue": "Bleu clair",
34+
"lightBlueDescription": "Léger au toucher.",
35+
"red": "Rouge",
36+
"redDescription": "Le garder nerveux.",
37+
"green": "Vert",
38+
"greenDescription": "Le meilleur de la nature.",
39+
"lightGreen": "Vert clair",
40+
"lightGreenDescription": "L'herbe est toujours plus verte.",
41+
"purple": "Violet",
42+
"purpleDescription": "Améthyste.",
43+
"deepPurple": "Violet foncé",
44+
"deepPurpleDescription": "Au cas où le violet ne suffirait pas.",
45+
"grey": "Gris",
46+
"greyDescription": "N'attendez pas.",
47+
"themeStyle": "Style de thème",
48+
"light": "Clair",
49+
"dark": "Sombre",
50+
"orange": "Orange",
51+
"orangeThemeDescription": "La couleur de la citrouille.",
52+
"deepOrange": "Orange foncé",
53+
"deepOrangeDescription": "La couleur de la mandarine.",
54+
"amber": "Ambre",
55+
"amberDescription": "La couleur de l'ambre.",
56+
"brown": "Brun",
57+
"brownDescription": "La couleur du bois.",
58+
"pink": "Rose",
59+
"pinkDescription": "La couleur de la fleur.",
60+
"indigo": "Indigo",
61+
"indigoDescription": "Est-ce une plante tropicale ?",
62+
"cyan": "Cyan",
63+
"cyanDescription": "La couleur de l'eau.",
64+
"teal": "Sarcelle",
65+
"tealDescription": "La zone colorée autour de l’œil.",
66+
"lime": "Citron vert",
67+
"limeDescription": "La couleur du citron vert.",
68+
"yellow": "Jaune",
69+
"yellowDescription": "La couleur du soleil.",
70+
"checkForUpdates": "Vérifier les mises à jour",
71+
"reset": "Réinitialiser",
72+
"theme": "Thème",
73+
"threads": "Threads",
74+
"timeout": "Délai d'attente (en millisecondes)",
75+
"hideClosedPorts": "Masquer les ports fermés",
76+
"sort": "Trier les résultats par numéro de port",
77+
"clear": "Effacer",
78+
"open": "Ouvert",
79+
"closed": "Fermé",
80+
"exportType": "Type d'exportation",
81+
"export": "Exporter",
82+
"exportSuccessful": "Exportation réussie"
83+
}

src/routes/Home/index.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ const Home = () => {
308308
pattern="[0-9]"
309309
fullWidth
310310
onChange={changeStartPort}
311+
onKeyDown={handleKeyDown}
311312
/>
312313
</Grid>
313314
<Grid item xs={12} md={6} lg={6}>
@@ -323,6 +324,7 @@ const Home = () => {
323324
max={65535}
324325
fullWidth
325326
onChange={changeEndPort}
327+
onKeyDown={handleKeyDown}
326328
/>
327329
</Grid>
328330
</Grid>

src/routes/Settings/index.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,8 @@ const Settings = () => {
198198
label={language.language}
199199
>
200200
<MenuItem value={0}>English</MenuItem>
201-
<MenuItem value={1}>Nederlands</MenuItem>
201+
<MenuItem value={1}>Français</MenuItem>
202+
<MenuItem value={2}>Nederlands</MenuItem>
202203
</Select>
203204
</FormControl>
204205
</FormGroup>

0 commit comments

Comments
 (0)