diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml new file mode 100644 index 0000000..8e856b8 --- /dev/null +++ b/.github/workflows/php.yml @@ -0,0 +1,23 @@ +name: PHP Composer + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + + - name: Validate composer.json and composer.lock + run: composer validate + + - name: Install dependencies + run: composer install --prefer-dist --no-progress --no-suggest + + # Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit" + # Docs: https://getcomposer.org/doc/articles/scripts.md + + # - name: Run test suite + # run: composer run-script test diff --git a/README.md b/README.md index ff86e97..1795399 100644 --- a/README.md +++ b/README.md @@ -95,9 +95,9 @@ file](https://github.com/PrivateBin/PrivateBin/wiki/Configuration): ## Further resources -* [Installation guide](https://github.com/PrivateBin/PrivateBin/blob/master/INSTALL.md#installation) +* [FAQ](https://github.com/PrivateBin/PrivateBin/wiki/FAQ) -* [Upgrading from ZeroBin 0.19 Alpha](https://github.com/PrivateBin/PrivateBin/wiki/Upgrading-from-ZeroBin-0.19-Alpha) +* [Installation guide](https://github.com/PrivateBin/PrivateBin/blob/master/INSTALL.md#installation) * [Configuration guide](https://github.com/PrivateBin/PrivateBin/wiki/Configuration) diff --git a/i18n/bg.json b/i18n/bg.json index 6366606..632bedb 100644 --- a/i18n/bg.json +++ b/i18n/bg.json @@ -168,5 +168,21 @@ "Retry": "Retry", "Showing raw text…": - "Showing raw text…" + "Showing raw text…", + "Notice:": + "Notice:", + "This link will expire after %s.": + "This link will expire after %s.", + "This link can only be accessed once, do not use back or refresh button in your browser.": + "This link can only be accessed once, do not use back or refresh button in your browser.", + "Link:": + "Link:", + "Recipient may become aware of your timezone, convert time to UTC?": + "Recipient may become aware of your timezone, convert time to UTC?", + "Use Current Timezone": + "Use Current Timezone", + "Convert To UTC": + "Convert To UTC", + "Close": + "Close" } diff --git a/i18n/cs.json b/i18n/cs.json index 02b599d..02a5551 100644 --- a/i18n/cs.json +++ b/i18n/cs.json @@ -168,5 +168,21 @@ "Retry": "Retry", "Showing raw text…": - "Showing raw text…" + "Showing raw text…", + "Notice:": + "Notice:", + "This link will expire after %s.": + "This link will expire after %s.", + "This link can only be accessed once, do not use back or refresh button in your browser.": + "This link can only be accessed once, do not use back or refresh button in your browser.", + "Link:": + "Link:", + "Recipient may become aware of your timezone, convert time to UTC?": + "Recipient may become aware of your timezone, convert time to UTC?", + "Use Current Timezone": + "Use Current Timezone", + "Convert To UTC": + "Convert To UTC", + "Close": + "Close" } diff --git a/i18n/de.json b/i18n/de.json index 1d6678a..2c883df 100644 --- a/i18n/de.json +++ b/i18n/de.json @@ -168,5 +168,21 @@ "Retry": "Wiederholen", "Showing raw text…": - "Zeige reinen Text an…" + "Zeige reinen Text an…", + "Notice:": + "Hinweis:", + "This link will expire after %s.": + "Dieser Link wird in %s ablaufen.", + "This link can only be accessed once, do not use back or refresh button in your browser.": + "Dieser Link kann nur einmal geöffnet werden, verwende nicht den \"Zurück\" oder \"Neu laden\" Knopf Deines Browsers.", + "Link:": + "Link:", + "Recipient may become aware of your timezone, convert time to UTC?": + "Der Empfänger könnte Deine Zeitzone erfahren, möchtest Du die Zeit in UTC umwandeln?", + "Use Current Timezone": + "Aktuelle Zeitzone verwenden", + "Convert To UTC": + "In UTC Umwandeln", + "Close": + "Schliessen" } diff --git a/i18n/es.json b/i18n/es.json index 564dd72..9350987 100644 --- a/i18n/es.json +++ b/i18n/es.json @@ -168,5 +168,21 @@ "Retry": "Retry", "Showing raw text…": - "Showing raw text…" + "Showing raw text…", + "Notice:": + "Notice:", + "This link will expire after %s.": + "This link will expire after %s.", + "This link can only be accessed once, do not use back or refresh button in your browser.": + "This link can only be accessed once, do not use back or refresh button in your browser.", + "Link:": + "Link:", + "Recipient may become aware of your timezone, convert time to UTC?": + "Recipient may become aware of your timezone, convert time to UTC?", + "Use Current Timezone": + "Use Current Timezone", + "Convert To UTC": + "Convert To UTC", + "Close": + "Close" } diff --git a/i18n/fr.json b/i18n/fr.json index 5c71e4b..9af77fb 100644 --- a/i18n/fr.json +++ b/i18n/fr.json @@ -177,5 +177,21 @@ "Retry": "Retry", "Showing raw text…": - "Showing raw text…" + "Affichage du texte brut…", + "Notice:": + "Avertissement :", + "This link will expire after %s.": + "Ce lien expire après le %s.", + "This link can only be accessed once, do not use back or refresh button in your browser.": + "Vous ne pouvez accéder à ce lien qu'une seule fois, n'utilisez pas le bouton précédent ou rafraîchir de votre navigateur.", + "Link:": + "Lien :", + "Recipient may become aware of your timezone, convert time to UTC?": + "Le destinataire peut connaître votre fuseau horaire, convertir l'heure au format UTC ?", + "Use Current Timezone": + "Conserver l'actuel", + "Convert To UTC": + "Convertir en UTC", + "Close": + "Fermer" } diff --git a/i18n/hu.json b/i18n/hu.json index c3e11a7..57076d9 100644 --- a/i18n/hu.json +++ b/i18n/hu.json @@ -168,5 +168,21 @@ "Retry": "Retry", "Showing raw text…": - "Showing raw text…" + "Showing raw text…", + "Notice:": + "Notice:", + "This link will expire after %s.": + "This link will expire after %s.", + "This link can only be accessed once, do not use back or refresh button in your browser.": + "This link can only be accessed once, do not use back or refresh button in your browser.", + "Link:": + "Link:", + "Recipient may become aware of your timezone, convert time to UTC?": + "Recipient may become aware of your timezone, convert time to UTC?", + "Use Current Timezone": + "Use Current Timezone", + "Convert To UTC": + "Convert To UTC", + "Close": + "Close" } diff --git a/i18n/it.json b/i18n/it.json index 07af891..26b11c6 100644 --- a/i18n/it.json +++ b/i18n/it.json @@ -168,5 +168,21 @@ "Retry": "Retry", "Showing raw text…": - "Showing raw text…" + "Showing raw text…", + "Notice:": + "Notice:", + "This link will expire after %s.": + "This link will expire after %s.", + "This link can only be accessed once, do not use back or refresh button in your browser.": + "This link can only be accessed once, do not use back or refresh button in your browser.", + "Link:": + "Link:", + "Recipient may become aware of your timezone, convert time to UTC?": + "Recipient may become aware of your timezone, convert time to UTC?", + "Use Current Timezone": + "Use Current Timezone", + "Convert To UTC": + "Convert To UTC", + "Close": + "Close" } diff --git a/i18n/nl.json b/i18n/nl.json index 29554d8..d6780c3 100644 --- a/i18n/nl.json +++ b/i18n/nl.json @@ -168,5 +168,21 @@ "Retry": "Retry", "Showing raw text…": - "Showing raw text…" + "Showing raw text…", + "Notice:": + "Notice:", + "This link will expire after %s.": + "This link will expire after %s.", + "This link can only be accessed once, do not use back or refresh button in your browser.": + "This link can only be accessed once, do not use back or refresh button in your browser.", + "Link:": + "Link:", + "Recipient may become aware of your timezone, convert time to UTC?": + "Recipient may become aware of your timezone, convert time to UTC?", + "Use Current Timezone": + "Use Current Timezone", + "Convert To UTC": + "Convert To UTC", + "Close": + "Close" } diff --git a/i18n/no.json b/i18n/no.json index a2ad2c1..ccb5f2c 100644 --- a/i18n/no.json +++ b/i18n/no.json @@ -168,5 +168,21 @@ "Retry": "Retry", "Showing raw text…": - "Showing raw text…" + "Showing raw text…", + "Notice:": + "Notice:", + "This link will expire after %s.": + "This link will expire after %s.", + "This link can only be accessed once, do not use back or refresh button in your browser.": + "This link can only be accessed once, do not use back or refresh button in your browser.", + "Link:": + "Link:", + "Recipient may become aware of your timezone, convert time to UTC?": + "Recipient may become aware of your timezone, convert time to UTC?", + "Use Current Timezone": + "Use Current Timezone", + "Convert To UTC": + "Convert To UTC", + "Close": + "Close" } diff --git a/i18n/oc.json b/i18n/oc.json index 43a0db7..7f9ad2a 100644 --- a/i18n/oc.json +++ b/i18n/oc.json @@ -169,13 +169,29 @@ "Your browser may require an HTTPS connection to support the WebCrypto API. Try switching to HTTPS.": "Se pòt que vòstre navigator faga besonh d’una connexion HTTPS per èsser compatible amb l’API WebCrypto. Ensajatz de passar al HTTPS.", "Your browser doesn't support WebAssembly, used for zlib compression. You can create uncompressed documents, but can't read compressed ones.": - "Your browser doesn't support WebAssembly, used for zlib compression. You can create uncompressed documents, but can't read compressed ones.", + "Vòstre navigator es pas compatible amb WebAssembly, utilizat per la compression zlib. Podètz crear de documents pas compressat, mas ne podètz pas legir de compressats.", "waiting on user to provide a password": - "waiting on user to provide a password", + "en espèra que l’utilizaire fornisca un senhal", "Could not decrypt data. Did you enter a wrong password? Retry with the button at the top.": - "Could not decrypt data. Did you enter a wrong password? Retry with the button at the top.", + "Deschiframent de las donadas impossible. Avètz picat un marrit senhal ? Tornatz ensajar amb lo boton ennaut.", "Retry": - "Retry", + "Tornar ensajar", "Showing raw text…": - "Showing raw text…" + "Afichatge del tèxte brut…", + "Notice:": + "Avertiment :", + "This link will expire after %s.": + "Aqueste ligam expirarà aprèp %s.", + "This link can only be accessed once, do not use back or refresh button in your browser.": + "Òm pòt pas qu’accedir a aqueste ligam qu’un còp, utilizetz pas lo boton precedent o actualizar del navigator.", + "Link:": + "Ligam :", + "Recipient may become aware of your timezone, convert time to UTC?": + "Lo destinatari pòt s’avisar de vòstre fus orari, convertir en UTC ?", + "Use Current Timezone": + "Utilizar l’actual", + "Convert To UTC": + "Convertir en UTC", + "Close": + "Tampar" } diff --git a/i18n/pl.json b/i18n/pl.json index 6b5cbb5..ff27c47 100644 --- a/i18n/pl.json +++ b/i18n/pl.json @@ -168,5 +168,21 @@ "Retry": "Retry", "Showing raw text…": - "Showing raw text…" + "Showing raw text…", + "Notice:": + "Notice:", + "This link will expire after %s.": + "This link will expire after %s.", + "This link can only be accessed once, do not use back or refresh button in your browser.": + "This link can only be accessed once, do not use back or refresh button in your browser.", + "Link:": + "Link:", + "Recipient may become aware of your timezone, convert time to UTC?": + "Recipient may become aware of your timezone, convert time to UTC?", + "Use Current Timezone": + "Use Current Timezone", + "Convert To UTC": + "Convert To UTC", + "Close": + "Close" } diff --git a/i18n/pt.json b/i18n/pt.json index 253a45e..6ccd9d3 100644 --- a/i18n/pt.json +++ b/i18n/pt.json @@ -151,22 +151,38 @@ "Caso essa mensagem nunca desapareça, por favor veja este FAQ para saber como resolver os problemas.", "+++ no paste text +++": "+++ sem texto de cópia +++", "Could not get paste data: %s": - "Could not get paste data: %s", - "QR code": "QR code", + "Não foi possível obter dados de cópia: %s", + "QR code": "Código QR", "This website is using an insecure HTTP connection! Please use it only for testing.": - "This website is using an insecure HTTP connection! Please use it only for testing.", + "Esse site usa uma conexão HTTP insegura! Use-o apenas para testes.", "For more information see this FAQ entry.": - "For more information see this FAQ entry.", + "Para mais informações veja esse item do FAQ.", "Your browser may require an HTTPS connection to support the WebCrypto API. Try switching to HTTPS.": - "Your browser may require an HTTPS connection to support the WebCrypto API. Try switching to HTTPS.", + "Seu navegador pode exigir uma conexão HTTPS para dar suporte à API WebCrypto. Tente mudar para HTTPS.", "Your browser doesn't support WebAssembly, used for zlib compression. You can create uncompressed documents, but can't read compressed ones.": - "Your browser doesn't support WebAssembly, used for zlib compression. You can create uncompressed documents, but can't read compressed ones.", + "Seu navagador não suporta WebAssembly, usado para compressão zlib. Você pode criar documentos não compactados, mas não pode lê-los.", "waiting on user to provide a password": - "waiting on user to provide a password", + "esperando que o usuário digite uma senha", "Could not decrypt data. Did you enter a wrong password? Retry with the button at the top.": - "Could not decrypt data. Did you enter a wrong password? Retry with the button at the top.", + "Não foi possível decifrar os dados. Você digitou a senha corretamente? Tente novamente com o botão ao topo.", "Retry": - "Retry", + "Tentar Novamente", "Showing raw text…": - "Showing raw text…" + "Mostrando texto bruto…", + "Notice:": + "Aviso:", + "This link will expire after %s.": + "Esse link vai expirar após %s.", + "This link can only be accessed once, do not use back or refresh button in your browser.": + "Esse link só pode ser acessado uma vez, não utilize o botão de voltar ou atualizar do seu navegador.", + "Link:": + "Link:", + "Recipient may become aware of your timezone, convert time to UTC?": + "O recipiente pode ter ciência de seu fuso horário, converter hora para UTC?", + "Use Current Timezone": + "Usar Fuso Horário Atual", + "Convert To UTC": + "Converter para UTC", + "Close": + "Fechar" } diff --git a/i18n/ru.json b/i18n/ru.json index 77a03f6..c65d5e9 100644 --- a/i18n/ru.json +++ b/i18n/ru.json @@ -178,5 +178,21 @@ "Retry": "Retry", "Showing raw text…": - "Showing raw text…" + "Showing raw text…", + "Notice:": + "Notice:", + "This link will expire after %s.": + "This link will expire after %s.", + "This link can only be accessed once, do not use back or refresh button in your browser.": + "This link can only be accessed once, do not use back or refresh button in your browser.", + "Link:": + "Link:", + "Recipient may become aware of your timezone, convert time to UTC?": + "Recipient may become aware of your timezone, convert time to UTC?", + "Use Current Timezone": + "Use Current Timezone", + "Convert To UTC": + "Convert To UTC", + "Close": + "Close" } diff --git a/i18n/sl.json b/i18n/sl.json index f93d475..804e5fb 100644 --- a/i18n/sl.json +++ b/i18n/sl.json @@ -1,7 +1,7 @@ { "PrivateBin": "PrivateBin", "%s is a minimalist, open source online pastebin where the server has zero knowledge of pasted data. Data is encrypted/decrypted in the browser using 256 bits AES. More information on the project page.": - "%s je minimalističen, odprtokodni spletni 'pastebin', kjer server ne ve ničesar o prilepljenih podatkih. Podatki so zakodirani/odkodirani v brskalniku z uporabo 256 bitnega AES. Več informacij na < href=\"https://privatebin.info/\">spletni strani projekta..", + "%s je minimalističen, odprtokodni spletni 'pastebin', kjer server ne ve ničesar o prilepljenih podatkih. Podatki so zakodirani/odkodirani v brskalniku z uporabo 256 bitnega AES. Več informacij na spletni strani projekta..", "Because ignorance is bliss": "Ker kar ne veš ne boli.", "en": "sl", @@ -177,5 +177,21 @@ "Retry": "Retry", "Showing raw text…": - "Showing raw text…" + "Showing raw text…", + "Notice:": + "Notice:", + "This link will expire after %s.": + "This link will expire after %s.", + "This link can only be accessed once, do not use back or refresh button in your browser.": + "This link can only be accessed once, do not use back or refresh button in your browser.", + "Link:": + "Link:", + "Recipient may become aware of your timezone, convert time to UTC?": + "Recipient may become aware of your timezone, convert time to UTC?", + "Use Current Timezone": + "Use Current Timezone", + "Convert To UTC": + "Convert To UTC", + "Close": + "Close" } diff --git a/i18n/uk.json b/i18n/uk.json index 6fa2ee2..fd53982 100644 --- a/i18n/uk.json +++ b/i18n/uk.json @@ -178,5 +178,21 @@ "Retry": "Retry", "Showing raw text…": - "Showing raw text…" + "Showing raw text…", + "Notice:": + "Notice:", + "This link will expire after %s.": + "This link will expire after %s.", + "This link can only be accessed once, do not use back or refresh button in your browser.": + "This link can only be accessed once, do not use back or refresh button in your browser.", + "Link:": + "Link:", + "Recipient may become aware of your timezone, convert time to UTC?": + "Recipient may become aware of your timezone, convert time to UTC?", + "Use Current Timezone": + "Use Current Timezone", + "Convert To UTC": + "Convert To UTC", + "Close": + "Close" } diff --git a/i18n/zh.json b/i18n/zh.json index b4bccbd..d5e55fb 100644 --- a/i18n/zh.json +++ b/i18n/zh.json @@ -168,5 +168,21 @@ "Retry": "重试", "Showing raw text…": - "显示原始文字…" + "显示原始文字…", + "Notice:": + "注意:", + "This link will expire after %s.": + "这个链接将会在 %s 过期。", + "This link can only be accessed once, do not use back or refresh button in your browser.": + "这个链接只能被访问一次,请勿使用浏览器中的返回和刷新按钮。", + "Link:": + "链接地址:", + "Recipient may become aware of your timezone, convert time to UTC?": + "收件人可能会知道您的时区,将时间转换为UTC?", + "Use Current Timezone": + "使用当前时区", + "Convert To UTC": + "转换为UTC", + "Close": + "关闭" } diff --git a/js/privatebin.js b/js/privatebin.js index b0d60eb..c1b016b 100644 --- a/js/privatebin.js +++ b/js/privatebin.js @@ -2220,6 +2220,9 @@ jQuery.PrivateBin = (function($, RawDeflate) { $messageEdit.addClass('active'); $messagePreview.removeClass('active'); + $('#messageedit').attr('aria-selected','true'); + $('#messagepreview').attr('aria-selected','false'); + PasteViewer.hide(); // reshow input @@ -2249,6 +2252,9 @@ jQuery.PrivateBin = (function($, RawDeflate) { $messageEdit.removeClass('active'); $messagePreview.addClass('active'); + $('#messageedit').attr('aria-selected','false'); + $('#messagepreview').attr('aria-selected','true'); + // hide input as now preview is shown $message.addClass('hidden'); diff --git a/tpl/bootstrap.php b/tpl/bootstrap.php index 74338ea..e7d5980 100644 --- a/tpl/bootstrap.php +++ b/tpl/bootstrap.php @@ -72,7 +72,7 @@ endif; ?> - + diff --git a/tpl/page.php b/tpl/page.php index 9a512e1..2edbff3 100644 --- a/tpl/page.php +++ b/tpl/page.php @@ -50,7 +50,7 @@ endif; ?> - +