Changeset 1856 for trunk/gsdl/macros


Ignore:
Timestamp:
2001-01-23T10:58:19+13:00 (23 years ago)
Author:
sjboddie
Message:

Added Encoding and Language options to main.cfg configuration file so
it's now hopefully a little easier to add new languages and encodings
to the interface. Each interface language also now has a default encoding
so that changing languages from the preferences page causes the encoding
to change to a value reasonable for the selected language.

Location:
trunk/gsdl/macros
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/macros/english.dm

    r1806 r1856  
    627627_textdigitlib_ {the digital library}
    628628_textweb_ {the web}
    629 _textlangeng_ {English}
    630 _textlanggerman_ {German}
    631 _textlangfrench_ {French}
    632 _textlangspanish_ {Spanish}
    633 _textlangmaori_ {M_amn_ori}
    634 _textlangchinese_ {Chinese}
    635 _textlangarabic_ {Arabic}
    636 _textlangportuguese_ {Portuguese}
    637 _textlangdutch_ {Dutch}
    638629_textgraphical_ {Graphical}
    639630_texttextual_ {Textual}
  • trunk/gsdl/macros/pref.dm

    r1838 r1856  
    200200function updatel () \{
    201201  value = document.PrefForm.l.options[document.PrefForm.l.selectedIndex].value;
    202   location.href = location.href + "&l=" + value + getargs();
     202  location.href = location.href + "&nl=1&l=" + value + getargs();
    203203\}
    204204
     
    210210function updatew () \{
    211211  value = document.PrefForm.w.options[document.PrefForm.w.selectedIndex].value;
    212   location.href = location.href + "&nw=" + value + getargs();
     212  location.href = location.href + "&nl=0&nw=" + value + getargs();
    213213\}
    214214}
     
    330330}
    331331
     332# set from within pageaction
    332333_languageoption_ {}
    333 
    334 _enlanguageoption_ {<option value="en"_If_("_cgiargl_",, selected)_If_("_cgiargl_" eq "en", selected)>_textlangeng_}
    335 _delanguageoption_ {<option value="de"_If_("_cgiargl_" eq "de", selected)>_textlanggerman_}
    336 _frlanguageoption_ {<option value="fr"_If_("_cgiargl_" eq "fr", selected)>_textlangfrench_}
    337 _eslanguageoption_ {<option value="es"_If_("_cgiargl_" eq "es", selected)>_textlangspanish_}
    338 _milanguageoption_ {<option value="mi"_If_("_cgiargl_" eq "mi", selected)>_textlangmaori_}
    339 _zhlanguageoption_ {<option value="zh"_If_("_cgiargl_" eq "zh", selected)>_textlangchinese_}
    340 _arlanguageoption_ {<option value="ar"_If_("_cgiargl_" eq "ar", selected)>_textlangarabic_}
    341 _ptlanguageoption_ {<option value="pt"_If_("_cgiargl_" eq "pt", selected)>_textlangportuguese_}
    342 _nllanguageoption_ {<option value="nl"_If_("_cgiargl_" eq "nl", selected)>_textlangdutch_}
    343 
    344 _encodingoption_ {
    345 _textencoding_
    346 <select name="w" onChange="updatew();">
    347   <option value="w" _If_("_cgiargw_" eq "w",selected)>Western (ISO-8859-1)
    348   <option value="u" _If_("_cgiargw_" eq "u",selected)>UTF-8
    349   <option value="g" _If_("_cgiargw_" eq "g",selected)>GBK
    350   <option value="a" _If_("_cgiargw_" eq "a",selected)>Arabic (windows 1256)
    351   <option value="c" _If_("_cgiargw_" eq "c",selected)>Cyrillic (windows 1251)
    352 </select>
    353 }
     334_encodingoption_ {}
    354335
    355336_formatoption_ {
     
    365346_navigationbar_
    366347</center>
     348
    367349<blockquote>
    368350
     
    409391
    410392<p>
    411 _languageoption_
    412 
    413 <p>
    414 _encodingoption_
     393_If_(_languageoption_,_textlanguage__languageoption_)
     394
     395<p>
     396_If_(_encodingoption_,_textencoding__encodingoption_)
    415397
    416398<p>
Note: See TracChangeset for help on using the changeset viewer.