asp classic - Multilangual website using ASP and a database -


I want to consult something about

There are 3 languages ​​in my website using the table database with Hebrew (main), English and Russian I fields: ID, field_name, 1, 2, 3 . Where there are 1 2 3 languages.

On entering website language 1 (Hebrew) is selected automatically until you choose second. Saved as Session ("Current Language") .

I received the name Langstead whice a field and prints the value according to the language session ("current language") in :

set language language languages ​​strings = server.ct object ("ADODB.Recordset") language words. ActiveConnation = MM_KerenDB_STRINGLanguage terms. Source = "SELECT fieldName," & multilingangual "languageStrings.CursorType = 0 Bhashatrestings. Cursor location = 2 Bhashatrestingskloktaip = 1 Language: Strings. Open () do not have time to sub Langstring (Fildnam) (Language of stuff. Iof) if (languageStrings.fields .item ( "fieldName"). Value = fieldName) Exit and other Language: Stringskmovintest end if loop if (languageStrings.EOF) reaction. write ( "***" and the field name and "* ** ") and feedback. (Languages ​​of the fields Fields E. Aitiim (current language + 1). Value) that slow EStrings.movefirst end sub

And I use it like this: & lt; div & gt; langstring ("Header") . .

I find it stupid to send queries to the server on any and every page, since the multilingual table " "She does not change, so I want to save the record set for the current browsing in some way.

I'm getting help for the this solution, please

If they do not change many times, just do not dump strings into any .asp file.

Another option


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -