From b74960ecd342154de60881a0f00eaa6816012fdb Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Mon, 16 Oct 2017 13:32:01 +0200 Subject: [PATCH 1/3] Fix download issue --- src/Gist/Controller/ViewController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Gist/Controller/ViewController.php b/src/Gist/Controller/ViewController.php index fd9f262..44aeedc 100644 --- a/src/Gist/Controller/ViewController.php +++ b/src/Gist/Controller/ViewController.php @@ -131,7 +131,7 @@ class ViewController extends Controller 200, array( 'Content-Disposition' => sprintf('filename=%s.%s', $gist->getFile(), $gist->getTypeAsExtension()), - 'Content-Length' => filesize($file), + 'Content-Length' => mb_strlen($viewOptions['raw_content']), 'Content-Type' => 'application/force-download', ) ); From d73e4df326c500b6a7b10324651d6eeae8ee55d3 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Wed, 28 Mar 2018 12:06:25 +0200 Subject: [PATCH 2/3] Fix issue #12: make error in Debian 9 Stretch --- Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/Makefile b/Makefile index 599de5e..7dd29cc 100644 --- a/Makefile +++ b/Makefile @@ -31,7 +31,6 @@ update: @echo "-----------------------------------" @echo - sh -c 'test -d app && $(GIT) add app && $(GIT) commit -m "Configuration"' $(GIT) pull origin master ${MKDIR} -p data/git $(COMPOSER) update From 75297b565b165c9917c83d9b1dada7f1098e35bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20=C5=BBmijewski?= Date: Tue, 10 Apr 2018 16:45:51 +0200 Subject: [PATCH 3/3] Polish translation --- app/locales/pl.yml | 108 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 108 insertions(+) create mode 100644 app/locales/pl.yml diff --git a/app/locales/pl.yml b/app/locales/pl.yml new file mode 100644 index 0000000..e250227 --- /dev/null +++ b/app/locales/pl.yml @@ -0,0 +1,108 @@ +app: + title: '#!GIST' + title_prefix: '#!GIST - ' + + menu: + home: + title: 'Home' + about: + title: 'O projekcie' + my: + login: + title: 'Logowanie' + logout: + title: 'Wylogowanie' + register: + title: 'Rejestracja' + my: + title: 'Konta' + +my: + title: 'Moje wklejki' + nothing: 'Nie ma jeszcze nic!' + api: + title: 'API' + warning: 'Trzymaj to w sekrecie!' + form: + generate: 'Wygeneruj nowy' + + +gist: + untitled: 'Bez tytułu' + 404: + title: 'Oops!' + message: 'Wklejka nie została znaleziona...' + action: + view: 'Podgląd' + history: 'Commit(s)' + raw: 'RAW' + download: 'Pobierz' + clone: 'Sklonuj' + embed: 'Embed' + add: 'Nowa' + +date: + format: 'Y-m-d h:i:s' + +footer: + text: '

Napędzane przez GIST, to jest open source :) - API

' + +login: + login: + title: 'Logowanie' + invalid: 'Nie prawidłowy login lub hasło.' + form: + username: + placeholder: 'Login' + password: + placeholder: 'Hasło' + remember_me: + label: 'Pamiętaj' + register: + title: 'Nowe konto' + already_exists: 'Ta nazwa użytkownika jest już zarejestrowana!' + registred: 'Gratulacje, twoje konto zostało utworzone!' + form: + username: + placeholder: 'Login' + current_password: + placeholder: 'Obecne hasło' + password: + placeholder: 'Hasło' + +form: + error: + password: 'Nie prawidłowe hasło.' + not_blank: 'To pole nie powinno być puste!' + title: + placeholder: 'Tytuł' + cipher: + label: 'Szyfrowanie: %value%' + choice: + anyway: 'Tak czy inaczej' + yes: 'Tak' + no: 'Nie' + submit: 'Wyślij' + filter: 'Filtr' + confirm: 'Potwierdzasz?' + success: + password: 'Hasło zostało zaktualizowane.' + gist: 'Wklejka została usunięta.' + type: + label: 'Język: %value%' + choice: + all: 'All' + html: 'HTML' + xml: 'XML' + css: 'CSS' + javascript: 'JAVASCRIPT' + php: 'PHP' + sql: 'SQL' + yaml: 'YAML' + perl: 'PERL' + c: 'C/C++' + asp: 'ASP' + python: 'PYTHON' + bash: 'BASH' + actionscript3: 'ACTION SCRIPT' + text: 'TEXT'