Skip to content
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: 2 additions & 1 deletion src/contexts/MainContextProvider/index.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, { createContext, useReducer } from 'react';
import MainReducer from '../../reducers/MainReducer';
import enUs from '../../languages/en_us.json';
import nlNl from '../../languages/nl_nl.json';

const languageIndex = localStorage.languageIndex ? parseFloat(localStorage.languageIndex) : 0;
const themeIndex = localStorage.themeIndex ? parseFloat(localStorage.themeIndex) : 0;
Expand All @@ -18,6 +19,7 @@ const initState = {
languageIndex,
languages: [
enUs,
nlNl,
],
themeIndex,
themeType,
Expand All @@ -36,7 +38,6 @@ const initState = {
noClosed,
sort,
scanResults: null,
scanType: 'tcp',
};

export const MainContext = createContext(initState);
Expand Down
2 changes: 0 additions & 2 deletions src/languages/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
"aboutText": "Advanced PortChecker was created by DeadLine.\n\nTheme: MUI\nLicense: GPLv3\nVersion: {x}\n\nCopyright © {year} CodeDead",
"license": "License",
"website": "Website",
"tcp": "TCP",
"udp": "UDP",
"autoUpdate": "Automatically check for updates",
"colorOnDark": "Color on dark theme",
"language": "Language",
Expand Down
83 changes: 83 additions & 0 deletions src/languages/nl_nl.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
{
"applicationName": "Advanced PortChecker",
"settings": "Instellingen",
"donate": "Doneren",
"about": "Over",
"scan": "Scannen",
"address": "Adres",
"startingPort": "Start poort",
"endingPort": "Eind poort",
"port": "Poort",
"hostName": "Hostnaam",
"portStatus": "Poortstatus",
"scanDate": "Scandatum",
"error": "Fout",
"ok": "OK",
"updateAvailable": "Update beschikbaar",
"newVersion": "Versie {x} is nu beschikbaar. Wenst u deze versie te downloaden?",
"information": "Informatie",
"download": "Download",
"cancel": "Annuleren",
"aboutText": "Advanced PortChecker werd gemaakt door DeadLine.\n\nThema: MUI\nLicentie: GPLv3\nVersie: {x}\n\nCopyright © {year} CodeDead",
"license": "Licentie",
"website": "Website",
"autoUpdate": "Automatisch updaten",
"colorOnDark": "Kleur op donkere achtergrond",
"language": "Taal",
"yes": "Ja",
"no": "Nee",
"confirmation": "Bevestiging",
"confirmResetSettings": "Bent u zeker dat u de instellingen wenst te resetten?",
"default": "Standaard",
"defaultThemeDescription": "Het standaard thema.",
"lightBlue": "Lichtblauw",
"lightBlueDescription": "Licht om aan te raken.",
"red": "Rood",
"redDescription": "Het edgy houden.",
"green": "Groen",
"greenDescription": "Het beste van de natuur.",
"lightGreen": "Lichtgroen",
"lightGreenDescription": "Het gras is altijd groener.",
"purple": "Paars",
"purpleDescription": "De kleur van royalty.",
"deepPurple": "Donkerpaars",
"deepPurpleDescription": "Indien paars niet genoeg is.",
"grey": "Grijs",
"greyDescription": "Blijf niet te lang wakker.",
"themeStyle": "Thema stijl",
"light": "Licht",
"dark": "Donker",
"orange": "Oranje",
"orangeThemeDescription": "Op z'n Nederlands.",
"deepOrange": "Donkeroranje",
"deepOrangeDescription": "De kleur van de zonsondergang.",
"amber": "Amber",
"amberDescription": "Geen selectief geel.",
"brown": "Bruin",
"brownDescription": "De kleur van de aarde.",
"pink": "Roze",
"pinkDescription": "De kleur van de liefde.",
"indigo": "Indigo",
"indigoDescription": "De kleur van de nacht.",
"cyan": "Cyaan",
"cyanDescription": "De kleur van de oceaan.",
"teal": "Teal",
"tealDescription": "De kleur van de tropen.",
"lime": "Lime",
"limeDescription": "De kleur van de limoen.",
"yellow": "Geel",
"yellowDescription": "De kleur van de zon.",
"checkForUpdates": "Controleer op updates",
"reset": "Reset",
"theme": "Thema",
"threads": "Threads",
"timeout": "Timeout (milliseconden)",
"hideClosedPorts": "Verberg gesloten poorten",
"sort": "Sorteer volgens poortnummer",
"clear": "Wissen",
"open": "Open",
"closed": "Gesloten",
"exportType": "Export type",
"export": "Exporteren",
"exportSuccessful": "Exporteren succesvol"
}
1 change: 1 addition & 0 deletions src/routes/Settings/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ const Settings = () => {
label={language.language}
>
<MenuItem value={0}>English</MenuItem>
<MenuItem value={1}>Nederlands</MenuItem>
</Select>
</FormControl>
</FormGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/utils/Updater/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const Updater = (os, currentVersion) => {
};

return new Promise((resolve, reject) => {
fetch('https://codedead.com/Software/Advanced%PortChecker/version.json')
fetch('https://codedead.com/Software/Advanced%20PortChecker/version.json')
.then((res) => {
if (!res.ok) {
throw Error(res.statusText);
Expand Down