Skip to content

Commit 4172735

Browse files
authored
Merge pull request #184 from terreng/spanish
Spanish translations
2 parents e2af183 + 7c2a615 commit 4172735

22 files changed

+2430
-812
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Simple Web Server
22

3-
[Download](https://simplewebserver.org/download/) • [Documentation](https://simplewebserver.org/docs/options.html) • [Build from source](https://simplewebserver.org/docs/build.html) • [Chinese (中文简介)](/README_zh-CN.md) • [Russian (Русский)](/README_ru.md) • [Japanese (日本語)](/README_ja.md) • [French (Français)](/README_fr-FR.md)
3+
[Download](https://simplewebserver.org/download/) • [Documentation](https://simplewebserver.org/docs/options.html) • [Build from source](https://simplewebserver.org/docs/build.html) • [Spanish (Español)](/README_es.md) • [Chinese (中文简介)](/README_zh-CN.md) • [Russian (Русский)](/README_ru.md) • [Japanese (日本語)](/README_ja.md) • [French (Français)](/README_fr-FR.md)
44

55
Create local web servers in just a few clicks with an easy to use interface. Built with Electron.
66

README_es.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Simple Web Server
2+
3+
[Download](https://simplewebserver.org/download/) • [Documentation](https://simplewebserver.org/docs/options.html) • [Build from source](https://simplewebserver.org/docs/build.html)
4+
5+
Crear servidores web locales con solo unos pocos clicks, con una interfaz fácil de usar.
6+
7+
Fácil de configurar
8+
Cambie las opciones del servidor con solo unos pocos clicks.
9+
10+
Ejecute múltiples & en segundo plano
11+
Ejecute múltiples servidores web al mismo tiempo, incluso cuando la app esta cerrada.
12+
13+
Aplicaciones de Una Página
14+
Active mod rewrite para SPAs con un solo click.
15+
16+
![screenshots](https://user-images.githubusercontent.com/11605395/163694811-46e3b79c-a187-4c78-b622-6250a6d5d9d0.jpeg)
17+
18+
Simple Web Server is a continuation of [Web Server for Chrome](https://github.com/kzahel/web-server-chrome).

README_fr-FR.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Simple Web Server
22

3-
[Download](https://simplewebserver.org/zh-CN/download/) • [Documentation](https://simplewebserver.org/zh-CN/docs/options.html) • [Build from source](https://simplewebserver.org/zh-CN/docs/build.html)
3+
[Download](https://simplewebserver.org/download/) • [Documentation](https://simplewebserver.org/docs/options.html) • [Build from source](https://simplewebserver.org/docs/build.html)
44

55
Créez des serveurs Web locaux en quelques clics avec une interface facile à utiliser.
66

build/notarize.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
require('dotenv').config();
2-
const { notarize } = require('electron-notarize');
1+
const { notarize } = require('@electron/notarize');
32

43
exports.default = async function notarizing(context) {
54

@@ -12,11 +11,10 @@ exports.default = async function notarizing(context) {
1211
console.log("Notarizing...");
1312

1413
return await notarize({
15-
appBundleId: 'org.simplewebserver.simplewebserver',
14+
tool: "notarytool",
1615
appPath: `${appOutDir}/${appName}.app`,
17-
appleId: process.env.APPLEID,
18-
appleIdPassword: "@keychain:ElectronSigningAppleID",
19-
teamId: process.env.TEAMID,
20-
ascProvider: process.env.TEAMID
16+
keychainProfile: "SWS_Electron_Signing"
2117
});
18+
19+
// xcrun notarytool store-credentials "SWS_Electron_Signing" --apple-id "[email protected]" --team-id "RXXXXXXXXX" --password "foos-bars-bazz-bang"
2220
};

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
<div style="
101101
text-align: center;
102102
padding-bottom: 10px;
103-
">{lang.version} 1.2.9&nbsp; • &nbsp;<a href="javascript:openLicenses()" style="
103+
">{lang.version} <span id="version_number"></span>&nbsp; • &nbsp;<a href="javascript:openLicenses()" style="
104104
color: var(--text-primary);
105105
text-decoration: none;
106106
">MIT License</a></div>

index.js

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
const version = 1002009;
2-
const install_source = "website"; //"website" | "microsoftstore" | "macappstore"
1+
const install_source = process.mas ? "macappstore" : (process.windowsStore ? "microsoftstore" : "website");
32
const {app, BrowserWindow, ipcMain, Menu, Tray, dialog, shell, nativeTheme} = require('electron');
43
const {networkInterfaces} = require('os');
54
var chokidar;
@@ -440,6 +439,10 @@ function getLanguage() {
440439
language = "en";
441440
break;
442441
}
442+
if (system_langs[i].indexOf("es") == 0) {
443+
language = "es";
444+
break;
445+
}
443446
if (system_langs[i].indexOf("ru") == 0) {
444447
language = "ru";
445448
break;
@@ -493,7 +496,7 @@ function createWindow() {
493496
mainWindow.webContents.on('did-finish-load', () => {
494497
mainWindow.webContentsLoaded = true;
495498
lastIps = getIPs();
496-
mainWindow.webContents.send('message', {"type": "init", "config": config, ip: lastIps, install_source: install_source, plugins: plugin.getInstalledPlugins(), platform: process.platform});
499+
mainWindow.webContents.send('message', {"type": "init", "config": config, ip: lastIps, install_source: install_source, plugins: plugin.getInstalledPlugins(), platform: process.platform, version: app.getVersion()});
497500
if (update_info) {
498501
mainWindow.webContents.send('message', {"type": "update", "url": update_info.url, "text": update_info.text, "attributes": update_info.attributes, "version": update_info.version, "ignored": update_info.ignored});
499502
}
@@ -719,6 +722,13 @@ function checkForUpdates() {
719722
return;
720723
}
721724
last_update_check_skipped = false;
725+
726+
const parts = app.getVersion().split('.').map(part => parseInt(part, 10));
727+
const major = parts[0] * 1000000;
728+
const minor = parts[1] * 1000;
729+
const patch = parts[2];
730+
let version = major + minor + patch;
731+
722732
let req = global.https.request({
723733
hostname: 'simplewebserver.org',
724734
port: 443,

0 commit comments

Comments
 (0)