Solved

PLEASE HELP QUICKLY: Delphi Translation Error

Posted on 2003-12-02
2
406 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 7

Accepted Solution

by:
petoskey-001 earned 500 total points
ID: 9862234
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
ID: 9883383
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

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Non admin needs to install programs 17 94
hp envy 4500 driver installation problem 5 78
windows 10 onedrive installation 25 94
SOC, SIEM, IPS and FW 4 52
Monitor input from a computer is usually nothing special.  In this instance it prevented anyone from using the computer.  This was a preconfiguration that didn't work.
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.

726 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