DIENST-ETRDL Language Customization

The version 4.1.9E of the DIENST-ETRDL system is distributed with a double language user interface (UI): English and Italian. At present the Administrator User Interface is in English only.

This document contains the procedure to customize the version 4.1.9E of the DIENST-ETRDL system with your local language.


Requirements

  1. First complete the DIENST-ETRDL installation procedure

  2. Then verify that everything is OK; if there are any problems please contact etrdl@iei.pi.cnr.it

  3. You need some HTML programming skill sto customize the system with your own language


Edit the homepages

There are two homepages: the English one is the file "‹your path›/dienst/htdocs/index.html" and the Italian one is the file "‹your path›/dienst/htdocs/index-it.html". The English UI starts by default. You can switch from one UI to the other by clicking the appropriate link that you can find in both homepages.

TIP: You can obtain a three language UI if you decide to add your language without deleting the Italian UI. You can do this by addition instead of substitution of files.

  1. Change directory to
    "‹your path›/dienst/htdocs".

  2. make a copy of file
    "‹your path›/dienst/htdocs/index.html"

  3. rename the copy to "‹your path›/dienst/htdocs/indexCountryCode.html" where CountryCode is:
    • du for Dutch
    • en for English
    • fr for French
    • ge for German
    • gr for Greek
    • hu for Hungarian
    • it for Italian
    • po for Portoguese
    • sw for Swedish
  4. translate English sentences into your own language
  5. ATTENTION: Do not translate HTML tags and links

  6. customize e-mail addresses and other links

  7. replace all 6 occurrences of "langver=" with "langver=CountryCode"

  8. edit file "‹your path›/dienst/htdocs/index.html" to link to "‹your path›/dienst/htdocs/indexCountryCode.html"

  9. if you have decided not to keep the Italian UI, delete the file "‹your path›/dienst/htdocs/indexit.html"


Picture 1. Files inside "htdocs" directory.


Edit help-on-line files and librarian card-on-line file

Inside directory "‹your path›/dienst/htdocs/" you can find the following files:

English

Italian

  Help on searching   help-search.html   help-search-it.html
  Help on submitting   submission.html   submission-it.html
  Help about bibliographic fields   help.html   help-it.html
  Librarian card-on-line   librarian.html   librarian-it.html

  1. make a copy of each English file listed in the above table

  2. rename the copy to "‹your path›/dienst/htdocs/FileName-CountryCode.html"

  3. translate English sentences in your own language

  4. ATTENTION: Do not translate HTML tags and links

  5. customize e-mail addresses and other links

  6. if you have decided not to keep the Italian UI, delete each Italian file listed in the table above.


Edit language files

  1. Change directory to "‹your path›/dienst/AUI/language".

  2. you will find text files shown in the picture below

  3. make a copy of each English file (the name of an English file ends with "-en.txt")

  4. rename the copy to "‹your path›/dienst/language/FileName-CountryCode.txt"

  5. translate English sentences in your own language

  6. ATTENTION:
  7. if you have decided not to keep the Italian UI, delete each Italian file (the name of an Italian file ends with "-it.txt")


Picture 2. Files inside the "language" directory.


Comments and errata corrige are welcome! Please email them to etrdl@iei.pi.cnr.it