Fix/add translations and fix round attachments.

This commit is contained in:
Matias De lellis
2020-06-14 19:54:31 -03:00
parent 20e9512fa3
commit 666144b413
6 changed files with 26 additions and 13 deletions

View File

@@ -107,6 +107,7 @@ appstore: distclean depsmin
--exclude=vendor/bin \ --exclude=vendor/bin \
--exclude=node_modules \ --exclude=node_modules \
--exclude=js/templates \ --exclude=js/templates \
--exclude=templates/fake.php \
--exclude=translation* \ --exclude=translation* \
$(project_dir) $(sign_dir) $(project_dir) $(sign_dir)
@echo "Signing…" @echo "Signing…"

View File

@@ -739,12 +739,12 @@ View.prototype = {
return; return;
} }
sAttachts.parent().css('height', (500/sAttachts.length) + 'px'); sAttachts.parent().css('height', (500/sAttachts.length) + 'px');
sAttachts.first().children().first().css('border-top-left-radius', '8px'); sAttachts.first().children().first().children().css('border-top-left-radius', '8px');
sAttachts.each(function(index) { sAttachts.each(function(index) {
$(this).css('width', (100/sAttachts.length) + '%'); $(this).css('width', (100/sAttachts.length) + '%');
$(this).css('left', (100/sAttachts.length)*index + '%'); $(this).css('left', (100/sAttachts.length)*index + '%');
}); });
sAttachts.last().children().first().css('border-top-right-radius', '8px'); sAttachts.last().children().first().children().css('border-top-right-radius', '8px');
}, },
_resizeAttachtsGrid: function() { _resizeAttachtsGrid: function() {
var attachtsgrids = $('#notes-grid-div .note-attachts'); var attachtsgrids = $('#notes-grid-div .note-attachts');

View File

@@ -91,7 +91,7 @@
<button id='share-button'><?php p($l->t('Share'));?></button> <button id='share-button'><?php p($l->t('Share'));?></button>
--> -->
<button id='attach-button' class='round-tool-button'> <button id='attach-button' class='round-tool-button'>
<div class="icon-picture" title="{{t "quicknotes" "Add image"}}"></div> <div class="icon-picture" title="{{t "quicknotes" "Attach file"}}"></div>
</button> </button>
<button id='tag-button' class='round-tool-button'> <button id='tag-button' class='round-tool-button'>
<div class="icon-tag" title="{{t "quicknotes" "Tags"}}"></div> <div class="icon-tag" title="{{t "quicknotes" "Tags"}}"></div>

View File

@@ -13,11 +13,14 @@ OC.L10N.register(
"Nothing here. Take your first quick notes" : "Nada aquí. Toma tus primeras notas rápidas", "Nothing here. Take your first quick notes" : "Nada aquí. Toma tus primeras notas rápidas",
"Are you sure you want to delete the note?" : "¿Seguro que quieres eliminar la nota?", "Are you sure you want to delete the note?" : "¿Seguro que quieres eliminar la nota?",
"Delete note" : "Eliminar nota", "Delete note" : "Eliminar nota",
"Unpin note" : "Desanclar la nota",
"Pin note" : "Anclar la nota",
"Do you want to discard the changes?" : "¿Quieres descartar los cambios?",
"Unsaved changes" : "Cambios no guardados",
"New note" : "Nueva nota", "New note" : "Nueva nota",
"All notes" : "Todas las notas", "All notes" : "Todas las notas",
"Colors" : "Colores", "Colors" : "Colores",
"Notes" : "Notas", "Notes" : "Notas",
"Quick notes with a basic rich text" : "Notas rápidas con un texto enriquecido básico",
"Bold" : "Negrita", "Bold" : "Negrita",
"Italic" : "Itálica", "Italic" : "Itálica",
"Underline" : "Subrayado", "Underline" : "Subrayado",
@@ -26,9 +29,9 @@ OC.L10N.register(
"Numbered list" : "Lista numerada", "Numbered list" : "Lista numerada",
"Blockquote" : "Cita", "Blockquote" : "Cita",
"Clean format" : "Limpiar formato", "Clean format" : "Limpiar formato",
"Unpin note" : "Desanclar la nota", "Quick notes with a basic rich text" : "Notas rápidas con un texto enriquecido básico",
"Pin note" : "Anclar la nota", "Select file to attach" : "Seleccione archivo para adjuntar",
"Do you want to discard the changes?" : "¿Quieres descartar los cambios?", "Delete attachment" : "Eliminar adjunto",
"Unsaved changes" : "Cambios no guardados" "Attach file" : "Adjuntar archivo"
}, },
"nplurals=2; plural=(n != 1);"); "nplurals=2; plural=(n != 1);");

View File

@@ -11,11 +11,14 @@
"Nothing here. Take your first quick notes" : "Nada aquí. Toma tus primeras notas rápidas", "Nothing here. Take your first quick notes" : "Nada aquí. Toma tus primeras notas rápidas",
"Are you sure you want to delete the note?" : "¿Seguro que quieres eliminar la nota?", "Are you sure you want to delete the note?" : "¿Seguro que quieres eliminar la nota?",
"Delete note" : "Eliminar nota", "Delete note" : "Eliminar nota",
"Unpin note" : "Desanclar la nota",
"Pin note" : "Anclar la nota",
"Do you want to discard the changes?" : "¿Quieres descartar los cambios?",
"Unsaved changes" : "Cambios no guardados",
"New note" : "Nueva nota", "New note" : "Nueva nota",
"All notes" : "Todas las notas", "All notes" : "Todas las notas",
"Colors" : "Colores", "Colors" : "Colores",
"Notes" : "Notas", "Notes" : "Notas",
"Quick notes with a basic rich text" : "Notas rápidas con un texto enriquecido básico",
"Bold" : "Negrita", "Bold" : "Negrita",
"Italic" : "Itálica", "Italic" : "Itálica",
"Underline" : "Subrayado", "Underline" : "Subrayado",
@@ -24,9 +27,9 @@
"Numbered list" : "Lista numerada", "Numbered list" : "Lista numerada",
"Blockquote" : "Cita", "Blockquote" : "Cita",
"Clean format" : "Limpiar formato", "Clean format" : "Limpiar formato",
"Unpin note" : "Desanclar la nota", "Quick notes with a basic rich text" : "Notas rápidas con un texto enriquecido básico",
"Pin note" : "Anclar la nota", "Select file to attach" : "Seleccione archivo para adjuntar",
"Do you want to discard the changes?" : "¿Quieres descartar los cambios?", "Delete attachment" : "Eliminar adjunto",
"Unsaved changes" : "Cambios no guardados" "Attach file" : "Adjuntar archivo"
},"pluralForm" :"nplurals=2; plural=(n != 1);" },"pluralForm" :"nplurals=2; plural=(n != 1);"
} }

6
templates/fake.php Normal file
View File

@@ -0,0 +1,6 @@
<?php
/**
* This is a fake script just to translate the strings inside handlebars.
*/
p($l->t('Delete attachment'));
p($l->t('Attach file'));