|
|||
|
.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
|
| Moderated by: Renate.Reinartz, Markus.Kreisel, Jaakko.Salmenius, Ilkka.Salmenius |
|
||||||||||||||||
| 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 | |||||||||||||||||
| Author | Post | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|||||||||||||||||
|
Josef Gschwendtner Member
|
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
|
||||||||||||||||
| |||||||||||||||||
| |||||||||||||||||
|
Ilkka.Siikanen Administrator
|
In DRC-file the "_"-character is a separator between unit and resource string names. For example:
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:
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 |
||||||||||||||||
| |||||||||||||||||
|
|||||||||||||||||
|
Josef Gschwendtner Member
|
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)
|
||||||||||||||||
| |||||||||||||||||
| |||||||||||||||||
|
Ilkka.Siikanen Administrator
|
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 |
||||||||||||||||
| |||||||||||||||||
|
|||||||||||||||||
|
Ilkka.Siikanen Administrator
|
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 |
||||||||||||||||
| |||||||||||||||||
| |||||||||||||||||
|
Josef Gschwendtner Member
|
Thanks a lot ...
|
||||||||||||||||
| |||||||||||||||||
|
|||||||||||||||||
|
Jaakko.Salmenius Administrator
|
1.6.0 is available http://www.sisulizer.com/downloads.shtml Jaakko
____________________ http://www.sisulizer.com - Three simple steps to localize |
||||||||||||||||
| |||||||||||||||||
| |||||||||||||||||
|
EvRenesse Member
|
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
|
||||||||||||||||
| |||||||||||||||||
|
|||||||||||||||||
|
Ilkka.Salmenius Administrator
|
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 |
||||||||||||||||
| |||||||||||||||||
| |||||||||||||||||
|
EvRenesse Member
|
Hi, thanks! I look forward for version 1.6.1. Ekkehart v. Renesse
|
||||||||||||||||
| |||||||||||||||||
|
|||||||||||||||||
|
Ilkka.Salmenius Administrator
|
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 |
||||||||||||||||
| |||||||||||||||||
| |||||||||||||||||
|
EvRenesse Member
|
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
|
||||||||||||||||
| |||||||||||||||||
|
|||||||||||||||||
|
Ilkka.Salmenius Administrator
|
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 |
||||||||||||||||
| |||||||||||||||||
| |||||||||||||||||
|
Ilkka.Salmenius Administrator
|
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 |
||||||||||||||||
| |||||||||||||||||
|
|||||||||||||||||
|
EvRenesse Member
|
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
|
||||||||||||||||
| |||||||||||||||||
| |||||||||||||||||
|
Ilkka.Salmenius Administrator
|
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 |
||||||||||||||||
| |||||||||||||||||
|
|||||||||||||||||
|
EvRenesse Member
|
Hi, thanks for the perfect solution in version 1.6.5. All double '_' are scanned well. Ekkehart v. Renesse
|
||||||||||||||||
| |||||||||||||||||
| 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 | |
Sisulizer software localization tool - Three simple steps to localize