Skip to content

Commit

Permalink
Monkeypatching keystone editor
Browse files Browse the repository at this point in the history
  • Loading branch information
Kræn Hansen (Socialsquare) committed Jun 5, 2017
1 parent 49f661c commit 85c7c28
Show file tree
Hide file tree
Showing 11 changed files with 105 additions and 0 deletions.
11 changes: 11 additions & 0 deletions app/lib/uploadimage/langs/de.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
tinyMCE.addI18n('de', {
'Insert an image from your computer': 'Bild vom Computer einfügen',
'Insert image': 'Bild einfügen',
'Choose an image': "Bild auswählen",
'You must choose a file': "Datei auswählen",
'Got a bad response from the server': "Ungültige Antwort vom Server",
"Didn't get a response from the server": "Server antwortet nicht",
'Insert': "Einfügen",
'Cancel': "Abbrechen",
'Image description': "Bildbeschreibung"
});
11 changes: 11 additions & 0 deletions app/lib/uploadimage/langs/en.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
tinyMCE.addI18n('en', {
'Insert an image from your computer': 'Insert an image from your computer',
'Insert image': 'Insert image',
'Choose an image': "Choose an image",
'You must choose a file': "You must choose a file",
'Got a bad response from the server': "Got a bad response from the server",
"Didn't get a response from the server": "Didn't get a response from the server",
'Insert': "Insert",
'Cancel': "Cancel",
'Image description': "Image description",
});
11 changes: 11 additions & 0 deletions app/lib/uploadimage/langs/es.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
tinyMCE.addI18n('es', {
'Insert an image from your computer': 'Insertar una imagen desde su computadora',
'Insert image': 'Insertar una imagen',
'Choose an image': "Elija una imagen",
'You must choose a file': "Debe elegir un archivo",
'Got a bad response from the server': "Mala respuesta del servidor",
"Didn't get a response from the server": "No se recibió respuesta del servidor",
'Insert': "Insertar",
'Cancel': "Cancelar",
'Image description': "Descripción de la imagen",
});
11 changes: 11 additions & 0 deletions app/lib/uploadimage/langs/fr.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
tinyMCE.addI18n('fr', {
'Insert an image from your computer': "Envoyer une image de votre ordinateur",
'Insert image': "Insérer une image",
'Choose an image': "Choisissez une image",
'You must choose a file': "Vous devez sélectionner un fichier",
'Got a bad response from the server': "Le serveur a envoyé une réponse erronée",
"Didn't get a response from the server": "Le serveur n'a pas renvoyé de réponse",
'Insert': "Insérer",
'Cancel': "Annuler",
'Image description': "Description de l'image",
});
11 changes: 11 additions & 0 deletions app/lib/uploadimage/langs/nb.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
tinyMCE.addI18n('nb', {
'Insert an image from your computer': 'Sett inn et bilde fra datamaskinen',
'Insert image': "Sett inn bilde",
'Choose an image': "Velg et bilde",
'You must choose a file': "Du m\u00e5 velge en fil",
'Got a bad response from the server': "Fikk et ugyldig svar fra serveren",
"Didn't get a response from the server": "Fikk ikke svar fra serveren",
'Insert': "Sett inn",
'Cancel': "Avbryt",
'Image description': "Alternativ tekst for bilde",
});
11 changes: 11 additions & 0 deletions app/lib/uploadimage/langs/pt.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
tinyMCE.addI18n('pt', {
'Insert an image from your computer': 'Inserir uma imagem do seu computador',
'Insert image': 'Inserir imagem',
'Choose an image': "Escolher uma imagem",
'You must choose a file': "É necessário seleccionar um ficheiro",
'Got a bad response from the server': "Resposta inesperada do servidor",
"Didn't get a response from the server": "Não foi obtida uma resposta do servidor",
'Insert': "Inserir",
'Cancel': "Cancelar",
'Image description': "Image description",
});
11 changes: 11 additions & 0 deletions app/lib/uploadimage/langs/pt_BR.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
tinyMCE.addI18n('pt_BR', {
'Insert an image from your computer': 'Inserir uma imagem do computador',
'Insert image': 'Inserir imagem',
'Choose an image': "Escolher uma imagem",
'You must choose a file': "É necessário selecionar um diretório",
'Got a bad response from the server': "Resposta inesperada do servidor",
"Didn't get a response from the server": "Servidor não está respondendo",
'Insert': "Inserir",
'Cancel': "Cancelar",
'Image description': "Image description",
});
11 changes: 11 additions & 0 deletions app/lib/uploadimage/langs/ru.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
tinyMCE.addI18n('ru', {
'Insert an image from your computer': 'Вставить изображение с вашего компьютера',
'Insert image': "Вставить изображение",
'Choose an image': "Изображение",
'You must choose a file': "Необходимо выбрать файл",
'Got a bad response from the server': "Получен некорректный ответ с сервера",
"Didn't get a response from the server": "Не получен ответ с сервера",
'Insert': "Вставить",
'Cancel': "Отмена",
'Image description': "Информация",
});
11 changes: 11 additions & 0 deletions app/lib/uploadimage/langs/zh-cn.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
tinyMCE.addI18n('zh-cn', {
'Insert an image from your computer': "\u4e0a\u4f20\u56fe\u7247",
'Insert image': "\u63d2\u5165\u56fe\u7247",
'Choose an image': "\u9009\u62e9\u56fe\u7247",
'You must choose a file': "\u5fc5\u987b\u9009\u62e9\u6587\u4ef6",
'Got a bad response from the server': "\u670d\u52a1\u5668\u8fd4\u56de\u9519\u8bef",
"Didn't get a response from the server": "\u670d\u52a1\u5668\u6ca1\u6709\u54cd\u5e94",
'Insert': "\u63d2\u5165",
'Cancel': "\u53d6\u6d88",
'Image description': "\u56fe\u7247\u63cf\u8ff0",
});
1 change: 1 addition & 0 deletions app/lib/uploadimage/plugin.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ const defaults = {
pages: 'pages',
menus: ['menu-items'],
galleries: ['galleries', 'gallery-items']
},
'wysiwyg additional options': {
'external_plugins': {
'uploadimage': '/lib/uploadimage/plugin.min.js'
}
}
},
root: rootPath,
Expand Down

0 comments on commit 85c7c28

Please sign in to comment.