Solved

PLEASE HELP QUICKLY: Delphi Translation Error

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

Increase Agility with Enabled Toolchains

Connect your existing build, deployment, management, monitoring, and collaboration platforms. From Puppet to Chef, HipChat to Slack, ServiceNow to JIRA, Splunk to New Relic and beyond, hand off data between systems to engage the right people.

Connect with xMatters.

Question has a verified solution.

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

Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
Create a Windows 10 custom Image with custom task bar and custom start menu using XML for deployment.
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 seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

717 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