DelphiMan68 / iwelite

Automatically exported from code.google.com/p/iwelite
Other
0 stars 0 forks source link

TArcIWTranslator :: duplicated translation values for translation group in the component def. in the dfm file. #7

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
======================================
1. Put a TArcIWTranslator on an Intraweb Form 
   with some visual component (TIWLabel, etc.)

2. Right-click on the component and choose "Edit Translation groups"
   2.1. Add the following group:
        ENGLISH
      2.1.1. Add "en" language in it.
   2.2. Add the following group:
        FRANCAIS
      2.2.1. Add "fr" language in it.
   2.2. Click ok.

3. Right-click on the translator component and chooose "Edit translations"
   3.1. "Refer to issue no.6" regarding the "default language" 
popupListBox 
        not being filled on first component addition.

   3.2. Check a component (A TIWLabel) in the listbox and click OK.

   3.3. Edit the caption property in both language usin the "Edit 
translation button"
        and put a different value for each translation. Click OK.

   3.3. Click OK on the "Control transaltion editor" window.

4. Right-click on the translator component and chooose "Edit translations" 
AGAIN.

   4.1. Click on the TIWLabel you just translated before.
      4.1.1. Edit both translation again and change the values of those 
translations.
             Click OK.

   4.2. Click OK on the "Control translation editor" window.

5. Right-Click on the Form and choose "View as text"

   ****** HERE IS THE BUG, in the DFM fILE *****
   5.11. Scroll down to the TArcIWTranslator object and
         under our TIWLabel translation reference, you'll found
         duplicated values for one or both existing translation group.  

         This lead to unpredictable translation by keeing discarded or old 
         translation values.

         This make this component unusable unless you keep 
         going into the dfm to delete unwanted translation values
         each time you do a modification... annoying.

   **************************************************         

What is the expected output? What do you see instead?
=====================================================

Explain in prior point 5.
   -> Duplicated translation values.

What version of the product are you using? On what operating system?
===============================================
Intraweb 9.0.42, Delphi 2007, EliteSuite 2.6.72

Please provide any additional information below.
=======================

PLEASE, YOU CAN ALSO PROVIDE ME WITH A PACKAGE OF THE TRANSLATION
OBJECTS THAT I CAN USE IN RUNTIME AND DEBUG IT. 

I'M NOT VERY KNOWING OF SEPARATING A RUNTIME PACKAGE FROM THE DESIGN-TIME 
ONE 
TO EFFECTIVLY DEBUG THE CODE.

Please advise.
Jack.

Original issue reported on code.google.com by jybleau%...@gtempaccount.com on 10 Feb 2009 at 2:05