Skip to content

Commit

Permalink
Removed debug from translations
Browse files Browse the repository at this point in the history
* Removed debug from translations to avoid massive spam
* Removed abstraction from SQLiteDataBase

Signed-off-by: fran <[email protected]>
  • Loading branch information
Im-Fran committed Jan 12, 2021
1 parent eaf0ce9 commit 0d99993
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dependency-reduced-pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>xyz.theprogramsrc</groupId>
<artifactId>SuperCoreAPI</artifactId>
<name>SuperCoreAPI</name>
<version>4.8.0</version>
<version>4.8.1</version>
<build>
<sourceDirectory>src/main/java</sourceDirectory>
<defaultGoal>clean package</defaultGoal>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>xyz.theprogramsrc</groupId>
<artifactId>SuperCoreAPI</artifactId>
<version>4.8.1</version>
<version>4.8.2</version>
<packaging>jar</packaging>

<name>SuperCoreAPI</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import java.sql.DriverManager;
import java.sql.SQLException;

public abstract class SQLiteDataBase implements DataBase {
public class SQLiteDataBase implements DataBase {

protected Connection connection;
protected SuperPlugin<?> plugin;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ public String translate(String id) {
* @return Translated identifier
*/
public String translate(String id, String def){
this.plugin.debug("Translating phrase with id '" + id + "' and default '" + def + "'");
String currentLanguage = this.plugin.getLanguage();
Locale locale = new Locale(currentLanguage.split("_")[0], currentLanguage.split("_")[1]);
if(!this.translations.containsKey(locale)){
Expand Down

0 comments on commit 0d99993

Please sign in to comment.