mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-09-12 17:52:13 +02:00
Merge branch 'main' into add_mail_support
This commit is contained in:
commit
ddc121a9c9
@ -134,7 +134,7 @@ Stirling-PDF currently supports 39 languages!
|
|||||||
| Hungarian (Magyar) (hu_HU) |  |
|
| Hungarian (Magyar) (hu_HU) |  |
|
||||||
| Indonesian (Bahasa Indonesia) (id_ID) |  |
|
| Indonesian (Bahasa Indonesia) (id_ID) |  |
|
||||||
| Irish (Gaeilge) (ga_IE) |  |
|
| Irish (Gaeilge) (ga_IE) |  |
|
||||||
| Italian (Italiano) (it_IT) |  |
|
| Italian (Italiano) (it_IT) |  |
|
||||||
| Japanese (日本語) (ja_JP) |  |
|
| Japanese (日本語) (ja_JP) |  |
|
||||||
| Korean (한국어) (ko_KR) |  |
|
| Korean (한국어) (ko_KR) |  |
|
||||||
| Norwegian (Norsk) (no_NB) |  |
|
| Norwegian (Norsk) (no_NB) |  |
|
||||||
|
@ -246,26 +246,28 @@ public class DatabaseService implements DatabaseInterface {
|
|||||||
boolean isDBUrlH2 =
|
boolean isDBUrlH2 =
|
||||||
datasource.getCustomDatabaseUrl().contains("h2")
|
datasource.getCustomDatabaseUrl().contains("h2")
|
||||||
|| datasource.getCustomDatabaseUrl().contains("H2");
|
|| datasource.getCustomDatabaseUrl().contains("H2");
|
||||||
|
boolean isCustomDatabase = datasource.isEnableCustomDatabase();
|
||||||
|
|
||||||
if (isTypeH2 && !isDBUrlH2) {
|
if (isCustomDatabase) {
|
||||||
log.warn(
|
if (isTypeH2 && !isDBUrlH2) {
|
||||||
"Datasource type is H2, but the URL does not contain 'h2'. "
|
log.warn(
|
||||||
+ "Please check your configuration.");
|
"Datasource type is H2, but the URL does not contain 'h2'. "
|
||||||
throw new IllegalStateException(
|
+ "Please check your configuration.");
|
||||||
"Datasource type is H2, but the URL does not contain 'h2'. Please check your"
|
throw new IllegalStateException(
|
||||||
+ " configuration.");
|
"Datasource type is H2, but the URL does not contain 'h2'. Please check"
|
||||||
} else if (!isTypeH2 && isDBUrlH2) {
|
+ " your configuration.");
|
||||||
log.warn(
|
} else if (!isTypeH2 && isDBUrlH2) {
|
||||||
"Datasource URL contains 'h2', but the type is not H2. "
|
log.warn(
|
||||||
+ "Please check your configuration.");
|
"Datasource URL contains 'h2', but the type is not H2. "
|
||||||
throw new IllegalStateException(
|
+ "Please check your configuration.");
|
||||||
"Datasource URL contains 'h2', but the type is not H2. Please check your"
|
throw new IllegalStateException(
|
||||||
+ " configuration.");
|
"Datasource URL contains 'h2', but the type is not H2. Please check your"
|
||||||
|
+ " configuration.");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean isH2 = isTypeH2 && isDBUrlH2;
|
boolean isH2 = isTypeH2 && isDBUrlH2;
|
||||||
|
|
||||||
return !datasource.isEnableCustomDatabase() || isH2;
|
return !isCustomDatabase || isH2;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -609,7 +609,7 @@ login.userIsDisabled=L'utente è disattivato, l'accesso è attualmente bloccato
|
|||||||
login.alreadyLoggedIn=Hai già effettuato l'accesso a
|
login.alreadyLoggedIn=Hai già effettuato l'accesso a
|
||||||
login.alreadyLoggedIn2=dispositivi. Esci dai dispositivi e riprova.
|
login.alreadyLoggedIn2=dispositivi. Esci dai dispositivi e riprova.
|
||||||
login.toManySessions=Hai troppe sessioni attive
|
login.toManySessions=Hai troppe sessioni attive
|
||||||
login.logoutMessage=You have been logged out.
|
login.logoutMessage=Sei stato disconnesso.
|
||||||
|
|
||||||
#auto-redact
|
#auto-redact
|
||||||
autoRedact.title=Redazione automatica
|
autoRedact.title=Redazione automatica
|
||||||
|
Loading…
Reference in New Issue
Block a user