Solved

PLEASE HELP QUICKLY: Delphi Translation Error

Posted on 2003-12-02
2
405 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
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
PHP installation issues 11 76
Advice in Xamarin 21 96
ejb example issues 3 20
How to call a web service and get the results posted in a form in PHP 9 51
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
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…
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
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…

808 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