Skip to content

Commit

Permalink
added tooltip strings to lang
Browse files Browse the repository at this point in the history
  • Loading branch information
jmuletpol committed Oct 14, 2024
1 parent 853c6bd commit 058263a
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 7 deletions.
5 changes: 5 additions & 0 deletions lang/ca/tiny_codepro.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,15 @@
* @copyright 2023 Josep Mulet Pol <[email protected]>
* @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
$string['autoprettify'] = 'Formata\'l automàticament quan s\'obri';
$string['cancel'] = 'Cancel·la';
$string['codepro:viewplugin'] = 'Veure plugin';
$string['fullscreen'] = 'Pantalla completa';
$string['helplinktext'] = 'Source code Pro';
$string['linewrap'] = 'Trencar línies llargues';
$string['plugin'] = 'codePro';
$string['pluginname'] = 'Source code Pro';
$string['prettify'] = 'Formata el codi';
$string['privacy:metadata'] = 'Aquest plugin no desa cap dada associada amb l\'usuari.';
$string['save'] = 'Desa';
$string['themes'] = 'Temes clar/obscur';
5 changes: 5 additions & 0 deletions lang/en/tiny_codepro.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,15 @@
* @copyright 2023 Josep Mulet Pol <[email protected]>
* @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
$string['autoprettify'] = 'Auto prettify when editor opens';
$string['cancel'] = 'Cancel';
$string['codepro:viewplugin'] = 'View plugin';
$string['fullscreen'] = 'Fullscreen';
$string['helplinktext'] = 'Source code Pro';
$string['linewrap'] = 'Line wrap';
$string['plugin'] = 'codePro';
$string['pluginname'] = 'Source code Pro';
$string['prettify'] = 'Prettify code';
$string['privacy:metadata'] = 'This plugin does not store any user related data.';
$string['save'] = 'Save';
$string['themes'] = 'Light/Dark themes';
6 changes: 6 additions & 0 deletions lang/es/tiny_codepro.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,16 @@
* @copyright 2023 Josep Mulet Pol <[email protected]>
* @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
$string['autoprettify'] = 'Formatearlo automáticamente al abrirse';
$string['cancel'] = 'Cancelar';
$string['codepro:viewplugin'] = 'Ver plugin';
$string['fullscreen'] = 'Pantalla completa';
$string['helplinktext'] = 'Source code Pro';
$string['linewrap'] = 'Romper lineas largas';
$string['plugin'] = 'codePro';
$string['pluginname'] = 'Source code Pro';
$string['prettify'] = 'Formatear el código';
$string['privacy:metadata'] = 'Este plugin no guarda ningún dato asociado con el usuario.';
$string['save'] = 'Guardar';
$string['themes'] = 'Temas claro/oscuro';

10 changes: 5 additions & 5 deletions templates/modal.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@
{{/body}}
{{$footer}}
<div class="tiny_codepro-left">
<button class="btn btn-light" data-fs="false" title="Fullscreen"><i class="fa fa-arrows-alt"></i></button>
<button class="btn btn-light" data-theme="light" title="Light/Dark themes"><i class="fa fa-sun-o"></i></button>
<button class="btn btn-light" data-wrap="true" title="Line wrap"><i class="fa fa-exchange"></i></button>
<button class="btn btn-light" data-fs="false" title="{{#str}} fullscreen, tiny_codepro {{/str}}"><i class="fa fa-arrows-alt"></i></button>
<button class="btn btn-light" data-theme="light" title="{{#str}} themes, tiny_codepro {{/str}}"><i class="fa fa-sun-o"></i></button>
<button class="btn btn-light" data-wrap="true" title="{{#str}} linewrap, tiny_codepro {{/str}}"><i class="fa fa-exchange"></i></button>
<div class="btn-group">
<button class="btn btn-light" data-prettify title="Prettify code"><i class="fa fa-magic"></i></button>
<button class="btn btn-light" data-prettify title="{{#str}} prettify, tiny_codepro {{/str}}"><i class="fa fa-magic"></i></button>
<button data-auto-prettify class="btn btn-light dropdown-toggle-split"
title="Auto prettify when editor opens" style="padding: 1px; width: 20px; border-left: 1px solid gray;">
title="{{#str}} autoprettify, tiny_codepro {{/str}}" style="padding: 1px; width: 20px; border-left: 1px solid gray;">
<small><i class="fas fa fa-times"></i></small>
</button>
</div>
Expand Down
4 changes: 2 additions & 2 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
defined('MOODLE_INTERNAL') || die();

$plugin->component = 'tiny_codepro';
$plugin->release = '1.1.3';
$plugin->release = '1.1.4';
$plugin->requires = 2022112800;
$plugin->maturity = MATURITY_STABLE;
$plugin->version = 2024101201;
$plugin->version = 2024101401;

0 comments on commit 058263a

Please sign in to comment.