Improved I18N support:

* GamePageData now includes the selected language's code.
* Added support for multiple fetches in one call to the Translator
service.
This commit is contained in:
Emmanuel BENOîT 2012-04-05 11:25:08 +02:00
parent c7949e41cc
commit 9a7bc03171
9 changed files with 316 additions and 50 deletions
legacyworlds-server-data/src/main/java/com/deepclone/lw/sqld/game

View file

@ -3,11 +3,12 @@ package com.deepclone.lw.sqld.game;
public class GeneralInformation
{
private String name;
private String language;
private Character status;
private String name;
private String tag;
private long cash;
@ -17,50 +18,87 @@ public class GeneralInformation
private int accountId;
public GeneralInformation( Character status , String name , String tag , long cash , long nextTick , int accountId )
public String getName( )
{
return this.name;
}
public void setName( String name )
{
this.status = status;
this.name = name;
this.tag = tag;
this.cash = cash;
this.nextTick = nextTick;
this.accountId = accountId;
}
public String getLanguage( )
{
return this.language;
}
public void setLanguage( String language )
{
this.language = language;
}
public Character getStatus( )
{
return status;
return this.status;
}
public String getName( )
public void setStatus( Character status )
{
return name;
this.status = status;
}
public String getTag( )
{
return tag;
return this.tag;
}
public void setTag( String tag )
{
this.tag = tag;
}
public long getCash( )
{
return cash;
return this.cash;
}
public void setCash( long cash )
{
this.cash = cash;
}
public long getNextTick( )
{
return nextTick;
return this.nextTick;
}
public void setNextTick( long nextTick )
{
this.nextTick = nextTick;
}
public int getAccountId( )
{
return accountId;
return this.accountId;
}
public void setAccountId( int accountId )
{
this.accountId = accountId;
}
}