Search found 16 matches

by MoOshiCow
Tue Mar 18, 2008 6:06 pm
Forum: Programming
Topic: Getting gettext & translation into Allacrost
Replies: 115
Views: 32036

Re: Getting gettext & translation into Allacrost

WK: I don't think your suggestion would work in a technical aspect. I'm not an expert on gettext (yet ;)), but I think the way it does the translation lookup is dependent on what file and at what location the string to translate was located in, which determines where the translated string should be...
by MoOshiCow
Thu Feb 28, 2008 2:14 pm
Forum: Programming
Topic: [RETIRED] Subversion Commit Log
Replies: 1650
Views: 502926

Re: Subversion Commit Log

Revision 1287 committed. **************************************************** Added files >txt/ >txt/allacrost.pot Modified files > src/utils.cpp > src/utils.h > src/defs.cpp > src/engine/system.cpp > dat/maps/demo_cave.lua > dat/maps/demo_town.lua Primary changes in commit > Getting gettext (transl...
by MoOshiCow
Thu Feb 28, 2008 2:13 pm
Forum: Programming
Topic: Getting gettext & translation into Allacrost
Replies: 115
Views: 32036

Re: Getting gettext & translation into Allacrost

Finally committed some changes regarding gettext.. Here are the changes and details: Modified files src/utils.cpp & utils.h: added helper function Translate() that invokes a gettext() call src/defs.cpp : binded the Translate() function such that we can use it in the .lua files (hoa_utils.Transla...
by MoOshiCow
Thu Jan 10, 2008 5:26 pm
Forum: Programming
Topic: Getting gettext & translation into Allacrost
Replies: 115
Views: 32036

Alright Roots,

sorry for the delayed response..
been away during winter break..

i will try getting stuff done by this weekend
thanks for the patience

-MC (sounds like i'm a DJ or a rapper or something..)
by MoOshiCow
Thu Nov 01, 2007 3:25 am
Forum: Design
Topic: Battle design proposal: A new approach
Replies: 66
Views: 33434

Well, I'm coming into the discussion from the sidelines, and a bit late.. I guess, it sounds like #2 is going to be the more radical change, since it changes a lot of stuff in terms of art design and battle system design. I'll say #2 sounds like the "better-looking" option, as in visually ...
by MoOshiCow
Wed Sep 05, 2007 7:48 pm
Forum: Programming
Topic: Getting gettext & translation into Allacrost
Replies: 115
Views: 32036

Alrighty.. sorry for the lack of update recently.. with school starting again..and end of summer... had some stuff to deal with..been kinda busy.. so i guess i got most of the "marking translatable strings" progress done.. and have a couple questions.. First, I've been trying to display Ko...
by MoOshiCow
Thu Aug 23, 2007 6:59 pm
Forum: Programming
Topic: Getting gettext & translation into Allacrost
Replies: 115
Views: 32036

a) function DoSomething(s) { DoSomethingWithString(s); } DoSomething(Translate("Hello World!")); DoSomething(Translate("Hello Another World!")); b) function DoSomething(s) { DoSomethingWithString(Translat...
by MoOshiCow
Sun Aug 12, 2007 6:20 pm
Forum: Programming
Topic: Getting gettext & translation into Allacrost
Replies: 115
Views: 32036

So I'm perfectly fine with the Translate() macro.. It's one extra word to type...its clear in its purpose And scripters have to follow the format dialogue::AddText("string", -1, -1 -1) in order to get dialogue into the game.. I'm sure they can handle an extra thing to follow (of course, Tr...
by MoOshiCow
Fri Aug 10, 2007 5:09 pm
Forum: Programming
Topic: Getting gettext & translation into Allacrost
Replies: 115
Views: 32036

I think splitting up each map file, sounds reasonable..
As mentioned, it's probably easier to add new map files that way..

And for the _(), we can probably just define _ as TranslateString or whatever we're using..
if we feel that _() is more comfortable..
by MoOshiCow
Thu Aug 09, 2007 12:14 am
Forum: Programming
Topic: Getting gettext & translation into Allacrost
Replies: 115
Views: 32036

MoOshiCow, I am not sure why do you want to define functions "TranslateString" and "AddText". Is that only for Lua or also for C++? Traditionally, the translating function is called "_". More precisely, this is a macro for function "gettext". This function is...
by MoOshiCow
Tue Aug 07, 2007 10:33 pm
Forum: Programming
Topic: Getting gettext & translation into Allacrost
Replies: 115
Views: 32036

Re: Getting gettext & translation into Allacrost

When you mentioned domain earlier, I thought domain implied the regional translation (ie english, german, polish, etc.). So it instead means "which file name to lookup the translated string in"? That makes things a little more confusing than I thought they'd be for our code. :eyespin: Hmm...
by MoOshiCow
Tue Aug 07, 2007 2:43 am
Forum: Programming
Topic: Getting gettext & translation into Allacrost
Replies: 115
Views: 32036

Re: Getting gettext & translation into Allacrost

Everything you said sounds good. I would make the TranslateString() method a member of the GameSettings class. Also the second argument to the method (domain) won't be necessary when attached to the GameSettings class, since GameSettings keeps track of what the currently set domain is. I guess my f...
by MoOshiCow
Sun Jul 29, 2007 4:36 am
Forum: Programming
Topic: Getting gettext & translation into Allacrost
Replies: 115
Views: 32036

Getting gettext & translation into Allacrost

Well I've finally got something started with internationalizing Allacrost.. While, I haven't committed anything into subversion yet, I think I need to organize how all of this translating stuff is going to work out.. This is basically what I have modified so far: main.cpp - some initializing code fo...
by MoOshiCow
Mon Jul 23, 2007 3:39 pm
Forum: Programming
Topic: Programmer Roll Call
Replies: 209
Views: 35225

Yeah..sorry about the lack of update.. Been kind of in and out last week... and went to Baltimore to go to Otakon (Anime/Game convention) this weekend so didnt get much done then either As for progress I have been playing around with gettext, lua, luabind stuff.. but havent actually written anything...
by MoOshiCow
Fri Jul 13, 2007 2:31 am
Forum: Programming
Topic: Battle Code -- Post 0.2.0 Demo
Replies: 39
Views: 5531

I think I seem to have bumped into the issue described by ChopperDave. While, I am still in the middle of configuring..setting up things for VC++ 2005..I'm getting errors in compiling: 1>------ Build started: Project: Allacrost, Configuration: Debug Win32 ------ 1>Compiling... 1>battle.cpp 1>c:\docu...
by MoOshiCow
Fri Jul 06, 2007 3:17 am
Forum: Programming
Topic: Programmer Roll Call
Replies: 209
Views: 35225

Alrighty. I guess I'll be spending a few days getting familiar with the new stuff...and see what I understand and what I'm not quite familiar with..

Go to advanced search