Skip to content

Commit

Permalink
Merge pull request #184 from terreng/spanish
Browse files Browse the repository at this point in the history
Spanish translations
  • Loading branch information
terreng authored Feb 9, 2024
2 parents e2af183 + 7c2a615 commit 4172735
Show file tree
Hide file tree
Showing 22 changed files with 2,430 additions and 812 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Simple Web Server

[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)
[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)

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

Expand Down
18 changes: 18 additions & 0 deletions README_es.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Simple Web Server

[Download](https://simplewebserver.org/download/) • [Documentation](https://simplewebserver.org/docs/options.html) • [Build from source](https://simplewebserver.org/docs/build.html)

Crear servidores web locales con solo unos pocos clicks, con una interfaz fácil de usar.

Fácil de configurar
Cambie las opciones del servidor con solo unos pocos clicks.

Ejecute múltiples & en segundo plano
Ejecute múltiples servidores web al mismo tiempo, incluso cuando la app esta cerrada.

Aplicaciones de Una Página
Active mod rewrite para SPAs con un solo click.

![screenshots](https://user-images.githubusercontent.com/11605395/163694811-46e3b79c-a187-4c78-b622-6250a6d5d9d0.jpeg)

Simple Web Server is a continuation of [Web Server for Chrome](https://github.com/kzahel/web-server-chrome).
2 changes: 1 addition & 1 deletion README_fr-FR.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Simple Web Server

[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)
[Download](https://simplewebserver.org/download/) • [Documentation](https://simplewebserver.org/docs/options.html) • [Build from source](https://simplewebserver.org/docs/build.html)

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

Expand Down
12 changes: 5 additions & 7 deletions build/notarize.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
require('dotenv').config();
const { notarize } = require('electron-notarize');
const { notarize } = require('@electron/notarize');

exports.default = async function notarizing(context) {

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

return await notarize({
appBundleId: 'org.simplewebserver.simplewebserver',
tool: "notarytool",
appPath: `${appOutDir}/${appName}.app`,
appleId: process.env.APPLEID,
appleIdPassword: "@keychain:ElectronSigningAppleID",
teamId: process.env.TEAMID,
ascProvider: process.env.TEAMID
keychainProfile: "SWS_Electron_Signing"
});

// xcrun notarytool store-credentials "SWS_Electron_Signing" --apple-id "[email protected]" --team-id "RXXXXXXXXX" --password "foos-bars-bazz-bang"
};
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
<div style="
text-align: center;
padding-bottom: 10px;
">{lang.version} 1.2.9&nbsp; • &nbsp;<a href="javascript:openLicenses()" style="
">{lang.version} <span id="version_number"></span>&nbsp; • &nbsp;<a href="javascript:openLicenses()" style="
color: var(--text-primary);
text-decoration: none;
">MIT License</a></div>
Expand Down
16 changes: 13 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const version = 1002009;
const install_source = "website"; //"website" | "microsoftstore" | "macappstore"
const install_source = process.mas ? "macappstore" : (process.windowsStore ? "microsoftstore" : "website");
const {app, BrowserWindow, ipcMain, Menu, Tray, dialog, shell, nativeTheme} = require('electron');
const {networkInterfaces} = require('os');
var chokidar;
Expand Down Expand Up @@ -440,6 +439,10 @@ function getLanguage() {
language = "en";
break;
}
if (system_langs[i].indexOf("es") == 0) {
language = "es";
break;
}
if (system_langs[i].indexOf("ru") == 0) {
language = "ru";
break;
Expand Down Expand Up @@ -493,7 +496,7 @@ function createWindow() {
mainWindow.webContents.on('did-finish-load', () => {
mainWindow.webContentsLoaded = true;
lastIps = getIPs();
mainWindow.webContents.send('message', {"type": "init", "config": config, ip: lastIps, install_source: install_source, plugins: plugin.getInstalledPlugins(), platform: process.platform});
mainWindow.webContents.send('message', {"type": "init", "config": config, ip: lastIps, install_source: install_source, plugins: plugin.getInstalledPlugins(), platform: process.platform, version: app.getVersion()});
if (update_info) {
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});
}
Expand Down Expand Up @@ -719,6 +722,13 @@ function checkForUpdates() {
return;
}
last_update_check_skipped = false;

const parts = app.getVersion().split('.').map(part => parseInt(part, 10));
const major = parts[0] * 1000000;
const minor = parts[1] * 1000;
const patch = parts[2];
let version = major + minor + patch;

let req = global.https.request({
hostname: 'simplewebserver.org',
port: 443,
Expand Down
Loading

0 comments on commit 4172735

Please sign in to comment.