Skip to content

Commit

Permalink
Spanish translations release
Browse files Browse the repository at this point in the history
  • Loading branch information
saif-ellafi committed Apr 22, 2021
1 parent 1cb2c88 commit b44fa91
Show file tree
Hide file tree
Showing 9 changed files with 44 additions and 20 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
### 0.8.2
* Localization: Gracias a @lozalojo por Minimal UI en Español!!!
* Localization: Fixed english missing texts
* Bugfix: Errors on the logo images will be ignored if logo is hidden

### 0.8.1
* Enhancement: New setting allows providing custom logo image
* Bugfix: Fixed a bug causing the Minimized bar to appear when changing scenes
Expand Down
7 changes: 7 additions & 0 deletions THANKS.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
I hope you enjoy my small contributions to Foundry VTT.
If you happen to appreciate my work, do check my Ko-Fi page :)

https://ko-fi.com/jeansenvaars

Sincerely,
JeansenVaars
6 changes: 6 additions & 0 deletions lang/en.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"I18N.LANGUAGE": "English",
"I18N.MAINTAINERS": "@JeansenVaars#2857",

"MinimalUI.SettingsAlwaysVisible": "Always Visible",
"MinimalUI.SettingsAutoHide": "Auto-Hide",
Expand All @@ -24,6 +26,7 @@

"MinimalUI.HidePlayerCameraName": "Hide Player Cameras",
"MinimalUI.HidePlayerCameraHint": "For player camera/audio, whether only to show GMs",
"MinimalUI.HidePlayerCameraSetting": "Hide camera/audio box of players",

"MinimalUI.ControlsBehaviourName": "Left Controls behavior",
"MinimalUI.ControlsBehaviourHint": "Choose whether left panel is always visible or auto hides",
Expand All @@ -44,6 +47,9 @@
"MinimalUI.HotbarStyleHint": "Customize Hotbar UI. Auto-Hide Ignored when using Custom Hotbar module.",
"MinimalUI.HotbarSizeName": "Macro Hotbar Slot Size",
"MinimalUI.HotbarSizeHint": "Customize Macro Hotbar slots & size",
"MinimalUI.HotbarSlots3": "3 Slots",
"MinimalUI.HotbarSlots6": "6 Slots",
"MinimalUI.HotbarSlots10": "10 Slots",
"MinimalUI.HotbarPositionName": "Macro Hotbar Position",
"MinimalUI.HotbarPositionHint": "Horizontal position of the Macro Hotbar",
"MinimalUI.HotbarPositionCenterLeft": "Center Left",
Expand Down
4 changes: 4 additions & 0 deletions lang/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

"MinimalUI.HidePlayerCameraName": "Ocultar cámaras de jugadores",
"MinimalUI.HidePlayerCameraHint": "Para las cámaras y el audio de los jugadores, si solo se quiere mostrar los GMs",
"MinimalUI.HidePlayerCameraSetting": "Ocultar cámara/audio de los jugadores",

"MinimalUI.ControlsBehaviourName": "Comportamiento de controles de la izquierda",
"MinimalUI.ControlsBehaviourHint": "Escoger si el panel izquierdo debe ser siempre visible o auto-ocultarse",
Expand All @@ -46,6 +47,9 @@
"MinimalUI.HotbarStyleHint": "Personaliza la UI de la barra de accesos directos. Se ignorará el auto-ocultar cuando se use el módulo 'Custom Hotbar'",
"MinimalUI.HotbarSizeName": "Tamaño de cada hueco de la barra de macros",
"MinimalUI.HotbarSizeHint": "Personaliza los huecos y su tamaño de la barra de macros",
"MinimalUI.HotbarSlots3": "3 Huecos",
"MinimalUI.HotbarSlots6": "6 Huecos",
"MinimalUI.HotbarSlots10": "10 Huecos",
"MinimalUI.HotbarPositionName": "Posición de la barra de macros",
"MinimalUI.HotbarPositionHint": "Posición horizontal de la barra de macros",
"MinimalUI.HotbarPositionCenterLeft": "Centrado a la izquierda",
Expand Down
6 changes: 3 additions & 3 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"title": "Minimal UI",
"author": "JeansenVaars#2857",
"description": "Minimal UI allows customizing Foundry interface, by hiding, collapsing or resizing specific parts.",
"version": "0.8.1",
"version": "0.8.2",
"minimumCoreVersion": "0.7.9",
"compatibleCoreVersion": "0.7.9",
"dependencies": [
Expand All @@ -25,6 +25,6 @@
}
],
"url": "https://github.com/saif-ellafi/foundryvtt-minimal-ui.git",
"manifest": "https://github.com/saif-ellafi/foundryvtt-minimal-ui/releases/download/0.8.1/module.json",
"download": "https://github.com/saif-ellafi/foundryvtt-minimal-ui/releases/download/0.8.1/foundryvtt-minimal-ui_0.8.1.zip"
"manifest": "https://github.com/saif-ellafi/foundryvtt-minimal-ui/releases/download/0.8.2/module.json",
"download": "https://github.com/saif-ellafi/foundryvtt-minimal-ui/releases/download/0.8.2/foundryvtt-minimal-ui_0.8.2.zip"
}
4 changes: 2 additions & 2 deletions modules/component/camera.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ export default class MinimalUICamera {
default: "default",
type: String,
choices: {
"default": "No changes",
"hidden": "Hide camera/audio box of players"
"default": game.i18n.localize("MinimalUI.SettingsDefault"),
"hidden": game.i18n.localize("MinimalUI.HidePlayerCameraSetting")
},
onChange: _ => {
window.location.reload()
Expand Down
10 changes: 5 additions & 5 deletions modules/component/hotbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,15 +127,15 @@ export default class MinimalUIHotbar {
});

game.settings.register('minimal-ui', 'hotbarSize', {
name: game.i18n.localize("MinimalUI.HotbarStyleName"),
hint: game.i18n.localize("MinimalUI.HotbarStyleHint"),
name: game.i18n.localize("MinimalUI.HotbarSizeName"),
hint: game.i18n.localize("MinimalUI.HotbarSizeHint"),
scope: 'world',
config: true,
type: String,
choices: {
"slots_3": "3 Slots",
"slots_6": "6 Slots",
"slots_10": "10 Slots"
"slots_3": game.i18n.localize("MinimalUI.HotbarSlots3"),
"slots_6": game.i18n.localize("MinimalUI.HotbarSlots6"),
"slots_10":game.i18n.localize("MinimalUI.HotbarSlots10")
},
default: "slots_10",
onChange: _ => {
Expand Down
20 changes: 11 additions & 9 deletions modules/component/logo.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,17 @@ export default class MinimalUILogo {
}

static updateImageSrc(srcimg) {
$("#logo")
.attr('src', srcimg)
.on('error', function() {
if (game.user.isGM)
ui.notifications.warn(
"Minimal UI: Your Logo Image could not be found. Restoring to Default Foundry Logo"
);
MinimalUILogo.updateImageSrc("icons/fvtt.png")
});
if (game.settings.get('minimal-ui', 'foundryLogoSize') !== 'hidden') {
$("#logo")
.attr('src', srcimg)
.on('error', function () {
if (game.user.isGM)
ui.notifications.warn(
"Minimal UI: Your Logo Image could not be found. Restoring to Default Foundry Logo"
);
MinimalUILogo.updateImageSrc("icons/fvtt.png")
});
}
}

static initSettings() {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "foundryvtt-minimal-ui",
"version": "0.8.1",
"version": "0.8.2",
"description": "Minimal UI allows customizing Foundry interface, by hiding, collapsing or resizing specific parts.",
"main": "minimalui.js",
"scripts": {
Expand Down

0 comments on commit b44fa91

Please sign in to comment.