FAQ Search Memberlist Usergroups
Jolt Country Forum Index
Register Profile Log in to check your private messages Log in
Log in Log in

Two questions

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Jolt Country Forum Index -> Hugo's House of Horrors
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Tue Jan 10, 2006 9:00 am    Post subject: Two questions Reply with quote

Hi all, Roberto Grassi from Italy.
I've two simple questions.

1) If one specifies the article for an object does this *override* the
call to the CThe function in order to retrieve the article?
2) Can i translate the Manual in Italian?

Rob
Back to top
Guest






PostPosted: Tue Jan 10, 2006 12:26 pm    Post subject: Re: Two questions Reply with quote

Anonymous wrote:
1) If one specifies the article for an object does this *override* the
call to the CThe function in order to retrieve the article?


No. Well, sort of. A glance at CThe (defined in /lib/hugolib.h) shows that if the object has no article, then a capital "The" is printed, otherwise just the article name. I never gave it any thought before you asked, but this has always worked fine for me. Suppose you had an object called "fence" with an article of "a", and another object called "Bob" (no article). Calling CThe(obj) would print "The fence..." and "Bob..." respectively, which is probably what you wanted.

If you're needing to print the article itself -- whether it's "the" or "a" or "an" or "some" or whatever, you can use CArt(obj) for the capitolized version, or just Art(object) for mid-sentence uses.

Anonymous wrote:
2) Can i translate the Manual in Italian?


Kent would have to answer this for sure (don't take this as an answer), but I'm guessing a translation would be very welcomed, if you're up to it!
Back to top
Merk



Joined: 22 Nov 2004
Posts: 192
Location: Wichita, KS

PostPosted: Tue Jan 10, 2006 12:28 pm    Post subject: Reply with quote

Woops. That reply was from me (somehow I wasn't logged in). So I can't edit my post. But it should have read that "The" is printed if the object *does* have an article assigned. Only the object name is printed if the object has no article. I think what you're after is Art/CArt.

In other words, The/CThe is handy when you want to override the default article. It would make sense to say "You can't eat the rock" by using the(rock), even if its article is "a" and it shows up in inventory as "a rock". It wouldn't make as much sense to say "You can't eat a rock" by using art(rock) instead. Hope that makes sense.
Back to top
View user's profile Send private message Visit poster's website
rgrassi



Joined: 10 Jan 2006
Posts: 3

PostPosted: Wed Jan 11, 2006 1:49 am    Post subject: Reply with quote

Merk wrote:
Hope that makes sense.


It makes sense.
The problem arises during localization.
If i can have a complete control over the articles for an object (i.e. article is not dinamically retrieved according to gender or singular/plural) then the only thing i should care about is to define the proper articles (if i'm writing a game in a language different than english).
Rob
Back to top
View user's profile Send private message
Merk



Joined: 22 Nov 2004
Posts: 192
Location: Wichita, KS

PostPosted: Wed Jan 11, 2006 9:17 am    Post subject: Reply with quote

It's also easy to replace Art/CArt/The/CThe (I much prefer replacing short routines than the longer ones). It's probably the same in the other languages. Just make your own version in your source files (leaving the library alone, of course), that handles article-printing the way it needs to be for locallization. That will probably be enough, although there are a host of other library messages you'd need to customize as well.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Jolt Country Forum Index -> Hugo's House of Horrors All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001 phpBB Group

Theme by Kage Musha - RPG Garden

Copyrights and trademarks are all of the belonging company. No copyright Infringement intended