From a488c19d61137250c54c1ed52d71f505e674ac43 Mon Sep 17 00:00:00 2001 From: Andrey Grinenko Date: Mon, 23 Feb 2015 01:29:28 +0300 Subject: [PATCH] Prompt when F5 (Ctrl-R) is pressed. It is common thing to refresh page after you have made some tweaks, and it is common thing to refresh wrong page and even although everything is saved and tabs will reopen - you will loose opened folders in fileManager and cursor positions in open files. So it's better to prompt anyway. --- index.php | 1 + lang/chinese-simplified.php | 1 + lang/chinese-traditional.php | 1 + lang/dutch.php | 1 + lang/english.php | 17 +++++++++++++++-- lang/french.php | 1 + lang/german.php | 1 + lang/italian.php | 1 + lang/norwegian.php | 1 + lang/persian.php | 1 + lang/portuguese_brazilian.php | 1 + lang/spanish.php | 1 + 12 files changed, 26 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 7206d19..f7fc4f6 100644 --- a/index.php +++ b/index.php @@ -57,6 +57,7 @@ window.onbeforeunload = function() { return "."; } } + return ""; } t = { diff --git a/lang/chinese-simplified.php b/lang/chinese-simplified.php index 2797a5a..22b46e6 100644 --- a/lang/chinese-simplified.php +++ b/lang/chinese-simplified.php @@ -49,6 +49,7 @@ $text = array( "Your version is" => "你的版本是", "Update now" => "现在更新", "You have some..." => "你有一些未保存的更改", + "Are you sure you want to close?" => "Are you sure you want to close?", "working" => "载入中", "Color picker" => "颜色选择器", "New File" => "新建文件", diff --git a/lang/chinese-traditional.php b/lang/chinese-traditional.php index 231ea46..da39aa7 100644 --- a/lang/chinese-traditional.php +++ b/lang/chinese-traditional.php @@ -49,6 +49,7 @@ $text = array( "Your version is" => "你的版本是", "Update now" => "現在更新", "You have some..." => "你有一些未保存的更改", + "Are you sure you want to close?" => "Are you sure you want to close?", "working" => "裝載中", "Color picker" => "顔色選擇器", "New File" => "新建文件", diff --git a/lang/dutch.php b/lang/dutch.php index 0b140bb..dfa441e 100644 --- a/lang/dutch.php +++ b/lang/dutch.php @@ -51,6 +51,7 @@ in lib/config__settings.php", "Your version is" => "Uw versie is", "Update now" => "Nu updaten", "You have some..." => "Er zijn wijzigingen die niet opgeslagen zijn", + "Are you sure you want to close?" => "Are you sure you want to close?", "working" => "bezig", "Color picker" => "Kleuren kiezer", "New File" => "Nieuw bestand", diff --git a/lang/english.php b/lang/english.php index 0dd058c..5c30e52 100644 --- a/lang/english.php +++ b/lang/english.php @@ -48,6 +48,7 @@ $text = array( "Your version is" => "Your version is", "Update now" => "Update now", "You have some..." => "You have some unsaved changes", + "Are you sure you want to close?" => "Are you sure you want to close?", "working" => "working", "Color picker" => "Color picker", "New File" => "New File", @@ -431,7 +432,19 @@ $text = array( "updater" => array( "Update appears to..." => "Update appears to be successful" - ) - + ), + + "find-in-files" => + array( + "Enter path to search in" => "Enter path to search in", + "Enter semicolon-separated masks of files to look at (e.g. *.php;*.html;*.js)" => "Enter semicolon-separated masks of files to look at (e.g. *.php;*.html;*.js)", + "Type of text" => "Type of text", + "Fixed text" => "Fixed text", + "Regular expression" => "Regular expression", + "Case sensitive" => "Case sensitive", + "Yes" => "Yes", + "No" => "No", + "Search" => "Search", + ), ); ?> \ No newline at end of file diff --git a/lang/french.php b/lang/french.php index 44b75b1..63a576c 100644 --- a/lang/french.php +++ b/lang/french.php @@ -48,6 +48,7 @@ dans lib/config__settings.php", "Your version is" => "Votre version est la", "Update now" => "Mettre à jour maintenant", "You have some..." => "Vous avez quelques changements non sauvegardés", + "Are you sure you want to close?" => "Are you sure you want to close?", "working" => "en progression", "Color picker" => "Sélecteur de couleur", "New File" => "Nouveau fichier", diff --git a/lang/german.php b/lang/german.php index 7e67223..940b450 100644 --- a/lang/german.php +++ b/lang/german.php @@ -49,6 +49,7 @@ $text = array( "Your version is" => "Deine Version ist", "Update now" => "Jetzt aktualisieren", "You have some..." => "Du hast einige nicht gespeicherete Dateien", + "Are you sure you want to close?" => "Are you sure you want to close?", "working" => "arbeite", "Color picker" => "Farbauswahl", "New File" => "Neue Datei", diff --git a/lang/italian.php b/lang/italian.php index 05215d1..8dd7681 100644 --- a/lang/italian.php +++ b/lang/italian.php @@ -48,6 +48,7 @@ $text = array( "Your version is" => "La tua versione Egrave;", "Update now" => "Aggiorna ora", "You have some..." => "Ci sono modifiche non salvate", + "Are you sure you want to close?" => "Are you sure you want to close?", "working" => "working", "Color picker" => "Selettore di colore", "New File" => "Nuovo file", diff --git a/lang/norwegian.php b/lang/norwegian.php index 66069c5..8da2293 100644 --- a/lang/norwegian.php +++ b/lang/norwegian.php @@ -49,6 +49,7 @@ $text = array( "Your version is" => "Din versjon er", "Update now" => "Oppdater n", "You have some..." => "Du har noe ulagrede endringer", + "Are you sure you want to close?" => "Are you sure you want to close?", "working" => "arbeider", "Color picker" => "Fargevelger", "New File" => "Ny Fil", diff --git a/lang/persian.php b/lang/persian.php index 6712d73..e369f08 100644 --- a/lang/persian.php +++ b/lang/persian.php @@ -49,6 +49,7 @@ $text = array( "Your version is" => "نسخه مورد استفاده شما", "Update now" => "به روز کنید", "You have some..." => "شما چند تغییر ذخیره نشده دارید", + "Are you sure you want to close?" => "Are you sure you want to close?", "working" => "در حال کار", "Color picker" => "اشاره گر رنگ", "New File" => "فایل جدید", diff --git a/lang/portuguese_brazilian.php b/lang/portuguese_brazilian.php index 69a5697..5b5889f 100644 --- a/lang/portuguese_brazilian.php +++ b/lang/portuguese_brazilian.php @@ -48,6 +48,7 @@ $text = array( "Your version is" => "Sua verso ", "Update now" => "Atualizar j", "You have some..." => "Voce possui alteraes no salvas", + "Are you sure you want to close?" => "Are you sure you want to close?", "working" => "trabalhando", "Color picker" => "Color picker", "New File" => "Novo Arquivo", diff --git a/lang/spanish.php b/lang/spanish.php index 4c8ac80..467dc6e 100644 --- a/lang/spanish.php +++ b/lang/spanish.php @@ -47,6 +47,7 @@ $text = array( "Your version is" => "Su versión es", "Update now" => "Actualizar ahora", "You have some..." => "Usted tiene cambios sin guardar", + "Are you sure you want to close?" => "Are you sure you want to close?", "working" => "trabajando", "Color picker" => "Selector de color", "New File" => "Nuevo archivo",