Author |
Topic  |
|
bjlt
Senior Member
   
1144 Posts |
Posted - 01 November 2002 : 11:20:25
|
I know snitz will not use fso, however, I'd like to use it for dynamic switching languages, but I got problem with utf-8 and Chinese.
I tried to use fso to read and then execute the lanpacks. it works fine if I do not specify encoding method, however, there's problem using utf-8.
I set html character set as utf-8.
when using the Simplified Chinese lanpacks, it won't display correctly as the characters themselves are in cn-gb, which is resonalbe. However I can't find a way to fix it. If I save the lanpack as utf-8 I got an invalid character error, I tried to save the asp file as utf-8 but there's the same error.
can I use utf-8 with the read by fso and execute method? how?
Thanks in advance.
Here's the files I use:
http://66.34.187.175/a.zip
< |
|
Deleted
deleted
    
4116 Posts |
Posted - 01 November 2002 : 13:45:51
|
You can use FSO only with ANSI and UNICODE files, not UTF-8... This is also the reason I left further development in the LangPackManager. I don't know any workaround for this... < |
Stop the WAR! |
 |
|
Deleted
deleted
    
4116 Posts |
Posted - 02 November 2002 : 18:56:34
|
More languages, more resources... Yes the method is the same, but e don't have large increase in strings because we used global strings preventing multiple translations...< |
Stop the WAR! |
 |
|
Deleted
deleted
    
4116 Posts |
Posted - 03 November 2002 : 15:53:16
|
BTW, do you use these stuff with Snitz? If you are using config.asp for example the session.lcid=1033 can interfare with it... < |
Stop the WAR! |
 |
|
David K
Junior Member
 
494 Posts |
Posted - 03 November 2002 : 17:41:24
|
quote: Originally posted by bozden
More languages, more resources... Yes the method is the same, but e don't have large increase in strings because we used global strings preventing multiple translations...
Doesn't that kinda defeats the purpose of multi language support?< |
 |
|
Deleted
deleted
    
4116 Posts |
Posted - 03 November 2002 : 18:17:09
|
We think that 90% will use in in one language, %9 will use 2-3 languages. Only 1% will need to support larger number of languages. To keep the overhead caused by internationalization (nearly) constant, we had to use a database table or similar, but database access is 50 times slower than current implementation.
No, it does not defeat anything, it is just better optimization. You can also use 10 langpack includes if you have a better server. Like everthing else, there is a compremise between available options and resources. If you add 1-2 MODs which are executed on every hit (such as who is online etc), that will hit the server much more...
But, unfortunately, we don't have a good test for these performance issues... < |
Stop the WAR! |
 |
|
David K
Junior Member
 
494 Posts |
Posted - 03 November 2002 : 18:26:05
|
BTW, are there any improvements planned in v4? like PMs or things like that?
FYI, I replied some of your replies in other posts recently< |
 |
|
Deleted
deleted
    
4116 Posts |
|
Deleted
deleted
    
4116 Posts |
Posted - 06 November 2002 : 08:40:00
|
quote:
how would Snitz do on this? load all once
Yes
quote:
I'll try to use redirection to files with only one lang support, that means I need several copy of the site, I only need to change the path of the lang files and universal used files/paths.
I'm not sure if I understand this, but if you plan to have 9 different forum installations using the same DB, it will be a problem for the server because application variables will be 9x larger.
We are currently testing the alpha version with 5 languages installed, and it is working fine, but we only have 10 users, 3-4 using it at once... Actually the problem will be scalability in any solution you find... And without web server stress tests, we will never know hot it will behave. For this, we would need a 3-5 machine network... < |
Stop the WAR! |
 |
|
Deleted
deleted
    
4116 Posts |
Posted - 06 November 2002 : 10:13:33
|
I see. I used a different approach in http://www.istanbulmuzesi.org site. I had several flavours, but used LCID value as language indicator:
- If the textual info is few, use select-case/if-then-else with variables, or just two code parts
- If there are large web pages, use filenameNNNN.asp (or .htm) structure and keep them in one directory
- If the design needs it use complete subdirs /mysubweb1033/, /mysubweb1055/ etc
If you integrate the site with database too much and/or you have high amount of calculations to render it, consider the options above.
If it is not, the design/maintanence overhead will be unnecessary, do it like you say: Design one web site and copy the files.
One major problems will be if contents is not available in language X thou... < |
Stop the WAR! |
 |
|
|
Topic  |
|