Support forum of the software localization tool Sisulizer


.NET, Delphi, ... - Sisulizer Localization Tool Support Home

Get in contact with the makers of Sisulizer.
Our forum is open for all questions around Sisulizer from customers and prospects.
Don't hesitate to register and ask. The Sisulizer team will answer ASAP.

Search     Help Home Sisulizer Website Download
Search by username
Not logged in - Login | Register 

 Moderated by: Renate.Reinartz, Markus.Kreisel, Jaakko.Salmenius, Ilkka.Salmenius
New Topic Reply Printer Friendly
wrong filenames in project tree - Bugs and Quirks in Sisulizer - Technical Support (You need to be registered at the forum to write) - .NET, Delphi, ... - Sisulizer Localization Tool Support
AuthorPost
 Posted: Wed Jul 18th, 2007 02:15 pm
PM Private Upload Quote Reply
Josef Gschwendtner
Member
 

Joined: Wed Jul 18th, 2007
Location:  
Posts: 10
Status: 
Offline
Hi,

I have imported a Delphi project with files containing resourcestrings and filenames like "ut_Const".

Within the project tree this filename is shown as "ut" (instead of ut_Const).  If more than one file has the prefix ""ut_" than resourcestrings from all these files are shown selecting "ut".

The context-column within the translation grid shows for a resourcestring "sResString" in unit "ut_Const" --> Const_sResString.

I don't think this is by design. Am I right?

Regards,

Josef

 

Back To Top PM Private Upload Quote Reply

 Posted: Wed Jul 18th, 2007 04:34 pm
PM Private Upload Quote Reply
Ilkka.Siikanen
Administrator
 

Joined: Wed Aug 30th, 2006
Location: Vantaa, Finland
Posts: 115
Status: 
Offline
In DRC-file the "_"-character is a separator between unit and resource string names. For example:
#define MainFrm_SHelloWorld 65265

Sisulizer searches for that separator and splits the DRC-name to unit and resource string names (e.g MainFrm and SHelloWorld).

If unit name contains "_" charcter the DRC-name can't be splitted correctly. For example:
#define Main_Frm_SHello_World 65265

Now Sisulizer can't find for sure the right place to split. That's why it's better not use "_"-characters in unit names.

You have an unit "ut_Const" and a resourcestring "sResString". In DRC file the is a line "ut_Const_sResString". SL assumes that "ut" is the unit name. Please rename you ut_Conts.pas for example to utConst.pas.

By the way. Did you get a warning during scanning? Like this.


best regards
Ilkka


Attachment: DRC.PNG (Downloaded 41 times)

Last edited on Wed Jul 18th, 2007 05:00 pm by Ilkka.Siikanen



____________________
http://www.sisulizer.com - Three simple steps to localize
Back To Top PM Private Upload Quote Reply

 Posted: Wed Jul 18th, 2007 05:29 pm
PM Private Upload Quote Reply
Josef Gschwendtner
Member
 

Joined: Wed Jul 18th, 2007
Location:  
Posts: 10
Status: 
Offline
I see ...

In Delphi the unitname cann't be equal the objectname. Therefore our form-objects are named fmxxx and the corresponding files/units are named fm_xxx.

How deal other Delphi programmers with this?

By the way, our former tool Localizer could handle this somehow? (see screenshot below).

 

Regards,

Josef

Attachment: Test.png (Downloaded 44 times)

Back To Top PM Private Upload Quote Reply

 Posted: Wed Jul 18th, 2007 05:37 pm
PM Private Upload Quote Reply
Ilkka.Siikanen
Administrator
 

Joined: Wed Aug 30th, 2006
Location: Vantaa, Finland
Posts: 115
Status: 
Offline
Most of them name by this way:
MyDialog => MyDlg.pas
MyForm => MyFrm.pas

I will take a second look, if I can find a better logic to split the DRC-item. Don't rename your unit yet.

Ilkka

Last edited on Thu Jul 19th, 2007 08:21 am by Ilkka.Siikanen



____________________
http://www.sisulizer.com - Three simple steps to localize
Back To Top PM Private Upload Quote Reply

 Posted: Thu Jul 19th, 2007 08:02 am
PM Private Upload Quote Reply
Ilkka.Siikanen
Administrator
 

Joined: Wed Aug 30th, 2006
Location: Vantaa, Finland
Posts: 115
Status: 
Offline
I found a working logic and implemented it. It will in the next build (1.5.19). You don't need to change your unit names (you can still use '_' characters). Just keep workig with your current build and translate the strings with the wrong context and folder. Those translatios won't be lost.

best regards
Ilkka

Last edited on Thu Jul 19th, 2007 08:21 am by Ilkka.Siikanen



____________________
http://www.sisulizer.com - Three simple steps to localize
Back To Top PM Private Upload Quote Reply

 Posted: Thu Jul 19th, 2007 08:11 am
PM Private Upload Quote Reply
Josef Gschwendtner
Member
 

Joined: Wed Jul 18th, 2007
Location:  
Posts: 10
Status: 
Offline
Thanks a lot ...

Back To Top PM Private Upload Quote Reply

 Posted: Wed Aug 8th, 2007 04:37 am
PM Private Upload Quote Reply
Jaakko.Salmenius
Administrator


Joined: Sat Apr 8th, 2006
Location: Espoo, Finland
Posts: 2275
Status: 
Offline
1.6.0 is available
http://www.sisulizer.com/downloads.shtml

Jaakko



____________________
http://www.sisulizer.com - Three simple steps to localize
Back To Top PM Private Upload Quote Reply

 Posted: Sun Aug 12th, 2007 07:33 pm
PM Private Upload Quote Reply
EvRenesse
Member
 

Joined: Mon Sep 25th, 2006
Location: Berlin, Germany
Posts: 18
Status: 
Offline
Hi,

now there is another problem:

I use a unit 'ResStr' for resource strings. The resource strings are named for example 'abc_def'. The drc-file contains 'ResStr_abc_def'. The path inside Sisulizer was 'ResStr.abc_def'.

That was working well till now.

After updating from version 1.5.4 to 1.6.0 and scanning the source EXE i get the following result:

Project tree: A new node named 'ResStr_abc'. The path is 'ResStr_abc.def'. Hundreds of items are now 'Unused', and the same originals come up as 'New'.

I reinstalled the version 1.5.4 to proceed my job without problems, but i hope, you can fix all the problems around the '_'.

Ekkehart v. Renesse

Back To Top PM Private Upload Quote Reply

 Posted: Sun Aug 12th, 2007 09:43 pm
PM Private Upload Quote Reply
Ilkka.Salmenius
Administrator


Joined: Wed Aug 8th, 2007
Location: Tokyo, Japan
Posts: 795
Status: 
Offline
I have to take the .DRP file in use along with the .DRC file. Using the .DRP file Sisulizer can find 100% exact break point between the unit name and the string name. It will be available in build 1.6.1.

I will implement it so way that the .DPR file is not obligatory. It is only needed in those cases where either unit name or string cabe contains '_' characters.

best regards
Ilkka

Last edited on Sun Aug 12th, 2007 09:44 pm by Ilkka.Salmenius



____________________
http://www.sisulizer.com - Three simple steps to localize
Back To Top PM Private Upload Quote Reply

 Posted: Mon Aug 13th, 2007 07:00 am
PM Private Upload Quote Reply
EvRenesse
Member
 

Joined: Mon Sep 25th, 2006
Location: Berlin, Germany
Posts: 18
Status: 
Offline
Hi,

thanks! I look forward for version 1.6.1.

Ekkehart v. Renesse

Back To Top PM Private Upload Quote Reply

 Posted: Tue Aug 14th, 2007 06:28 am
PM Private Upload Quote Reply
Ilkka.Salmenius
Administrator


Joined: Wed Aug 8th, 2007
Location: Tokyo, Japan
Posts: 795
Status: 
Offline
There wasn't enough time to implement it to 1.6.1. It will be in 1.6.2



____________________
http://www.sisulizer.com - Three simple steps to localize
Back To Top PM Private Upload Quote Reply

 Posted: Thu Aug 16th, 2007 04:50 pm
PM Private Upload Quote Reply
EvRenesse
Member
 

Joined: Mon Sep 25th, 2006
Location: Berlin, Germany
Posts: 18
Status: 
Offline
Hi,

after installing version 1.6.2 the error is still present. I checked with and without the new option für dpr files.

I have no unit names including '_', but resource string names with one or several '_'. Resource string names without any '_' do not cause errors.

Original examples:

Unit: ResStr.pas

dpr file contains:
ResStr in 'ResStr.pas',

drc file contains:
#define ResStr_u01FDSW_PVZRefTextZusatz 64224
#define ResStr_u01INIdflt__MARNM 65034 (Attention: 2 '_')
 ResStr_u01FDSW_PVZRefTextZusatz, "PVZRefTextZusatz"
 ResStr_u01INIdflt__MARNM, "_MARNM" (Attention: 2 '_')

Resource string name 'u01FDSW_PVZRefTextZusatz' causes:
node: ResStr_u01FDSW
path: ResStr_u01FDSW.PVZRefTextZusatz

Resource string name 'u01INIdflt__MARNM' causes:
node: ResStr
path: ResStr.u01INIdflt_MARNM (Attention: one '_' lost)

Both results came up with and without the new dpr file option selected or not selected.

In the moment i do not need a solution, because i just published a new version localized with sisulizer version 1.5.4. But in 2 or 3 months i have to do the next localization, and i would like to join the new versions.

Ekkehart v. Renesse

Back To Top PM Private Upload Quote Reply

 Posted: Thu Aug 16th, 2007 05:05 pm
PM Private Upload Quote Reply
Ilkka.Salmenius
Administrator


Joined: Wed Aug 8th, 2007
Location: Tokyo, Japan
Posts: 795
Status: 
Offline
The new feature is not in 1.6.2. There was not enough time to test it well. It will be in 1.6.3. We will relese it on next week.

best regards



____________________
http://www.sisulizer.com - Three simple steps to localize
Back To Top PM Private Upload Quote Reply

 Posted: Thu Aug 23rd, 2007 09:18 am
PM Private Upload Quote Reply
Ilkka.Salmenius
Administrator


Joined: Wed Aug 8th, 2007
Location: Tokyo, Japan
Posts: 795
Status: 
Offline
Now it has been implemented to 1.6.4.

http://www.sisulizer.com/downloads.shtml

If you have your .DRP file in the same directory than .EXE and .DRC all you need is to rescan. If the .DRP file is somewhere else please right click EXE node and choose "Properties..." From project tab specify .DPR file.


regards
Ilkka


Last edited on Thu Aug 23rd, 2007 09:20 am by Ilkka.Salmenius



____________________
http://www.sisulizer.com - Three simple steps to localize
Back To Top PM Private Upload Quote Reply

 Posted: Thu Aug 23rd, 2007 10:20 am
PM Private Upload Quote Reply
EvRenesse
Member
 

Joined: Mon Sep 25th, 2006
Location: Berlin, Germany
Posts: 18
Status: 
Offline
Hi,

thanks for the implementation to 1.6.4. Now it seems to be ok.

One question remains:

Resource string names with two consecutive '_' are shown in the context column with only one '_':

dpr file contains:
ResStr in 'ResStr.pas'

Resource string name:
u01INIdflt__MARNM

drc file contains:
#define ResStr_u01INIdflt__MARNM 65034
 ResStr_u01INIdflt__MARNM, "_MARNM"

node: ResStr
context column/path: ResStr.u01INIdflt_MARNM (Attention: one '_' lost)

The localized EXE is running well. I think it might be only a problem of the display in the context column. Please let me know wether i am right or wether i have to expect problems with these resource string names.

Ekkehart v. Renesse

Back To Top PM Private Upload Quote Reply

 Posted: Thu Aug 23rd, 2007 10:35 am
PM Private Upload Quote Reply
Ilkka.Salmenius
Administrator


Joined: Wed Aug 8th, 2007
Location: Tokyo, Japan
Posts: 795
Status: 
Offline
You were right. Double '_' chars were ignored. I will fix it to the 1.6.5

Ilkka



____________________
http://www.sisulizer.com - Three simple steps to localize
Back To Top PM Private Upload Quote Reply

 Posted: Thu Aug 30th, 2007 08:10 pm
PM Private Upload Quote Reply
EvRenesse
Member
 

Joined: Mon Sep 25th, 2006
Location: Berlin, Germany
Posts: 18
Status: 
Offline
Hi,

thanks for the perfect solution in version 1.6.5. All double '_' are scanned well.

Ekkehart v. Renesse

Back To Top PM Private Upload Quote Reply

Current time is 08:22 am  
.NET, Delphi, ... - Sisulizer Localization Tool Support > Technical Support (You need to be registered at the forum to write) > Bugs and Quirks in Sisulizer > wrong filenames in project tree



WowUltra modified by Sisulizer Copyright © 2007-09 by Jim Hale - Based on WowBB Copyright © 2003-2006 Aycan Gulez

Sisulizer software localization tool - Three simple steps to localize