@Service @Lazy @DependentInitialisation(value=ch.sahits.game.openpatrician.util.StartNewGameBean.class) public class ModelTranslations extends Object implements ch.sahits.game.openpatrician.model.IModelTranslationService
| Modifier and Type | Field and Description |
|---|---|
private ch.sahits.game.openpatrician.util.l10n.Locale |
locale |
private org.springframework.context.MessageSource |
messages |
| Constructor and Description |
|---|
ModelTranslations() |
| Modifier and Type | Method and Description |
|---|---|
String |
getEndOfWeek(org.joda.time.DateTime date)
Retrieve the date of the end of the week in the form {Day of month}.
|
private org.joda.time.DateTime |
getEndOfWeekInternal(org.joda.time.DateTime date)
Retrieve the date of the of the Sunday of last week
|
String |
getLocalDisplayDistinctArticle(boolean male,
boolean uppercase) |
String |
getLocalDisplayName(ch.sahits.game.openpatrician.model.ship.EShipType type) |
String |
getLocalDisplayName(ch.sahits.game.openpatrician.model.personal.ESocialRank rank) |
String |
getLocalDisplayName(ch.sahits.game.openpatrician.model.product.EWare ware)
Retrieve the localized display name for
id. |
String |
getLocalDisplayName(ch.sahits.game.openpatrician.model.weapon.EWeapon weapon)
Retrieve the localized display name for
id. |
String |
getLocalDisplayName(ch.sahits.game.openpatrician.model.building.IBuilding building) |
String |
getLocalDisplayName(ch.sahits.game.openpatrician.model.personal.ICareer career) |
String |
getLocalDisplayNameWithArticle(ch.sahits.game.openpatrician.model.ship.EShipType type,
boolean upperCaseArticle) |
String |
getStartOfWeek(org.joda.time.DateTime date)
Retrieve the date of the start of the week in the form {Day of month}.
|
private org.joda.time.DateTime |
getStartOfWeekInternal(org.joda.time.DateTime date)
Retrieve the date of the start of the last week
|
String |
toDisplayString(org.joda.time.DateTime date)
Create a string representation for the user interface of the
form {Day of month}.
|
String |
toDisplayString(int day,
int month,
int year) |
String |
toDisplayStringLongFormat(org.joda.time.DateTime date)
Create a string representation for the user interface of the
form {Day of month}.
|
private String |
toDisplayStringLongFormat(int day,
int month,
int year) |
String |
toShortDate(org.joda.time.DateTime c)
Convert the date into the form {Day in month}.
|
@Autowired private ch.sahits.game.openpatrician.util.l10n.Locale locale
@Autowired @Qualifier(value="messageSource") private org.springframework.context.MessageSource messages
public String getLocalDisplayName(ch.sahits.game.openpatrician.model.weapon.EWeapon weapon)
id.weapon - ennumerationpublic String getLocalDisplayName(ch.sahits.game.openpatrician.model.product.EWare ware)
id.ware - public String getLocalDisplayName(ch.sahits.game.openpatrician.model.personal.ICareer career)
public String getLocalDisplayName(ch.sahits.game.openpatrician.model.personal.ESocialRank rank)
public String getLocalDisplayName(ch.sahits.game.openpatrician.model.ship.EShipType type)
public String getLocalDisplayNameWithArticle(ch.sahits.game.openpatrician.model.ship.EShipType type, boolean upperCaseArticle)
public String getLocalDisplayDistinctArticle(boolean male, boolean uppercase)
public String toShortDate(org.joda.time.DateTime c)
c - private org.joda.time.DateTime getEndOfWeekInternal(org.joda.time.DateTime date)
public String getEndOfWeek(org.joda.time.DateTime date)
public String toDisplayString(int day, int month, int year)
private String toDisplayStringLongFormat(int day, int month, int year)
public String toDisplayString(org.joda.time.DateTime date)
toDisplayString in interface ch.sahits.game.openpatrician.model.IModelTranslationServicepublic String toDisplayStringLongFormat(org.joda.time.DateTime date)
public String getStartOfWeek(org.joda.time.DateTime date)
private org.joda.time.DateTime getStartOfWeekInternal(org.joda.time.DateTime date)
public String getLocalDisplayName(ch.sahits.game.openpatrician.model.building.IBuilding building)
Copyright © 2011-2017 Sahits GmbH. All Rights Reserved.