working on backend-side translations

This commit is contained in:
2025-12-14 12:36:26 +01:00
parent 00d05bfaff
commit 9fd540ba3c
12 changed files with 59 additions and 81 deletions

View File

@@ -6,7 +6,6 @@ import de.srsoftware.umbrella.core.model.Permission;
import de.srsoftware.umbrella.core.model.Project;
import de.srsoftware.umbrella.core.model.Status;
import de.srsoftware.umbrella.core.model.UmbrellaUser;
import java.util.Collection;
import java.util.Map;

View File

@@ -14,18 +14,16 @@ import static de.srsoftware.umbrella.project.Constants.*;
import static java.text.MessageFormat.format;
import de.srsoftware.umbrella.core.BaseDb;
import de.srsoftware.umbrella.core.ModuleRegistry;
import de.srsoftware.umbrella.core.exceptions.UmbrellaException;
import de.srsoftware.umbrella.core.model.Permission;
import de.srsoftware.umbrella.core.model.Project;
import de.srsoftware.umbrella.core.model.Status;
import de.srsoftware.umbrella.core.model.UmbrellaUser;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import de.srsoftware.umbrella.core.model.UmbrellaUser;
import org.json.JSONObject;
public class SqliteDb extends BaseDb implements ProjectDb {
@@ -114,7 +112,7 @@ CREATE TABLE IF NOT EXISTS {0} (
.where(USER_ID,equal(userId))
.execute(db);
} catch (SQLException e) {
throw databaseException(FAILED_TO_DROP_MEMBER_FROM_PROJECT);
throw databaseException(FAILED_TO_DROP_ENTITY_OF_ENTITY,"member",userId,"project",projectId);
}
}
@@ -154,7 +152,7 @@ CREATE TABLE IF NOT EXISTS {0} (
rs.close();
return project;
} catch (SQLException e) {
throw databaseException(FAILED_TO_LOAD_PROJECT);
throw databaseException(FAILED_TO_LOAD_ENTITY,"project");
}
}
@@ -176,7 +174,7 @@ CREATE TABLE IF NOT EXISTS {0} (
rs.close();
return projects;
} catch (SQLException e) {
throw databaseException(FAILED_TO_LOAD_ITEMS);
throw databaseException(FAILED_TO_LOAD_ENTITY,"items");
}
}