Skip to content

Commit

Permalink
Added spanish translation
Browse files Browse the repository at this point in the history
  • Loading branch information
Cathwyler committed Dec 11, 2023
1 parent ad4b1f8 commit 889984d
Show file tree
Hide file tree
Showing 3 changed files with 165 additions and 28 deletions.
121 changes: 119 additions & 2 deletions MagicRemoteService/Properties/Resources.es.resx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,124 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="String1" xml:space="preserve">
<value>fgbngfb</value>
<data name="ApplicationExit" xml:space="preserve">
<value>Dejar</value>
</data>
<data name="ApplicationSetting" xml:space="preserve">
<value>Configuraciones</value>
</data>
<data name="IPAddressBoxErrorByteEntryMessage" xml:space="preserve">
<value>{0} no es una entrada valida. Especifique un valor entre 1 y 255.</value>
</data>
<data name="IPAddressBoxErrorByteEntryTitle" xml:space="preserve">
<value>Entrada invalida</value>
</data>
<data name="IPAddressBoxErrorPasteMessage" xml:space="preserve">
<value>Está intentando copiar en este campo una dirección IP formateada incorrectamente.</value>
</data>
<data name="IPAddressBoxErrorPasteTitle" xml:space="preserve">
<value>Dirección IP formateada incorrectamente</value>
</data>
<data name="PhysicalAddressBoxErrorByteEntryMessage" xml:space="preserve">
<value>{0} no es una entrada valida. Especifique un valor entre 0x00 y 0xFF.</value>
</data>
<data name="PhysicalAddressBoxErrorByteEntryTitle" xml:space="preserve">
<value>Entrada invalida</value>
</data>
<data name="PhysicalAddressBoxErrorPasteMessage" xml:space="preserve">
<value>Está intentando copiar en este campo una dirección física formateada incorrectamente.</value>
</data>
<data name="PhysicalAddressBoxErrorPasteTitle" xml:space="preserve">
<value>Dirección fisica formateada incorrectamente</value>
</data>
<data name="SettingInputRefreshlErrorTitle" xml:space="preserve">
<value>Error al refrescar las entradas de TV</value>
</data>
<data name="SettingInputSelectErrorMessage" xml:space="preserve">
<value>Seleccione una entrada de TV.</value>
</data>
<data name="SettingInputSelectErrorTitle" xml:space="preserve">
<value>La entrada de TV no ha sido seleccionada</value>
</data>
<data name="SettingPCMacErrorMessage" xml:space="preserve">
<value>{0} no es una dirección física válida. Especifique una dirección fisica válida.</value>
</data>
<data name="SettingPCMacErrorTitle" xml:space="preserve">
<value>Dirección física invalida</value>
</data>
<data name="SettingPCSaveMessage" xml:space="preserve">
<value>Desea guardar los cambios efectuados al servicio de PC?</value>
</data>
<data name="SettingSendIPErrorMessage" xml:space="preserve">
<value>{0} no es una dirección IP valida. Especifique una dirección IP valida.</value>
</data>
<data name="SettingSendIPErrorTitle" xml:space="preserve">
<value>Dirección IP invalida</value>
</data>
<data name="SettingSubnetMaskErrorMessage" xml:space="preserve">
<value>{0} no es una mascara de subred valida. Especifique una mascara de subred valida.</value>
</data>
<data name="SettingSubnetMaskErrorTitle" xml:space="preserve">
<value>Mascara de subred invalida</value>
</data>
<data name="SettingTVInstallErrorTitle" xml:space="preserve">
<value>Error al instalar la APP en la TV</value>
</data>
<data name="SettingTVRefreshlErrorTitle" xml:space="preserve">
<value>Error al refrescar las TVs</value>
</data>
<data name="SettingTVSaveMessage" xml:space="preserve">
<value>Desea instalar los cambios realizados en la APP de la TV?</value>
</data>
<data name="SettingTVSelectErrorMessage" xml:space="preserve">
<value>Seleccione una TV</value>
</data>
<data name="SettingTVSelectErrorTitle" xml:space="preserve">
<value>La TV no ha sido seleccionada</value>
</data>
<data name="WebOSCLINotFoundExceptionMessage" xml:space="preserve">
<value>Se debe instalar el WebOS TV CLI.</value>
</data>
<data name="SettingPCSaveErrorTittle" xml:space="preserve">
<value>Error al guardar la configuración de PC</value>
</data>
<data name="SettingRemoteSaveErrorTittle" xml:space="preserve">
<value>Error al guardar la configuración remota</value>
</data>
<data name="BindActionValueKeyboard" xml:space="preserve">
<value>Teclado</value>
</data>
<data name="BindActionValueShutdown" xml:space="preserve">
<value>Apagar</value>
</data>
<data name="BindKeyboardErreur" xml:space="preserve">
<value>Error</value>
</data>
<data name="BindMouseValueLeft" xml:space="preserve">
<value>Botón izquierdo</value>
</data>
<data name="BindMouseValueMiddle" xml:space="preserve">
<value>Botón central</value>
</data>
<data name="BindMouseValueRight" xml:space="preserve">
<value>Botón derecho</value>
</data>
<data name="SettingRemoteSaveMessage" xml:space="preserve">
<value>Desea guardar los cambios realizados a la asignación de teclas del mando?</value>
</data>
<data name="SettingTVAddErrorTitle" xml:space="preserve">
<value>Error al añadir TV</value>
</data>
<data name="SettingTVModifyErrorTitle" xml:space="preserve">
<value>Error al modificar TV</value>
</data>
<data name="SettingTVRemoveErrorTitle" xml:space="preserve">
<value>Error al eliminar TV</value>
</data>
<data name="Screen" xml:space="preserve">
<value>Pantalla</value>
</data>
<data name="ScreenPrimaryDefaultUserFriendlyName" xml:space="preserve">
<value>Pantalla primaria por defecto</value>
</data>
</root>
71 changes: 45 additions & 26 deletions MagicRemoteService/Resources/TV/MagicRemoteService/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,21 +133,10 @@ function Error() {
console.error.apply(console, arguments);
}

function AppVisible() {
return document.visibilityState === "visible";
}

function AppFocus() {
return document.hasFocus() === true;
}

function KeyboardVisible() {
return window.PalmSystem.isKeyboardVisible === true;
}

function CursorVisible() {
return window.PalmSystem.cursor.visibility === true;
}
function AppVisible() {};
function AppFocus() {};
function CursorVisible() {};
function KeyboardVisible() {};

const bDebug = false;

Expand Down Expand Up @@ -357,7 +346,9 @@ function SubscriptionGetSensorData(){
LogIfDebug(oString.strGetSensorDataSubscribe);
if(oDevice.versionMajor > 2) {
} else {
window.PalmSystem.cursor.visibility = true;
CursorVisible = function() {
return true;
};
}
break;
default:
Expand All @@ -371,7 +362,9 @@ function SubscriptionGetSensorData(){
LogIfDebug(oString.strGetSensorDataFailure + " [", inError.errorText, "]");
if(oDevice.versionMajor > 2) {
} else {
window.PalmSystem.cursor.visibility = false;
CursorVisible = function() {
return false;
};
}
if(oDevice.versionMajor > 2) {
document.oneEventListener("cursorStateChange", function(inEvent) {
Expand Down Expand Up @@ -518,7 +511,6 @@ function SubscriptionDomEvent(){
});
} else {
document.addEventListener("webkitvisibilitychange", function(inEvent) {
document.visibilityState = document.webkitVisibilityState;
if(pbInputSourceStatus === null || !pbInputSourceStatus) {
} else {
if(AppVisible()) {
Expand Down Expand Up @@ -556,13 +548,17 @@ function SubscriptionDomEvent(){
document.addEventListener("keydown", function(inEvent) {
switch(inEvent.keyCode){
case 0x600:
window.PalmSystem.cursor.visibility = true;
CursorVisible = function() {
return true;
};
SendVisible({
bV: CursorVisible()
});
break;
case 0x601:
window.PalmSystem.cursor.visibility = false;
CursorVisible = function() {
return false;
};
SendVisible({
bV: CursorVisible()
});
Expand All @@ -574,10 +570,14 @@ function SubscriptionDomEvent(){
if(oDevice.versionMajor > 2) {
} else {
deKeyboard.addEventListener("focus", function(inEvent) {
window.PalmSystem.isKeyboardVisible = true;
CursorVisible = function() {
return true;
};
});
deKeyboard.addEventListener("blur", function(inEvent) {
window.PalmSystem.isKeyboardVisible = false;
CursorVisible = function() {
return false;
};
});
}
}
Expand Down Expand Up @@ -869,12 +869,31 @@ function Load(){
bLoaded = true;

if(oDevice.versionMajor > 2) {
AppVisible = function(){
return document.hidden === false;
};
AppFocus = function(){
return document.hasFocus() === true;
};
CursorVisible = function(){
return window.PalmSystem.cursor.visibility === true;
};
KeyboardVisible = function(){
return window.PalmSystem.isKeyboardVisible === true;
};
} else {
document.visibilityState = document.webkitVisibilityState;
window.PalmSystem.cursor = {
visibility: null
AppVisible = function(){
return document.webkitHidden === false;
};
AppFocus = function(){
return document.hasFocus() === true;
};
CursorVisible = function() {
return false;
};
KeyboardVisible = function() {
return false;
};
window.PalmSystem.isKeyboardVisible = false;
}

SubscriptionInputStatus();
Expand Down
1 change: 1 addition & 0 deletions MagicRemoteService/Setting.cs
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,7 @@ decimal dTimeoutRightClick
System.IO.Directory.CreateDirectory(".\\TV\\MagicRemoteService\\webOSTVjs-1.2.8");
System.IO.Directory.CreateDirectory(".\\TV\\MagicRemoteService\\resources");
System.IO.Directory.CreateDirectory(".\\TV\\MagicRemoteService\\resources\\fr");
System.IO.Directory.CreateDirectory(".\\TV\\MagicRemoteService\\resources\\es");
System.IO.Directory.CreateDirectory(".\\TV\\Send");
System.IO.File.WriteAllText(".\\TV\\MagicRemoteService\\main.js", MagicRemoteService.Properties.Resources.main
.Replace("const uiRightClick = 1500;", "const uiRightClick = " + dTimeoutRightClick.ToString() + ";")
Expand Down

0 comments on commit 889984d

Please sign in to comment.