Solved

PLEASE HELP QUICKLY: Delphi Translation Error

Posted on 2003-12-02
2
401 Views
Last Modified: 2008-03-03
Hello!

I need quick help,

I have a Delphi 7 application that I have translated to German.
I have 3 languages installed on my XP Professional: English, French,
and German.

Now, after compiling the resources, and the application I am able to
run it in german, as long as I run it from the directory where I
developed the program.

If I move (even the full directory) in another part of my hard drive,
it runs in English.

I tryed to default the locale to German. re re re compile ... make
sure .DEU file is in place, nothing works. Please tell me what may be
wrong, as I need to ship the application in 48 hours.

Thank you!

Tud
0
Comment
Question by:TTDeath
2 Comments
 
LVL 7

Accepted Solution

by:
petoskey-001 earned 500 total points
Comment Utility
It sounds like your program may be hard coded to look for the resource files.  Here is an excellent link on how to include string resources into your EXE and decide which language to use based on the win.ini file...

http://www.gnomehome.demon.nl/uddf/pages/zmisc3.htm#zmisc31

Another possibility is that your accessing you resource file using a relative link.  Something like  ..\windows\win.ini.  When you move the program it fails, but since your reading from an ini, it just returns the default of english.

Can you post the sections of code that try to detect what the langauage is?

0
 

Author Comment

by:TTDeath
Comment Utility
It's done automatically by delphi loading mechanism.

(i'm using the Translation Manager and creating automatically language resources with dll resource wizard).

Anyway, it seems to work fine on clients' computer :). He has all language/localization settings from WinXP defaulted to German.

Strange behaviour anyway, if anyone has any idea why the application in the default directory works :) please share it with me!
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
C# Install and Make Database Changes 4 50
copyEndy  challenge 15 55
array220 challenge 8 45
topping3 challenge 14 48
Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now