Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 DEV-Group
 DEV Internationalization (v4)
 how large is a large lang pack in size?
 Forum Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

bjlt
Senior Member

1144 Posts

Posted - 05 December 2002 :  01:54:47  Show Profile
what size of the final single lang package of snitz would be? and what would be (over) large lan files?

I see in v4b03 it's about 200k, is it a large file for the server to process?

As I need to support dynamic change of many languages I have to take another approch, either use fso to read and execute one lang pack, or use select case for a lang file with all the lang strings in it.

I use one global lang file for words in header, footer etc, and a lang file for each page if it's needed, to reduce the size of each file. I think my global lang file would be around 200k to 300k if I support 8 or 9 languages, and stand alone global lang file would be around 30k.

question is which way to go? fso a 30k file using const strings, or select case a 300k with dimmed strings?

thanks in advance.

btw, fso then execute works if you save the lan file as utf-8, but using fso unicode format to read, while for non-file pack asp files, just add @codepage = 65001 at the top and save it as normal format.

<

Deleted
deleted

4116 Posts

Posted - 05 December 2002 :  04:14:56  Show Profile
The current (v4b04 alpha 02) non-utf-8 lang1033.asp file is 148kb (includes all strings but not the comments). UTF-8 files will be larger depending on the language, e.g. German will be a bit larger, but Japanese will be a lot larger.

The idea you used (page based language files) is a good way to work with, but not easy to manage with so many languages. If you are talking of non-userinterface/non-forum content in pages, why don't you consider a database based content management system?

An alternative would be making use of server.execute (IIS 5.x only non-dynamic content) or IFrames (IE only)... These are only if you are speking of the content, not the interface...

For example:

/section/default.asp
/section/en/_default.asp
/section/fr/_default.asp
/section/jp/_default.asp

and /section/default.asp has the following:


...
code for other stuff
...
<% server.execute strUserLanguage & "/_" & strScriptName %>
...
code for other stuff
...


There will be an overhead if you use dynamic content ALSO in the main part (e.g. some files will be included more than once etc)...

<

Stop the WAR!
Go to Top of Page
  Previous Topic Topic Next Topic  
 Forum Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.13 seconds. Powered By: Snitz Forums 2000 Version 3.4.07