Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/IDE/Translation Tools    [ Add a report in this area ]  
Report #:  105027   Status: Closed
Problem with using more than 1 language
Project:  Delphi Build #:  16.0.4429.46931
Version:    16.4 Submitted By:   Albert vd Westhuizen
Report Type:  Issue Date Reported:  4/19/2012 4:35:02 AM
Severity:    Infrequently encountered problem Last Updated: 4/20/2012 8:00:04 PM
Platform:    All versions Internal Tracking #:  
Resolution: Cannot Reproduce (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description
I try to make application have 2 languages, I have translated some of the objects on main form to test it. No matter what I do however it only shows the base language. Even when setting the active language to the second language it still use only first language. I've tried changing the language of Windows to the second language and still nothing.


I made a test project and attached it.

Based on all documentation I can find it should work by setting the active language in RAD STudio to Afrikaans / English to test them. I've translated the label1 and button1's caption as to test. But it constantly only shows the English (base) language.
Steps to Reproduce:
Project - Languagees - Add

then Added so there is 2, Afrikaans / English

Then in browser I edit language file of main form for Afrikaans to show different captions for English vs Afrikaans.

Then run application to see it shows english. Then set active language to Afrikaans, run app again and its still English. Doesnt work at all no matter what I tried :(
Workarounds
None
Attachment
test languages.zip
Comments

Tomohiro Takahashi at 4/19/2012 6:49:45 PM -
Did you try to add a language to VCL form application?

Could you please attach sample project(s) to confirm your issue?

Albert vd Westhuizen at 4/19/2012 11:03:36 PM -
I made a test project and attached it.

Based on all documentation I can find it should work by setting the active language in RAD STudio to Afrikaans / English to test them. I've translated the label1 and button1's caption as to test. But it constantly only shows the English (base) language.

Tomohiro Takahashi at 4/20/2012 1:11:04 AM -
In your registry setting, \\HKEY_CURRENT_USER\Software\Embarcadero\Locales,
is there Key/Value as below?
--------
Key: C:\....\test languages\Win32\Debug\Project1.exe
Value: AFK
--------

and, please alos try my steps
1. [Project] | [Build All Projects]
2. [Project] | [Languages] | [Set Active ...]
3. select English(Afrikaans) and press [Finish] button
4. [Project] | [Languages] | [Set Active ...] again
5. select Afrikaans(South Africa) and press [Finish] button
6. confirm the registry setting
7. [Run] | [Run(F9)]

Albert vd Westhuizen at 4/20/2012 2:56:45 AM -
Ok I really dont understand what was different now, I've done this many times exactly like this and it didn't work. Now 'keeping an eye on the registry' seem to have made it realise I was checking it and it worked in my sample project.

Thank you for the replies, at least now I know I did do it right, I just need to figure out what I do wrong in my main application for it to work there too.

Thanks again, appreciate the quick help!

Albert vd Westhuizen at 4/20/2012 3:23:20 AM -
I have found the original problem why it did not work on my application. Maybe this help someone in future

The language resource would not compile on its own due to missing files:
'vcl \ DBLOGDLG.dfm'
'vcl \ DBPWDLG.dfm'
'vcl \ DBLOGDLG.dfn'
'vcl \ DBPWDLG.dfn'

copying these files into each language's vcl folder solves the problem 100%

Tomohiro Takahashi at 4/20/2012 8:00:02 PM -
Could you please put new QC report about the issue?

Server Response from: ETNACODE01