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.

This commit is contained in:
Andrey Grinenko
2015-02-23 01:29:28 +03:00
parent c1982279f4
commit a488c19d61
12 changed files with 26 additions and 2 deletions

View File

@@ -57,6 +57,7 @@ window.onbeforeunload = function() {
return "<?php echo $t['You have some...'];?>.";
}
}
return "<?php echo $t['Are you sure you want to close?'];?>";
}
t = {

View File

@@ -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" => "新建文件",

View File

@@ -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" => "新建文件",

View File

@@ -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",

View File

@@ -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",
),
);
?>

View File

@@ -48,6 +48,7 @@ dans lib/config__settings.php",
"Your version is" => "Votre version est la",
"Update now" => "Mettre &agrave; jour maintenant",
"You have some..." => "Vous avez quelques changements non sauvegard&eacute;s",
"Are you sure you want to close?" => "Are you sure you want to close?",
"working" => "en progression",
"Color picker" => "S&eacute;lecteur de couleur",
"New File" => "Nouveau fichier",

View File

@@ -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",

View File

@@ -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",

View File

@@ -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",

View File

@@ -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" => "فایل جدید",

View File

@@ -48,6 +48,7 @@ $text = array(
"Your version is" => "Sua versão é",
"Update now" => "Atualizar já",
"You have some..." => "Voce possui alterações não 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",

View File

@@ -47,6 +47,7 @@ $text = array(
"Your version is" => "Su versi&oacute;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",