Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Commit

Permalink
Text update
Browse files Browse the repository at this point in the history
  • Loading branch information
NastuzziSamy committed Apr 4, 2018
1 parent 4afc2aa commit 81499e7
Show file tree
Hide file tree
Showing 8 changed files with 91 additions and 83 deletions.
2 changes: 1 addition & 1 deletion appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<name>Files Right Click</name>
<summary>Add a simple right click menu on the files Nextcloud app</summary>
<description><![CDATA[Not anymore useful to click on the 3 dots button to popup the file menu, now right click on a specific file where you want to access to its menu to simply show it.]]></description>
<version>0.5.0</version>
<version>0.5.1</version>
<licence>AGPL</licence>
<author mail="[email protected]" homepage="https://github.com/NastuzziSamy/files_rightclick.git">NASTUZZI Samy</author>
<namespace>FilesRightClick</namespace>
Expand Down
20 changes: 10 additions & 10 deletions js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ var openContextOnRightClick = function (event) {
var share = currentFile.find('.filename .fileactions .action-share');

if (share.length !== 0) {
generateNewOption('Share', 'share', t(appName, 'Share this ' + (currentFile.attr('data-type') === 'dir' ? 'folder' : 'file')), function () {
generateNewOption('Share', 'share', t(appName, 'Share ' + (currentFile.attr('data-type') === 'dir' ? 'folder' : 'file')), function () {
share.click();
});
}
Expand All @@ -125,21 +125,21 @@ var openContextOnRightClick = function (event) {
text = t(appName, 'Open this folder');
icon = 'filetype-folder-drag-accept';

generateNewOption('Open', 'category-app-bundles', t(appName, 'Open in a new tab'), function () {
generateNewOption('Open', 'category-app-bundles', t(appName, 'Open in new tab'), function () {
window.open('?dir=' + currentFile.attr('data-path') + (currentFile.attr('data-path') === '/' ? '' : '/') + currentFile.attr('data-file'), "_blank");
});
}
else if (mimeType === 'text/plain') {
text = t(appName, 'Edit this file');
text = t(appName, 'Edit file');
icon = 'edit';
}
else if (mimeType === 'application/pdf') {
text = t(appName, 'Read this PDF');
text = t(appName, 'Read PDF');
}
else if (mimeType.indexOf('image') >= 0) {
text = t(appName, 'See this picture');
text = t(appName, 'See picture');

generateNewOption('Open', 'category-multimedia', t(appName, 'Open in the gallery app'), function () {
generateNewOption('Open', 'category-multimedia', t(appName, 'Open in Gallery'), function () {
window.open('/apps/gallery' + currentFile.attr('data-path').replace('/', '/#') + (currentFile.attr('data-path') === '/' ? '' : '/') + currentFile.attr('data-file'), "_blank");
});
}
Expand All @@ -149,11 +149,11 @@ var openContextOnRightClick = function (event) {
};

if (isReading()) {
text = t(appName, 'Stop playing');
text = t(appName, 'Stop playback');
icon = 'pause';
}
else {
text = t(appName, 'Start playing');
text = t(appName, 'Play');
icon = 'play';

onClick = function () {
Expand All @@ -164,11 +164,11 @@ var openContextOnRightClick = function (event) {
}
}
else if (mimeType.indexOf('video') >= 0) {
text = t(appName, 'Start watching');
text = t(appName, 'Watch');
icon = 'play';
}
else if (currentFile.attr('data-type') === 'file') {
text = t(appName, 'Open this file');
text = t(appName, 'Open file');
}

if (text !== '') {
Expand Down
26 changes: 14 additions & 12 deletions l10n/de.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
OC.L10N.register(
"files_rightclick", {
"Open this folder" : "Öffne diesen Ordner",
"Open this file" : "Öffne diese Datei",
"Open in a new tab" : "In neuem Tab öffnen",
"Edit this file" : "Diese Datei editieren",
"Read this PDF" : "Lese diese PDF",
"See this picture" : "Dieses Bild angucken",
"Open in the gallery app" : "Öffnen in Galerie App",
"Start playing" : "Starte Wiedergabe",
"Stop playing" : "Stoppe Wiedergabe",
"Start watching" : "Starte Video",
"Share this folder" : "Diesen Ordner teilen",
"Share this file" : "Diese Datei teilen",
"Open folder" : "Öffne diesen Ordner",
"Open file" : "Öffne diese Datei",
"Open in new tab" : "In neuem Tab öffnen",
"Edit file" : "Diese Datei editieren",
"Read PDF" : "Lese diese PDF",
"See picture" : "Dieses Bild angucken",
"Open in Gallery" : "Öffnen in Galerie App",
"Play" : "Starte Wiedergabe",
"Stop playback" : "Stoppe Wiedergabe",
"Watch" : "Starte Video",
"Share folder" : "Diesen Ordner teilen",
"Share file" : "Diese Datei teilen",
"Select" : "Select",
"Unselect" : "Unselect",
},
"nplurals=2; plural=(n > 1);"
);
26 changes: 14 additions & 12 deletions l10n/de.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
{ "translations": {
"Open this folder" : "Öffne diesen Ordner",
"Open this file" : "Öffne diese Datei",
"Open in a new tab" : "In neuem Tab öffnen",
"Edit this file" : "Diese Datei editieren",
"Read this PDF" : "Lese diese PDF",
"See this picture" : "Dieses Bild angucken",
"Open in the gallery app" : "Öffnen in Galerie App",
"Start playing" : "Starte Wiedergabe",
"Stop playing" : "Stoppe Wiedergabe",
"Start watching" : "Starte Video",
"Share this folder" : "Diesen Ordner teilen",
"Share this file" : "Diese Datei teilen",
"Open folder" : "Öffne diesen Ordner",
"Open file" : "Öffne diese Datei",
"Open in new tab" : "In neuem Tab öffnen",
"Edit file" : "Diese Datei editieren",
"Read PDF" : "Lese diese PDF",
"See picture" : "Dieses Bild angucken",
"Open in Gallery" : "Öffnen in Galerie App",
"Play" : "Starte Wiedergabe",
"Stop playback" : "Stoppe Wiedergabe",
"Watch" : "Starte Video",
"Share folder" : "Diesen Ordner teilen",
"Share file" : "Diese Datei teilen",
"Select" : "Select",
"Unselect" : "Unselect",
},"pluralForm" :"nplurals=2; plural=(n > 1);"
24 changes: 12 additions & 12 deletions l10n/fr.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
OC.L10N.register(
"files_rightclick", {
"Open this folder" : "Ouvrir le dossier",
"Open this file" : "Ouvrir le fichier",
"Open in a new tab" : "Ouvrir dans un nouvel onglet",
"Edit this file" : "Modifier le fichier",
"Read this PDF" : "Ouvrir le PDF",
"See this picture" : "Voir l'image",
"Open in the gallery app" : "Ouvrir dans la galerie",
"Start playing" : "Lancer la lecture",
"Stop playing" : "Arrêter la lecture",
"Start watching" : "Lancer la video",
"Share this folder" : "Partager le dossier",
"Share this file" : "Partager le fichier",
"Open folder" : "Ouvrir le dossier",
"Open file" : "Ouvrir le fichier",
"Open in new tab" : "Ouvrir dans un nouvel onglet",
"Edit file" : "Modifier le fichier",
"Read PDF" : "Ouvrir le PDF",
"See picture" : "Voir l'image",
"Open in Gallery" : "Ouvrir dans la Galerie",
"Play" : "Lancer la lecture",
"Stop playback" : "Arrêter la lecture",
"Watch" : "Lancer la video",
"Share folder" : "Partager le dossier",
"Share file" : "Partager le fichier",
"Select" : "Sélectionner",
"Unselect" : "Désélectionner",
},
Expand Down
24 changes: 12 additions & 12 deletions l10n/fr.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{ "translations": {
"Open this folder" : "Ouvrir le dossier",
"Open this file" : "Ouvrir le fichier",
"Open in a new tab" : "Ouvrir dans un nouvel onglet",
"Edit this file" : "Modifier le fichier",
"Read this PDF" : "Ouvrir le PDF",
"See this picture" : "Voir l'image",
"Open in the gallery app" : "Ouvrir dans la galerie",
"Start playing" : "Lancer la lecture",
"Stop playing" : "Arrêter la lecture",
"Start watching" : "Lancer la video",
"Share this folder" : "Partager le dossier",
"Share this file" : "Partager le fichier",
"Open folder" : "Ouvrir le dossier",
"Open file" : "Ouvrir le fichier",
"Open in new tab" : "Ouvrir dans un nouvel onglet",
"Edit file" : "Modifier le fichier",
"Read PDF" : "Ouvrir le PDF",
"See picture" : "Voir l'image",
"Open in Gallery" : "Ouvrir dans la Galerie",
"Play" : "Lancer la lecture",
"Stop playback" : "Arrêter la lecture",
"Watch" : "Lancer la video",
"Share folder" : "Partager le dossier",
"Share file" : "Partager le fichier",
"Select" : "Sélectionner",
"Unselect" : "Désélectionner",
},"pluralForm" :"nplurals=2; plural=(n > 1);"
26 changes: 14 additions & 12 deletions l10n/pt_br.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
OC.L10N.register(
"files_rightclick", {
"Open this folder" : "Abrir esta pasta",
"Open this file" : "Abrir este arquivo",
"Open in a new tab" : "Abrir em uma nova aba",
"Edit this file" : "Editar este arquivo",
"Read this PDF" : "Ler este PDF",
"See this picture" : "Ver esta imagem",
"Open in the gallery app" : "Abrir na Galeria",
"Start playing" : "Comece a tocar",
"Stop playing" : "Parar de tocar",
"Start watching" : "Comece a assistir",
"Share this folder" : "Compartilhar esta pasta",
"Share this file" : "Compartilhar este arquivo",
"Open folder" : "Abrir esta pasta",
"Open file" : "Abrir este arquivo",
"Open in new tab" : "Abrir em uma nova aba",
"Edit file" : "Editar este arquivo",
"Read PDF" : "Ler este PDF",
"See picture" : "Ver esta imagem",
"Open in Gallery" : "Abrir na Galeria",
"Play" : "Comece a tocar",
"Stop playback" : "Parar de tocar",
"Watch" : "Comece a assistir",
"Share folder" : "Compartilhar esta pasta",
"Share file" : "Compartilhar este arquivo",
"Select" : "Select",
"Unselect" : "Unselect",
},
"nplurals=2; plural=(n > 1);"
);
26 changes: 14 additions & 12 deletions l10n/pt_br.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
{ "translations": {
"Open this folder" : "Abrir esta pasta",
"Open this file" : "Abrir este arquivo",
"Open in a new tab" : "Abrir em uma nova aba",
"Edit this file" : "Editar este arquivo",
"Read this PDF" : "Ler este PDF",
"See this picture" : "Ver esta imagem",
"Open in the gallery app" : "Abrir no app Galeria",
"Start playing" : "Comece a tocar",
"Stop playing" : "Parar de tocar",
"Start watching" : "Comece a assistir",
"Share this folder" : "Compartilhar esta pasta",
"Share this file" : "Compartilhar este arquivo",
"Open folder" : "Abrir esta pasta",
"Open file" : "Abrir este arquivo",
"Open in new tab" : "Abrir em uma nova aba",
"Edit file" : "Editar este arquivo",
"Read PDF" : "Ler este PDF",
"See picture" : "Ver esta imagem",
"Open in Gallery" : "Abrir na Galeria",
"Play" : "Comece a tocar",
"Stop playback" : "Parar de tocar",
"Watch" : "Comece a assistir",
"Share folder" : "Compartilhar esta pasta",
"Share file" : "Compartilhar este arquivo",
"Select" : "Select",
"Unselect" : "Unselect",
},"pluralForm" :"nplurals=2; plural=(n > 1);"

0 comments on commit 81499e7

Please sign in to comment.