Skip to content

Commit

Permalink
Desktop Handler (0dyseus@DesktopHandler) update
Browse files Browse the repository at this point in the history
- Added localized help.
  • Loading branch information
Odyseus committed Apr 17, 2017
1 parent 6e4b98e commit 911d817
Show file tree
Hide file tree
Showing 5 changed files with 312 additions and 36 deletions.
26 changes: 0 additions & 26 deletions 0dyseus@DesktopHandler/HELP.md

This file was deleted.

67 changes: 66 additions & 1 deletion 0dyseus@DesktopHandler/HELP.pug
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,76 @@ html
title Desktop Handler applet help
link(rel='shortcut icon', type='image/x-icon', href='./icon.png')
meta(name='viewport', content='width=device-width, initial-scale=1')

script(type='text/javascript')
include ../../docs/lib/js/localizations-handler.js

style(type='text/css')
include ../../docs/lib/css/bootstrap-for-standalone.min.css
include ../../docs/lib/css/tweaks.css

style(type='text/css').
.localization-chooser {
padding: 1em !important;
width: 100% !important;
}

.localization-chooser input.btn {
font-weight: bold !important;
margin: 5px !important;
height: 100% !important;
display: inline-block !important;
}

body
noscript
style(type='text/css').
#autohide_navbar {
display: none !important;
}
#noscript-navbar {
display: inline-block !important;
}
#noscript-navbar > li {
float: left !important;
margin: 2px !important;
padding: 2px !important;
top: 0 !important;
display: inline-block !important;
}
#noscript-navbar li > ul {
margin: 1px !important;
padding: 1px !important;
}
#noscript-navbar li {
list-style: none !important;
list-style-type: none !important;
}

.alert.alert-warning
p: strong Oh snap! This page needs JavaScript enabled to display correctly.
p: strong This page uses JavaScript only to switch between the available languages.
p: strong There are no tracking services of any kind and never will be (at least, not from my side).

div#mainarea
.localization-chooser(align="middle")
input(type='button', class='btn btn-success btn-sm localization-switch' value='English' data-id='english' data-title='Desktop Handler applet help' onclick='self.toggleLocalizationVisibility(this);')
input(type='button', class='btn btn-default btn-sm localization-switch' value='Español' data-id='spanish' data-title='Ayuda para el applet Manejador de escritorio' onclick='self.toggleLocalizationVisibility(this);')
//- Example:
//- input(type='button', class='btn btn-default btn-sm localization-switch' value='language-endonym' data-id='language-name' data-title='page-title' onclick='self.toggleLocalizationVisibility(this);')
//- language-endonym = Language name in the language tongue in capital case (if apply).
//- language-name = Language name in English and in lower case.
//- page-title = The translated page title.
.container.boxed
include:markdown-it(html) HELP.md
#english.localization-content
include:markdown-it(html) docs/HELP.md
#spanish.localization-content.hidden
include:markdown-it(html) docs/HELP-es.md
//- Example:
//- #language-name.localization-content.hidden
//- include:markdown-it(html) docs/HELP-language-code.md
//- language-name = Language name in English and in lower case. The same used on the input.
//- language-code = The code of the language used on the translated file.
script(type='text/javascript').
toggleLocalizationVisibility(null);
26 changes: 26 additions & 0 deletions 0dyseus@DesktopHandler/docs/HELP-es.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@

# Ayuda para el applet Manejador de escritorio

### ¡IMPORTANTE!
Jamás borrar ninguno de los archivos encontrados dentro de la carpeta de este xlet. Podría romper la funcionalidad del xlet.

***

<h2 style="color:red;">Reportes de fallos, peticiones de características y contribuciones</h2>
<span style="color:red;">
Si cualquiera tiene fallos que reportar, peticiones de características y contribuciones, deben realizarlas <a href="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/Odyseus/CinnamonTools">en la página de GitHub de este xlet</a>.
</span>

***

### Localización de applets/desklets/extensiones (también conocidos como xlets)

- Si este xlet se instaló desde Configuración de Cinnamon, todas las localizaciones de este xlet se instalaron automáticamente.
- Si este xlet se instaló manualmente y no a través de Configuración de Cinnamon, las localizaciones se pueden instalar ejecutando el archivo llamado **localizations.sh** desde una terminal abierta dentro de la carpeta del xlet.
- Si este xlet no está disponible en su idioma, la localización puede ser creada siguiendo [estas instrucciones](https://github.com/Odyseus/CinnamonTools/wiki/Xlet-localization) y luego enviarme el archivo .po.
- Si se posee una cuenta de GitHub:
- Puede enviar una "pull request" con el nuevo archivo de localización.
- Si no se desea clonar el repositorio, simplemente crear un [Gist](https://gist.github.com/) y enviarme el enlace.
- Si no se posee o no se quiere una cuenta de GitHub:
- Se puede enviar un [Pastebin](http:https://pastebin.com/) (o servicio similar) a mi [cuenta en el for de Linux Mint](https://forums.linuxmint.com/memberlist.php?mode=viewprofile&u=164858).
- Si el texto fuente (en Inglés) y/o mi traducción al Español contiene errores o inconsistencias, no dude en informarlos.
34 changes: 34 additions & 0 deletions 0dyseus@DesktopHandler/docs/HELP.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@

<!--
Notes to translators:
- Do not modify this file directly. Create a copy of it with a different name that contains the language code and always use the .md extension for the file. Example: HELP-es.md file will contain the content of the HELP.md file translated into Spanish.
- This file is written in [markdown](https://guides.github.com/features/mastering-markdown/) and some "touches" of HTML.
- Familiarize yourself with markdown and HTML languages before attempting to translate the content of this file.
- These notes doesn't need to be translated and can be deleted from the translated file.
-->

# Help for Window demands attention behavior extension

### IMPORTANT!!!
Never delete any of the files found inside this xlet folder. It might break this xlet functionality.

***

<h2 style="color:red;">Bug reports, feature requests and contributions</h2>
<span style="color:red;">
If anyone has bugs to report, a feature request or a contribution, do so on <a href="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/Odyseus/CinnamonTools">this xlet GitHub page</a>.
</span>

***

### Applets/Desklets/Extensions (a.k.a. xlets) localization

- If this xlet was installed from Cinnamon Settings, all of this xlet's localizations were automatically installed.
- If this xlet was installed manually and not trough Cinnamon Settings, localizations can be installed by executing the script called **localizations.sh** from a terminal opened inside the xlet's folder.
- If this xlet has no locale available for your language, you could create it by following [these instructions](https://github.com/Odyseus/CinnamonTools/wiki/Xlet-localization) and send the .po file to me.
- If you have a GitHub account:
- You could send a pull request with the new locale file.
- If you don't want to clone the repository, just create a [Gist](https://gist.github.com/) and send me the link.
- If you don't have/want a GitHub account:
- You can send me a [Pastebin](http:https://pastebin.com/) (or similar service) to my [Mint Forums account](https://forums.linuxmint.com/memberlist.php?mode=viewprofile&u=164858).
- If the source text (in English) and/or my translation to Spanish has errors/inconsistencies, feel free to report them.
Loading

0 comments on commit 911d817

Please sign in to comment.