| Author |
Message |
|
2008/03/19 22:02
|
|
|
Nad
Joined: 2008/03/19
Messages: 23
Offline
|
|
|
|
|
Hi Jick,
I'm playing with evaluation copy of BP-VA AE and I've found a pair of warts related to project publishing in batch mode.
First, all text strings in generated HTML files are found to be "platform encoded" (cp1251 in my case) - in spite of META directive which (fairly and hopefully) declares UTF-8 encoding.
Second, my local translations are not honored during batch mode publishing. Actually, the language file (in UserLanguage folder) is fully ignored in this mode.
Everything is OK when I publish through the IDE.
Nad
|
|
|
|
 |
| |
|
2008/03/20 17:46
|
|
|
LilianWong
Joined: 2008/02/22
Messages: 713
Offline
|
|
|
|
Hi Nad,
Thank you for your post. I'm Lilian, a colleague of Jick.
We've tried to repeat your problem but not successful. Could you send me a screeshot for the encoding problem so that we can have further investigation? Thanks in advance!
Best regards,
Lilian Wong
|
|
|
|
 |
| |
|
2008/03/20 20:04
|
|
|
Nad
Joined: 2008/03/19
Messages: 23
Offline
|
|
|
|
Hi Lilian,
Thank you for your quick response.
I'm attaching two screenshots as well as their sources generated by BP-VA. Please note that IDE-generated screen contains translated names of model elements and subheadings according to my .lng file.
cmd_publish.zip: results from command-line publishing.
IDE_publish.zip: results via IDE.
Nad
|
| Description |
|
Download
|
| Filesize |
65 kb
|
| Downloaded: |
67 time(s) |
| Description |
|
Download
|
| Filesize |
60 kb
|
| Downloaded: |
62 time(s) |
|
|
|
|
 |
| |
|
2008/03/25 15:09
|
|
|
LilianWong
Joined: 2008/02/22
Messages: 713
Offline
|
|
|
|
Hi Nad,
Thanks for the files. I've forwarded this problem to our engineers for investigation. If there is any feedback, I'll come back to you immediately.
If you need any help, please feel free to contact me again.
Best regards,
Lilian Wong
|
|
|
|
 |
| |
|
2008/03/26 11:00
|
|
|
LilianWong
Joined: 2008/02/22
Messages: 713
Offline
|
|
|
|
|
 |
| |
|
2008/03/26 18:53
|
|
|
Nad
Joined: 2008/03/19
Messages: 23
Offline
|
|
|
|
Hi Lilian,
Thank you, but I'd like to confess that I'm slightly discouraged.
VP-Suite is an absolute overkill for our needs, and we were talking about BP-VA, weren't we?
Nevertheless, I tried this VP-Suite patch:
1. Yes, the language translations are now honored during project
publishing in batch mode.
2. But no, the resulting HTML files are not correct:
they are still encoded in Windows ANSI code page in spite of the META
directive that declares UTF-8 encoding.
Nad
|
|
|
|
 |
| |
|
2008/03/27 18:49
|
|
|
Jick
Joined: 2005/04/29
Messages: 2881
Offline
|
|
|
|
Hi Nad,
Thank you for trying out the fix. We thought you were installing VP Suite (VP Suite contains BP-VA).That's why we sent you VP Suite. Sorry about this. We will send you BP-VA from now on.
Let's go back to your question first.
Could you send us the following files for further investigation?
1. a screenshot of your BP-VA About dialog box
2. the script you used to run ProjectPublisher.bat
3. the ProjectPublisher.bat file
4. a screenshot of your 'Regional and Language Options' dialog box
Finally, does the problem occur ONLY IN BATCH MODE? This is very important.
Look forward to hearing from you.
Best regards,
Jick
|
Visual Paradigm International Ltd.
http://www.visual-paradigm.com
Build Quality Applications Faster, Better and Cheaper |
|
|
|
 |
| |
|
2008/03/27 21:08
|
|
|
Nad
Joined: 2008/03/19
Messages: 23
Offline
|
|
|
|
Hi Jick,
Yes, the problem occurs ONLY IN BATCH MODE, as I've clearly stated before.
Now I'm attaching the whole bunch of data, and I hope it will help your devs. Let me explain in detail.
I created the fresh workspace in my D:\Temp directory and created there a new simple project with cyrillic name "Тест" ("Test" in English). Then I published the project into "publish_from_ide" subfolder, exited from BP-VA and published the project from command line into "publish_from_cmd" subfolder. I've run the ProjectPublisher.bat file manually (see publish.jpg screenshot).
Finally, I zipped all the contents of Temp folder and now I'm attaching it here.
As I've said earlier, the latest VP-Suite patch solved one of 2 problems. I hope these corrections will be applied to BP_VA too.
Nad
| Description |
|
Download
|
| Filesize |
644 kb
|
| Downloaded: |
74 time(s) |
|
|
|
|
 |
| |
|
2008/03/28 11:26
|
|
|
LilianWong
Joined: 2008/02/22
Messages: 713
Offline
|
|
|
|
|
 |
| |
|
2008/03/28 15:37
|
|
|
Nad
Joined: 2008/03/19
Messages: 23
Offline
|
|
|
|
Hi Lilian,
YES!!
The last patch has finally solved the problems.
Thank you so much!
(BTW, I've had one more related question, which is now obsolete:
setting aside i18n, why on earth HTML files generated in both modes were
different attribute-wise? That was an obvious sign of alert for me.)
Thank you again,
quite-impatient-for-remaining-problems-to-be-solved-ly,
Nad
|
|
|
|
 |
| |
|
2008/03/31 13:26
|
|
|
Jick
Joined: 2005/04/29
Messages: 2881
Offline
|
|
|
|
Hi Nad,
They are supposed to be the same. The problem was due to the publishing process look for a class from a jar file which wasn't present in the class path written in the script, which resulted in looking from the JRE. And regretfully, the one supplied by the JRE have problem (the encoding problem you experienced), that's why the output generated from both modes were different. The patch fixed the problem script by adding the required jar filepath in classpath, so the output published by both modes are now the same.
Best regards,
Jick
|
Visual Paradigm International Ltd.
http://www.visual-paradigm.com
Build Quality Applications Faster, Better and Cheaper |
|
|
|
 |
| |
|
2008/03/31 15:09
|
|
|
Nad
Joined: 2008/03/19
Messages: 23
Offline
|
|
|
|
Hi Jick,
Ah, now I see. Thanks for the explanation.
Nad
|
|
|
|
 |
| |
|
2008/04/01 08:57
|
|
|
LilianWong
Joined: 2008/02/22
Messages: 713
Offline
|
|
|
|
Hi Nad,
Thank you for replying, you are welcome. If there are any inquiries, please do no hesitate to contact me.
Best regards,
Lilian Wong
|
|
|
|
 |
| |