@PostConstruct private void init() { Boolean b = (Boolean) FacesContext.getCurrentInstance() .getExternalContext() .getSessionMap() .get("isEnglishSelected"); if (b == null) isEnglishSelected = true; else isEnglishSelected = b; if (isEnglishSelected) { String language = new String("en"); String country = new String("US"); internationalizationService.setCurrentLocale( language, country, "internationalization/superadmin/menu/menuLeft/MenuLeft"); } else { String language = new String("ro"); String country = new String("RO"); internationalizationService.setCurrentLocale( language, country, "internationalization/superadmin/menu/menuLeft/MenuLeft"); } }
public String getManagementSizes() { managementSizes = internationalizationService.getMessage(EMenuLeft.MANAGE_SIZES.getName()); return managementSizes; }
public String getManagementCategories() { managementCategories = internationalizationService.getMessage(EMenuLeft.MANAGE_CATEGS.getName()); return managementCategories; }
public String getMenu() { menu = internationalizationService.getMessage(EMenuLeft.MENU.getName()); return menu; }
public String getManagementAdmins() { managementAdmins = internationalizationService.getMessage(EMenuLeft.MANAGE_ADMINS.getName()); return managementAdmins; }
public String getAddBanner() { addBanner = internationalizationService.getMessage(EMenuLeft.ADD_BANNER.getName()); return addBanner; }
public String getViewCommands() { viewCommands = internationalizationService.getMessage(EMenuLeft.VIEW_COMMANDS.getName()); return viewCommands; }
public String getUpdateStock() { updateStock = internationalizationService.getMessage(EMenuLeft.UPDATE_STOCK.getName()); return updateStock; }
public String getViewReports() { viewReports = internationalizationService.getMessage(EMenuLeft.VIEW_REPORTS.getName()); return viewReports; }
public String getChatWithClients() { chatWithClients = internationalizationService.getMessage(EMenuLeft.CHAT_WITH_CLIENTS.getName()); return chatWithClients; }
public String getReturnedCommands() { returnedCommands = internationalizationService.getMessage(EMenuLeft.RETURNED_COMMANDS.getName()); return returnedCommands; }
public String getManagementOperators() { managementOperators = internationalizationService.getMessage(EMenuLeft.MANAGE_OPERATORS.getName()); return managementOperators; }
public String getManagementNewsL() { managementNewsL = internationalizationService.getMessage(EMenuLeft.MANAGE_NEWSL.getName()); return managementNewsL; }
public String getManagementColors() { managementColors = internationalizationService.getMessage(EMenuLeft.MANAGE_COLORS.getName()); return managementColors; }
public String getViewClients() { viewClients = internationalizationService.getMessage(EMenuLeft.VIEW_CLIENTS.getName()); return viewClients; }
public String getManagementProducts() { managementProducts = internationalizationService.getMessage(EMenuLeft.MANAGE_PROD.getName()); return managementProducts; }
public String getEditProfile() { editProfile = internationalizationService.getMessage(EMenuLeft.EDIT_PROFILE.getName()); return editProfile; }
public String getExportProducts() { exportProducts = internationalizationService.getMessage(EMenuLeft.EXP_PROD.getName()); return exportProducts; }
public String getImportProducts() { importProducts = internationalizationService.getMessage(EMenuLeft.IMP_PROD.getName()); return importProducts; }