-translation updates (including fr.txt)
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-07-05 09:06:51 +00:00
parent 810e1edec2
commit d8ac4a49b1
14 changed files with 61 additions and 43 deletions
+5 -7
View File
@@ -125,7 +125,7 @@ void Spell::Render(){
JLBFont * mFont = GameApp::CommonRes->GetJLBFont(Constants::MAIN_FONT);
mFont->SetBase(0);
mFont->SetScale(DEFAULT_MAIN_FONT_SCALE);
mFont->DrawString(_(source->getName()).c_str(), x + 30 , y, JGETEXT_LEFT);
mFont->DrawString(_(source->name).c_str(), x + 30 , y, JGETEXT_LEFT);
JRenderer * renderer = JRenderer::GetInstance();
JQuad * quad = source->getThumb();
if (quad){
@@ -176,7 +176,7 @@ void Spell::Render(){
renderer->RenderQuad(quad, x + 150 , y , 0,scale,scale);
}else{
if (target->type_as_damageable == DAMAGEABLE_MTGCARDINSTANCE)
mFont->DrawString(_(((MTGCardInstance *)target)->getName()).c_str(),x+120,y);
mFont->DrawString(_(((MTGCardInstance *)target)->name).c_str(),x+120,y);
}
}
}
@@ -213,7 +213,7 @@ void PutInGraveyard::Render(){
if (!removeFromGame){
mFont->DrawString(_("goes to graveyard").c_str(), x + 30 , y, JGETEXT_LEFT);
}else{
mFont->DrawString(_("is removed from game").c_str(), x + 30 , y, JGETEXT_LEFT);
mFont->DrawString(_("is exiled").c_str(), x + 30 , y, JGETEXT_LEFT);
}
JRenderer * renderer = JRenderer::GetInstance();
JQuad * quad = card->getThumb();
@@ -222,7 +222,7 @@ void PutInGraveyard::Render(){
float scale = 30 / quad->mHeight;
renderer->RenderQuad(quad, x , y , 0,scale,scale);
}else{
mFont->DrawString(card->getName(),x,y-15);
mFont->DrawString(_(card->name).c_str(),x,y-15);
}
}
@@ -250,7 +250,7 @@ void DrawAction::Render(){
char buffer[200];
int playerId = 1;
if (player == GameObserver::GetInstance()->players[1]) playerId = 2;
sprintf(buffer, "Player %i draws %i card", playerId, nbcards);
sprintf(buffer, _("Player %i draws %i card").c_str(), playerId, nbcards);
mFont->DrawString(buffer, x + 20 , y, JGETEXT_LEFT);
}
@@ -808,7 +808,6 @@ void ActionStack::Render(){
//WALDORF - removed all the unnecessary math. just display the prompt at the
// top of the box.
//mFont->DrawString(buffer, x0 + 5 , currenty - 40 - ((Interruptible *)mObjects[mCount-1])->mHeight);
mFont->DrawString(buffer, x0 + 5, y0);
@@ -817,7 +816,6 @@ void ActionStack::Render(){
// WALDORF - puts the button legend right under the prompt. the stack
// will be displayed below it now. no more need to do wierd currY math.
//mFont->DrawString(buffer, x0 + 5 , currenty);
mFont->DrawString(buffer, x0 + 5, y0 + 14);
}else if (mode == ACTIONSTACK_TARGET && modal){
for (int i=0;i<mCount ;i++){
+2 -2
View File
@@ -73,7 +73,7 @@ void Damage::Render(){
float scale = 30 / quad->mHeight;
renderer->RenderQuad(quad, x , y , 0,scale,scale);
}else{
mFont->DrawString(source->getName(),x,y-15);
mFont->DrawString(_(source->getName()).c_str(),x,y-15);
}
quad = target->getIcon();
if (quad){
@@ -81,7 +81,7 @@ void Damage::Render(){
renderer->RenderQuad(quad, x + 150 , y , 0,scale,scale);
}else{
if (target->type_as_damageable == DAMAGEABLE_MTGCARDINSTANCE)
mFont->DrawString(((MTGCardInstance *)target)->getName(),x+120,y);
mFont->DrawString(_(((MTGCardInstance *)target)->getName()).c_str(),x+120,y);
}
}
+6 -5
View File
@@ -4,6 +4,7 @@
#include "../include/MTGCardInstance.h"
#include "../include/DamagerDamaged.h"
#include "../include/Damage.h"
#include "../include/Translate.h"
DamageResolverLayer::DamageResolverLayer(int id, GameObserver * _game):PlayGuiObjectController(id, _game){
currentPhase = -1;
@@ -449,13 +450,13 @@ void DamageResolverLayer::Render(){
JRenderer * renderer = JRenderer::GetInstance();
renderer->FillRect(0 ,0 , SCREEN_WIDTH , SCREEN_HEIGHT , ARGB(200,0,0,0));
if (currentChoosingPlayer == game->currentPlayer){
mFont->DrawString("Attacking Player", 0,0);
mFont->DrawString(_("Attacking Player").c_str(), 0,0);
}else{
mFont->DrawString("Blocking Player", 0,0);
mFont->DrawString(_("Blocking Player").c_str(), 0,0);
}
if (currentSource){
currentSource->RenderBig(10, 20);
mFont->DrawString("Current Damager:", 10, 5);
mFont->DrawString(_("Current Damager:").c_str(), 10, 5);
}
for (int i = 0; i < mCount; i++){
((DamagerDamaged *)mObjects[i])->Render(currentChoosingPlayer);
@@ -466,7 +467,7 @@ void DamageResolverLayer::Render(){
if (currentPhase == Constants::MTG_PHASE_COMBATDAMAGE && canStopDealDamages()){
mFont->DrawString("Damages Assigned, Click Square to Continue", 250, 5);
mFont->DrawString(_("Damages Assigned, Click Square to Continue").c_str(), 250, 5);
}
if (orderingIsNeeded) mFont->DrawString("Order blockers, then Click Square to Continue", 200, 5);
if (orderingIsNeeded) mFont->DrawString(_("Order blockers, then Click Square to Continue").c_str(), 200, 5);
}
+2 -1
View File
@@ -1,6 +1,7 @@
#include "../include/ExtraCost.h"
#include "../include/TargetChooser.h"
#include "../include/MTGCardInstance.h"
#include "../include/Translate.h"
#include <JGE.h>
ExtraCost::ExtraCost( TargetChooser *_tc):tc(_tc){
@@ -61,7 +62,7 @@ void SacrificeCost::Render(){
JLBFont * mFont = GameApp::CommonRes->GetJLBFont(Constants::MAIN_FONT);
mFont->SetScale(DEFAULT_MAIN_FONT_SCALE);
char buffer[200];
sprintf(buffer, "sacrifice");
sprintf(buffer, _("sacrifice").c_str());
mFont->DrawString(buffer, 20 ,20, JGETEXT_LEFT);
}
+1 -1
View File
@@ -446,7 +446,7 @@ void GameStateMenu::Render()
renderer->RenderQuad(splashQuad,0,0);
}else{
char text[512];
sprintf(text, "LOADING SET: %s", mCurrentSetName);
sprintf(text, _("LOADING SET: %s").c_str(), mCurrentSetName);
mFont->DrawString(text,SCREEN_WIDTH/2,SCREEN_HEIGHT/2,JGETEXT_CENTER);
}
}else{
+2 -3
View File
@@ -112,12 +112,11 @@ void GameStateOptions::Render()
if (pos < -20) timer = 0;
mFont->SetScale(1.f);
optionsList->Render();
if (mState == SHOW_OPTIONS_MENU){
optionsMenu->Render();
}
optionsList->Render();
}
+3 -2
View File
@@ -1,5 +1,6 @@
#include "../include/config.h"
#include "../include/MTGRules.h"
#include "../include/Translate.h"
MTGPutInPlayRule::MTGPutInPlayRule(int _id):MTGAbility(_id, NULL){
aType=MTGAbility::PUT_INTO_PLAY;
@@ -333,7 +334,7 @@ int HUDDisplay::receiveEvent(WEvent * event){
}
if (!ok) return 0;
char buffer[512];
sprintf(buffer,"%s goes to graveyard", ezc->card->getName());
sprintf(buffer,_("%s goes to graveyard").c_str(), _(ezc->card->getName()).c_str());
string s = buffer;
return addEvent(s);
}
@@ -341,7 +342,7 @@ int HUDDisplay::receiveEvent(WEvent * event){
WEventDamage * ed = dynamic_cast<WEventDamage*>(event);
if (ed) {
char buffer[512];
sprintf(buffer, "%s: %i -> %s", ed->damage->source->getName(), ed->damage->damage, ed->damage->target->getDisplayName());
sprintf(buffer, "%s: %i -> %s", _(ed->damage->source->name).c_str(), ed->damage->damage, _(ed->damage->target->getDisplayName()).c_str());
string s = buffer;
return addEvent(s);
}
-3
View File
@@ -30,9 +30,6 @@ void MenuItem::Render()
if (mHasFocus)
{
/* if (!updatedSinceLastRender){
mParticleSys->Update(lastDt);
}*/
// set additive blending
renderer->SetTexBlend(BLEND_SRC_ALPHA, BLEND_ONE);
mParticleSys->Render();
+2 -2
View File
@@ -36,9 +36,9 @@ void OptionItem::Render(){
char buf[512];
if (maxValue == 1){
if (value){
sprintf(buf, "yes");
sprintf(buf, _("Yes").c_str());
}else{
sprintf(buf,"no");
sprintf(buf,_("No").c_str());
}
}else{
sprintf(buf, "%i", value);
+4 -3
View File
@@ -2,6 +2,7 @@
#include "../include/ShopItem.h"
#include "../include/GameStateShop.h"
#include "../include/CardGui.h"
#include "../include/Translate.h"
ShopItem::ShopItem(int id, JLBFont *font, char* text, JQuad * _quad,JQuad * _thumb, int x, int y, bool hasFocus, int _price): JGuiObject(id), mFont(font), mText(text), mX(x), mY(y), quad(_quad), thumb(_thumb), price(_price)
@@ -60,10 +61,10 @@ void ShopItem::Render(){
thumb = card->getThumb();
if (nameCount){
char buffer[512];
sprintf(buffer, "%s (%i)", card->name.c_str(), nameCount );
sprintf(buffer, "%s (%i)", _(card->name).c_str(), nameCount );
mText = buffer;
}else{
mText = card->name;
mText = _(card->name).c_str();
}
}
@@ -211,7 +212,7 @@ void ShopItems::Render(){
}
}
char credits[512];
sprintf(credits,"credits: %i", playerdata->credits);
sprintf(credits,_("credits: %i").c_str(), playerdata->credits);
unsigned int len = 4 + mFont->GetStringWidth(credits);
mFont->SetColor(ARGB(200,0,0,0));
mFont->DrawString(credits, SCREEN_WIDTH - len + 2, SCREEN_HEIGHT - 13);
+1 -5
View File
@@ -24,8 +24,4 @@ WEventPhaseChange::WEventPhaseChange(Phase * _from, Phase * _to):WEvent(CHANGE_P
to = _to;
}
WEventCardTap::WEventCardTap(MTGCardInstance * _card, int _before, int _after):WEvent(){
card = _card;
before = _before;
after = _after;
}
WEventCardTap::WEventCardTap(MTGCardInstance * card, bool before, bool after):WEvent(), card(card),before(before), after(after){}