Default En
This commit is contained in:
@ -66,7 +66,7 @@ public class MainController implements ServletContextAware {
|
|||||||
@RequestMapping(value = "/",method = RequestMethod.GET,produces = "application/json;charset=utf-8")
|
@RequestMapping(value = "/",method = RequestMethod.GET,produces = "application/json;charset=utf-8")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public ResponseEntity<Object> index(
|
public ResponseEntity<Object> index(
|
||||||
@CookieValue(value = "lng", defaultValue = "1") String language_id
|
@CookieValue(value = "lng", defaultValue = "3") String language_id
|
||||||
) {
|
) {
|
||||||
Translation trt = new Translation(language_id,jdbcTemplate);
|
Translation trt = new Translation(language_id,jdbcTemplate);
|
||||||
try {
|
try {
|
||||||
@ -124,7 +124,7 @@ public class MainController implements ServletContextAware {
|
|||||||
@GetMapping(value = "/list", produces = "application/json")
|
@GetMapping(value = "/list", produces = "application/json")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public Map<String, String> getTranslations(
|
public Map<String, String> getTranslations(
|
||||||
@CookieValue(value = "lng", defaultValue = "1") String language_id
|
@CookieValue(value = "lng", defaultValue = "3") String language_id
|
||||||
) {
|
) {
|
||||||
|
|
||||||
Map<String, String> translations = new HashMap<>();
|
Map<String, String> translations = new HashMap<>();
|
||||||
@ -167,7 +167,7 @@ public class MainController implements ServletContextAware {
|
|||||||
@ResponseBody
|
@ResponseBody
|
||||||
public String home(
|
public String home(
|
||||||
Model model,
|
Model model,
|
||||||
@CookieValue(value = "lng", defaultValue = "1") String language_id
|
@CookieValue(value = "lng", defaultValue = "3") String language_id
|
||||||
) {
|
) {
|
||||||
Properties props = new Properties();
|
Properties props = new Properties();
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user