Skip to content

Spanish language added #31

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
4 changes: 2 additions & 2 deletions _layouts/default.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!-- <!DOCTYPE html>
<html lang="{{ site.lang | default: "en-US" }}">
<head>
<meta charset="UTF-8">
Expand Down Expand Up @@ -58,4 +58,4 @@ <h2 class="project-tagline">{{ site.description | default: site.github.project_t
};
</script>
</body>
</html>
</html> -->
645 changes: 644 additions & 1 deletion acctoolbar/acctoolbar.min.js

Large diffs are not rendered by default.

609 changes: 608 additions & 1 deletion app/css/all.min.css

Large diffs are not rendered by default.

82 changes: 81 additions & 1 deletion app/htmlmin/toolbox.html

Large diffs are not rendered by default.

253 changes: 137 additions & 116 deletions app/htmlparts/toolbox.html

Large diffs are not rendered by default.

70 changes: 35 additions & 35 deletions app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,48 +8,48 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<!-- <script src="minjs/zur.min.js"></script> -->
<!-- <script src="minjs/common.min.js"></script> -->

<script src="minjs/common.min.js"></script>
<!-- Production script -->
<script src="../acctoolbar/acctoolbar.min.js"></script>

<!-- CDN -->
<!-- <script src="https://cdn.jsdelivr.net/gh/mickidum/acc_toolbar/acctoolbar/acctoolbar.min.js"></script> -->
<style>
body {
background-color: #ddd;
font-size: 40px;
transition: all 1s;
}
a {
transition: all 1s;
}
</style>
<style>
body {
background-color: #ddd;
font-size: 40px;
transition: all 1s;
}

a {
transition: all 1s;
}
</style>
</head>

<body>
<img src="https://picsum.photos/200" alt="sample text">
<img src="https://picsum.photos/200" alt="">
<h1>H1 ndsadsda</h1>
<h2>H2 sdfskafksdjf</h2>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
<img src="https://picsum.photos/200" alt="sample text">
<img src="https://picsum.photos/200" alt="">
<h1>H1 ndsadsda</h1>
<h2>H2 sdfskafksdjf</h2>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>

<script>
window.onload = function() {
window.micAccessTool = new MicAccessTool({
forceLang: "ru-RU",
link: 'https://acctoolbar.ml',
contact: 'mailto:[email protected]'
});
};
<script>
window.onload = function () {
window.micAccessTool = new MicAccessTool({
forceLang: "es-ES",
link: 'https://acctoolbar.ml',
contact: 'mailto:[email protected]'
});
};

</script>
</script>
</body>
</html>

</html>
2 changes: 1 addition & 1 deletion app/js/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function MicAccessTool(init) {
forceLang: '',
};

this.locale = @@include("language.json");
this.locale = include("language.json");
this.currentLanguage = this.locale[this.init.forceLang] || this.locale.en;

this.checkLanguageBox();
Expand Down
34 changes: 34 additions & 0 deletions app/js/language.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,5 +134,39 @@
"btn_cursor_black": "gros curseur<br>noir",
"btn_zoom_in": "élargir<br>l'écran"
}
},
"es-ES": {
"btn_open": "menú de accesibilidad",
"btn_close": "Cerrar",
"keyboard_root": "Navegación por teclado",
"disable_animattions": "Animaciones de bloque",
"access_declaration": "declaración de accesibilidad",
"debug_contacts": "reportar un problema de accesibilidad",
"reset_all_settings": "Reiniciar ajustes",
"image_without_alt": "imagen sin texto",
"contrast_block": {
"header": "contraste de color",
"btn_monochrome": "sin color<br>pantalla",
"btn_bright": "brillante<br>contraste",
"btn_invert": "invertir<br>colores"
},
"text_block": {
"header": "tamaño del texto",
"btn_font_up": "aumentar<br>texto",
"btn_font_down": "disminuir<br>texto",
"btn_font_readable": "texto legible<br>"
},
"content_block": {
"header": "resaltando contenido",
"btn_underline_links": "subrayar<br>enlaces",
"btn_underline_headers": "subrayar<br>encabezados",
"btn_images_titles": "imágenes<br>títulos"
},
"zoom_block": {
"header": "acercarse",
"btn_cursor_white": "gran cursor<br>blanco",
"btn_cursor_black": "gran cursor<br>negro",
"btn_zoom_in": "zoom<br>pantalla"
}
}
}
Loading