Skip to content

Commit

Permalink
added language especification from default encoding and not hardwired…
Browse files Browse the repository at this point in the history
… en string
  • Loading branch information
carlosbpf committed Mar 8, 2019
1 parent 541bc40 commit 121d9db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import org.springframework.stereotype.Repository;

import org.xcolab.model.tables.pojos.ConfigurationAttribute;
import org.xcolab.util.i18n.I18nUtils;

import java.util.Optional;

Expand All @@ -16,7 +17,7 @@
@Repository
public class ConfigurationAttributeDaoImpl implements ConfigurationAttributeDao {

private static final String DEFAULT_LOCALE = "en";
private static final String DEFAULT_LOCALE = I18nUtils.DEFAULT_LANGUAGE;

private final DSLContext dslContext;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import org.springframework.stereotype.Repository;

import org.xcolab.model.tables.pojos.ContestTypeAttribute;
import org.xcolab.util.i18n.I18nUtils;

import java.util.List;
import java.util.Optional;
Expand All @@ -17,7 +18,7 @@
@Repository
public class ContestTypeAttributeDaoImpl implements ContestTypeAttributeDao {

private static final String DEFAULT_LOCALE = "en";
private static final String DEFAULT_LOCALE = I18nUtils.DEFAULT_LANGUAGE;

private final DSLContext dslContext;

Expand Down

0 comments on commit 121d9db

Please sign in to comment.