Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

PLEASE HELP QUICKLY: Delphi Translation Error

Posted on 2003-12-02
2
Medium Priority
?
410 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 1000 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

If you don't know how to downgrade, my instructions below should be helpful.
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
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…

618 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