IModelTranslationService@Service @Lazy @DependentInitialisation(StartNewGameBean.class) public class ModelTranslations extends java.lang.Object implements IModelTranslationService
| Constructor | Description |
|---|---|
ModelTranslations() |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getEndOfWeek(java.time.LocalDateTime date) |
Retrieve the date of the end of the week in the form {Day of month}.
|
java.lang.String |
getLocalDisplayDistinctArticle(boolean male,
boolean uppercase) |
|
java.lang.String |
getLocalDisplayName(IBuilding building) |
Localize the name of the building
|
java.lang.String |
getLocalDisplayName(ESocialRank rank) |
|
java.lang.String |
getLocalDisplayName(ICareer career) |
|
java.lang.String |
getLocalDisplayName(EWare ware) |
Retrieve the localized display name for
id. |
java.lang.String |
getLocalDisplayName(EShipType type) |
|
java.lang.String |
getLocalDisplayName(EWeapon weapon) |
Retrieve the localized display name for
id. |
java.lang.String |
getLocalDisplayNameWithArticle(EShipType type,
boolean upperCaseArticle) |
|
java.lang.String |
getStartOfWeek(java.time.LocalDateTime date) |
Retrieve the date of the start of the week in the form {Day of month}.
|
java.lang.String |
toDisplayString(int day,
int month,
int year) |
Retrieve the date in long form {Day of month}.
|
java.lang.String |
toDisplayString(java.time.LocalDateTime date) |
Create a string representation for the user interface of the
form {Day of month}.
|
java.lang.String |
toDisplayStringLongFormat(java.time.LocalDateTime date) |
Create a string representation for the user interface of the
form {Day of month}.
|
java.lang.String |
toShortDate(java.time.LocalDateTime c) |
Convert the date into the form {Day in month}.
|
public java.lang.String getLocalDisplayName(EWeapon weapon)
id.weapon - ennumerationpublic java.lang.String getLocalDisplayName(EWare ware)
id.ware - to be localizedpublic java.lang.String getLocalDisplayName(ICareer career)
public java.lang.String getLocalDisplayName(ESocialRank rank)
public java.lang.String getLocalDisplayName(EShipType type)
public java.lang.String getLocalDisplayNameWithArticle(EShipType type, boolean upperCaseArticle)
public java.lang.String getLocalDisplayDistinctArticle(boolean male,
boolean uppercase)
public java.lang.String toShortDate(java.time.LocalDateTime c)
c - date to be localizedpublic java.lang.String getEndOfWeek(java.time.LocalDateTime date)
date - from which to calculate the last Sundaypublic java.lang.String toDisplayString(int day,
int month,
int year)
day - of monthmonth - of yearyear - to be displayedpublic java.lang.String toDisplayString(java.time.LocalDateTime date)
toDisplayString in interface IModelTranslationServicedate - to be localized in the long formdatepublic java.lang.String toDisplayStringLongFormat(java.time.LocalDateTime date)
date - to be localized in the long formdatepublic java.lang.String getStartOfWeek(java.time.LocalDateTime date)
date - from which to calculate the last Mondaydatepublic java.lang.String getLocalDisplayName(IBuilding building)
building - to be localizedCopyright © 2011-2018 Sahits GmbH. All Rights Reserved.