Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds
Watch MODSonair

Members Online

»
0 Active | 45 Guests
Online:

LATEST FORUM THREADS

»
run artillery on maps
CoD+UO Map + Mod Releases
Call of DutyŽ: WWII
CoD WW2 General

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty 2
Category: CoD2 General
General game questions, comments, and chat.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: Localized Strings - how do they work?
tomalla
General Member
Since: Jan 16, 2007
Posts: 393
Last: Jun 10, 2012
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoD2 General
Posted: Thursday, Mar. 11, 2010 04:29 am
I'll ask straight ahead - what is the purpose of localized strings? At first I thought, to adjust proper strings to a levels ( missions ) according to a language the game is set to. I'm not so sure about it though ...

I've recently started experimenting with localized strings, so I opened a simple file and added following code ( to make it clear, I have "POLISH" language of my game ):

Code:

REFERENCE           TEST
LANG_ENGLISH        "English"
LANG_POLISH        "Polish"

ENDMARKER


When I run it, "Polish" string came out. That's good ... I guess. But then I changed the order of entries like following:

Code:

REFERENCE           TEST
LANG_POLISH        "Polish"
LANG_ENGLISH        "English"

ENDMARKER


... and now the string "English" showed up ... I figured out, that the game picks up a string that is at the end of a single reference ( in this case - "TEST" ) and applies it to a level. Is it supposed to be this way? Do I have to make separate versions of "*.iwd" files to make it playable by Polish users and the English ones as well? Do localized strings work the same way in other CoD games, like 1, 4, 5 etc. ? I just ... want to make sure, because it makes no sense to me ...

Tomalla
Share |
playername
Preferred Member
Since: Aug 24, 2006
Posts: 821
Last: Apr 15, 2011
[view latest posts]
Level 7
Forum Moderator
Im a fan of MODSonair
Category: CoD2 General
Posted: Thursday, Mar. 11, 2010 06:49 am
I do believe you have to have different versions of an *.iwd file. I say this because if you look at any "main" folder, you have files named "localized_[language]_iw*.iwd" which has the localized strings and sounds for that language. However, I am not fully sure about this, but that's how I see it. Sorry if this poses an inconvenience for downloading (such as auto download on a server or similar things)
nullFew tips for coding.
1. Keep the script as short as possible.
2. Don't comment every line. Only comment portions where they may be needed to point something out.
3. Don't over complicate the script, keep it organized and easy to read.

These help you find simple errors and makes it easy to make changes.
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 General

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»