Skip to content

Commit e132ccd

Browse files
authored
Merge pull request #5 from CodeDead/feature/dutch
feat: added Dutch, refactoring
2 parents d595659 + 9197084 commit e132ccd

5 files changed

Lines changed: 87 additions & 4 deletions

File tree

src/contexts/MainContextProvider/index.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React, { createContext, useReducer } from 'react';
22
import MainReducer from '../../reducers/MainReducer';
33
import enUs from '../../languages/en_us.json';
4+
import nlNl from '../../languages/nl_nl.json';
45

56
const languageIndex = localStorage.languageIndex ? parseFloat(localStorage.languageIndex) : 0;
67
const themeIndex = localStorage.themeIndex ? parseFloat(localStorage.themeIndex) : 0;
@@ -18,6 +19,7 @@ const initState = {
1819
languageIndex,
1920
languages: [
2021
enUs,
22+
nlNl,
2123
],
2224
themeIndex,
2325
themeType,
@@ -36,7 +38,6 @@ const initState = {
3638
noClosed,
3739
sort,
3840
scanResults: null,
39-
scanType: 'tcp',
4041
};
4142

4243
export const MainContext = createContext(initState);

src/languages/en_us.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121
"aboutText": "Advanced PortChecker was created by DeadLine.\n\nTheme: MUI\nLicense: GPLv3\nVersion: {x}\n\nCopyright © {year} CodeDead",
2222
"license": "License",
2323
"website": "Website",
24-
"tcp": "TCP",
25-
"udp": "UDP",
2624
"autoUpdate": "Automatically check for updates",
2725
"colorOnDark": "Color on dark theme",
2826
"language": "Language",

src/languages/nl_nl.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": "Instellingen",
4+
"donate": "Doneren",
5+
"about": "Over",
6+
"scan": "Scannen",
7+
"address": "Adres",
8+
"startingPort": "Start poort",
9+
"endingPort": "Eind poort",
10+
"port": "Poort",
11+
"hostName": "Hostnaam",
12+
"portStatus": "Poortstatus",
13+
"scanDate": "Scandatum",
14+
"error": "Fout",
15+
"ok": "OK",
16+
"updateAvailable": "Update beschikbaar",
17+
"newVersion": "Versie {x} is nu beschikbaar. Wenst u deze versie te downloaden?",
18+
"information": "Informatie",
19+
"download": "Download",
20+
"cancel": "Annuleren",
21+
"aboutText": "Advanced PortChecker werd gemaakt door DeadLine.\n\nThema: MUI\nLicentie: GPLv3\nVersie: {x}\n\nCopyright © {year} CodeDead",
22+
"license": "Licentie",
23+
"website": "Website",
24+
"autoUpdate": "Automatisch updaten",
25+
"colorOnDark": "Kleur op donkere achtergrond",
26+
"language": "Taal",
27+
"yes": "Ja",
28+
"no": "Nee",
29+
"confirmation": "Bevestiging",
30+
"confirmResetSettings": "Bent u zeker dat u de instellingen wenst te resetten?",
31+
"default": "Standaard",
32+
"defaultThemeDescription": "Het standaard thema.",
33+
"lightBlue": "Lichtblauw",
34+
"lightBlueDescription": "Licht om aan te raken.",
35+
"red": "Rood",
36+
"redDescription": "Het edgy houden.",
37+
"green": "Groen",
38+
"greenDescription": "Het beste van de natuur.",
39+
"lightGreen": "Lichtgroen",
40+
"lightGreenDescription": "Het gras is altijd groener.",
41+
"purple": "Paars",
42+
"purpleDescription": "De kleur van royalty.",
43+
"deepPurple": "Donkerpaars",
44+
"deepPurpleDescription": "Indien paars niet genoeg is.",
45+
"grey": "Grijs",
46+
"greyDescription": "Blijf niet te lang wakker.",
47+
"themeStyle": "Thema stijl",
48+
"light": "Licht",
49+
"dark": "Donker",
50+
"orange": "Oranje",
51+
"orangeThemeDescription": "Op z'n Nederlands.",
52+
"deepOrange": "Donkeroranje",
53+
"deepOrangeDescription": "De kleur van de zonsondergang.",
54+
"amber": "Amber",
55+
"amberDescription": "Geen selectief geel.",
56+
"brown": "Bruin",
57+
"brownDescription": "De kleur van de aarde.",
58+
"pink": "Roze",
59+
"pinkDescription": "De kleur van de liefde.",
60+
"indigo": "Indigo",
61+
"indigoDescription": "De kleur van de nacht.",
62+
"cyan": "Cyaan",
63+
"cyanDescription": "De kleur van de oceaan.",
64+
"teal": "Teal",
65+
"tealDescription": "De kleur van de tropen.",
66+
"lime": "Lime",
67+
"limeDescription": "De kleur van de limoen.",
68+
"yellow": "Geel",
69+
"yellowDescription": "De kleur van de zon.",
70+
"checkForUpdates": "Controleer op updates",
71+
"reset": "Reset",
72+
"theme": "Thema",
73+
"threads": "Threads",
74+
"timeout": "Timeout (milliseconden)",
75+
"hideClosedPorts": "Verberg gesloten poorten",
76+
"sort": "Sorteer volgens poortnummer",
77+
"clear": "Wissen",
78+
"open": "Open",
79+
"closed": "Gesloten",
80+
"exportType": "Export type",
81+
"export": "Exporteren",
82+
"exportSuccessful": "Exporteren succesvol"
83+
}

src/routes/Settings/index.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ const Settings = () => {
198198
label={language.language}
199199
>
200200
<MenuItem value={0}>English</MenuItem>
201+
<MenuItem value={1}>Nederlands</MenuItem>
201202
</Select>
202203
</FormControl>
203204
</FormGroup>

src/utils/Updater/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const Updater = (os, currentVersion) => {
4545
};
4646

4747
return new Promise((resolve, reject) => {
48-
fetch('https://codedead.com/Software/Advanced%PortChecker/version.json')
48+
fetch('https://codedead.com/Software/Advanced%20PortChecker/version.json')
4949
.then((res) => {
5050
if (!res.ok) {
5151
throw Error(res.statusText);

0 commit comments

Comments
 (0)