提交 4476f2d2 authored 作者: Thomas Mueller's avatar Thomas Mueller

--no commit message

--no commit message
上级 a53bdf8b
......@@ -221,13 +221,13 @@ public class AppThread extends WebServerThread {
} else {
language = (String) session.get("language");
}
session.put("languageCombo", getCombobox(languageArray, language));
session.put("languageCombo", getComboBox(languageArray, language));
String[] settingNames = server.getAppServer().getSettingNames();
String setting = attributes.getProperty("setting");
if(setting == null && settingNames.length>0) {
setting = settingNames[0];
}
String combobox = getCombobox(settingNames, setting);
String combobox = getComboBox(settingNames, setting);
session.put("settingsList", combobox);
ConnectionInfo info = server.getAppServer().getSetting(setting);
if(info == null) {
......
......@@ -40,6 +40,7 @@ public class WebServer implements Service {
{ "hu", "Magyar"},
{ "in", "Indonesia"},
{ "pt_PT", "Portugu\u00eas (Europeu)"},
{ "pl", "Polski"},
};
/*
......@@ -108,7 +109,7 @@ public class WebServer implements Service {
return session;
}
WebServerSession createNewSession(Socket socket) {
WebServerSession createNewSession(String hostname) {
String newId;
do {
newId = generateSessionId();
......@@ -116,7 +117,7 @@ public class WebServer implements Service {
WebServerSession session = new AppSession(this);
session.put("sessionId", newId);
//session.put("ip", socket.getInetAddress().getCanonicalHostName());
session.put("ip", socket.getInetAddress().getHostName());
session.put("ip", hostname);
session.put("language", DEFAULT_LANGUAGE);
sessions.put(newId, session);
// always read the english translation, to that untranslated text appears at least in english
......
......@@ -32,7 +32,7 @@ abstract class WebServerThread extends Thread {
abstract String process(String file);
protected String getCombobox(String[] elements, String selected) {
protected String getComboBox(String[] elements, String selected) {
StringBuffer buff = new StringBuffer();
for(int i=0; i<elements.length; i++) {
String value = elements[i];
......@@ -49,7 +49,7 @@ abstract class WebServerThread extends Thread {
return buff.toString();
}
protected String getCombobox(String[][] elements, String selected) {
protected String getComboBox(String[][] elements, String selected) {
StringBuffer buff = new StringBuffer();
for(int i=0; i<elements.length; i++) {
String[] n = elements[i];
......@@ -113,7 +113,8 @@ abstract class WebServerThread extends Thread {
cache=false;
mimeType = "text/html";
if (session == null) {
session = server.createNewSession(socket);
String hostname = socket.getInetAddress().getHostName();
session = server.createNewSession(hostname);
if (!file.equals("notAllowed.jsp")) {
file = "index.do";
}
......
# Use the PropertiesToUTF8 tool to translate the files to UTF-8 and back
# Translator: Thomas Mueller
a.help=Hilfe
a.language=Deutsch
a.lynxNotSupported=Dieser Browser unterst&uuml;tzt keine Frames. Frames (und Javascript) werden ben&ouml;tigt.
......
# Use the PropertiesToUTF8 tool to translate the files to UTF-8 and back
# Translator: Tomek
a.help=Pomoc
a.language=Polski
a.lynxNotSupported=Przegladarka Lynx nie jest wpierana jeszcze
a.password=Haslo
a.remoteConnectionsDisabled=Polaczenia zdalne ('webAllowOthers') sa wylaczone na tym serwerze.
a.title=Konsola H2
a.user=Uzytkownik
admin.executing=Wykonywanie
admin.ip=IP
admin.lastAccess=Ostatnie logowanie
admin.lastQuery=Ostatnie zapytanie
admin.url=URL
adminAllow=Klienci autoryzowani
adminConnection=Zabezpieczenie polaczen
adminHttp=Uzywaj szyfrowanych polaczen HTTP
adminHttps=Uzywaj szyfrowanych polaczen SSL (HTTPS)
adminLocal=Tylko lokalne polaczenia
adminLogin=Logowanie administracyjne
adminLoginCancel=Anuluj
adminLoginOk=OK
adminLogout=Wyloguj
adminOthers=Pozwalaj na polaczenia zdalne
adminPort=Numer portu serwera Web
adminRestart=Zmiany beda widoczne po zrestartowaniu serwera.
adminSave=Zapisz
adminSessions=Aktywne sesje
adminShutdown=Wylacz
adminTitle=Ustawienia konsoli H2
helpAction=Akcja
helpAddAnotherRow=Dodaj kolejny rekord
helpAddDrivers=Dodatkowe sterowniki baz danych
helpAddDriversOnlyJava=Tylko implementacja w Javie pozwala na dodawanie dodatkowych sterownikw (nie wspierane przez wersje natywna).
helpAddDriversText=Dodatkowe sterowniki moga byc zarejestrowane przez dodanie pliku Jar ze sterownikiem do zmiennej srodowiskowej H2DRIVERS lub CLASSPATH. Przykladowo (Windows): Aby dodac sterownik z pliku C:\\Programs\\hsqldb\\lib\\hsqldb.jar, ustaw zmienna H2DRIVERS na C:\\Programs\\hsqldb\\lib\\hsqldb.jar.
helpAddRow=Dodaj nowy rekord
helpCommandHistory=Pokazuje historie komend
helpCreateTable=Tworzy nowa tabele
helpDeleteRow=Usun rekord
helpDisconnect=Wyloguj sie z bazy danych
helpDisplayThis=Wyswietla ta strone pomocy
helpDropTable=Skasuj tabele jezeli istnieje
helpExecuteCurrent=Wykonuje bierzace zapytanie SQL
helpIcon=Ikona
helpImportantCommands=Wazne komendy
helpOperations=Operacje
helpQuery=Wykonaj zapytanie
helpSampleSQL=Prosty skrypt SQL
helpStatements=Wyrazenia SQL
helpUpdate=Zmien dane w rekordzie
helpWithColumnsIdName=z kolumnami ID i NAME
login.connect=Polacz
login.driverClass=Klasa sterownika
login.driverNotFound=Sterownik nie istnieje<br />Zobacz w dokumentacji opis dodawania sterownikw
login.goAdmin=Opcje
login.jdbcUrl=JDBC URL
login.language=Jezyk
login.login=Uzytkownik
login.remove=Usun
login.save=Zapisz
login.savedSetting=Zapisz opcje
login.settingName=Nazwa opcji
login.testConnection=Testuj polaczenie
login.testSuccessful=Test zakonczony sukcesem
login.welcome=Konsola H2
result.1row=1 rekord
result.autoCommitOff=Automatyczne zatwierdzanie jest teraz WYLACZONE
result.autoCommitOn=Automatyczne zatwierdzanie jest teraz WLACZONE
result.maxrowsSet=Maksymalna ilosc rekordw
result.noRows=brak danych
result.noRunningStatement=Obecnie nie jest wykonywane zedne zapytanie
result.rows=rekordy
result.statementWasCancelled=Zapytanie zostalo anulowane
result.updateCount=Ilosc aktualizacji
resultEdit.add=Dodaj
resultEdit.cancel=Anuluj
resultEdit.delete=Skasuj
resultEdit.edit=Edytuj
resultEdit.editResult=Edytuj
resultEdit.save=Zapisz
toolbar.all=Wszystko
toolbar.autoCommit=Automatyczne zatwierdzanie
toolbar.autoComplete=Automatyczne uzupelnianie
toolbar.autoComplete.off=Wylaczony
toolbar.autoComplete.normal=Normalny
toolbar.autoComplete.full=Pelny
toolbar.cancelStatement=Anuluj bierzace zapytanie
toolbar.clear=Wyczysc
toolbar.commit=Zatwierdz
toolbar.disconnect=Rozlacz
toolbar.history=Historia komend
toolbar.maxRows=Maksymalna ilosc rekordw
toolbar.refresh=Odswiez
toolbar.rollback=Cofnij zmiany
toolbar.run=Wykonaj (Ctrl+Enter)
toolbar.sqlStatement=Zapytanie SQL
tree.admin=Administrator
tree.current=Bierzaca wartosc
tree.hashed=Haszowany
tree.increment=Inkrementacja
tree.indexes=Indeksy
tree.nonUnique=Nie unikalny
tree.sequences=Sekwencje
tree.unique=Unikalny
tree.users=Uzytkownicy
......@@ -4,6 +4,7 @@
*/
package org.h2.store;
import java.io.File;
import java.sql.SQLException;
import java.util.ArrayList;
......@@ -38,7 +39,7 @@ public class FileLister {
if(dir == null || dir.equals("")) {
dir = ".";
}
String start = db == null ? null : FileUtils.normalize(dir + "/" + db);
String start = db == null ? null : FileUtils.normalize(dir + File.separator + db);
String[] list = FileUtils.listFiles(dir);
for(int i=0; list!=null && i<list.length; i++) {
String f = list[i];
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论