;
; $VER: Install MultiView 4.5 (14.10.98)
;
; Installer script for MultiView.
;

(set #english-lang    1)
(set #polish-lang     2)
(set #german-lang     4)
(set #norsk-lang      8)
(set #russian-lang   16)
(set #dansk-lang     32)
(set #svenska-lang   64)
(set #italiano-lang 128)
(set #français-lang 256)


; Get current language (no need for lots of silly icons! ;). However, this
; won't properly work for all versions of the Installer. Some don't
; understand the language "default" in the tool types... :/

(if (= (exists "Env:Language") 1)
  ; GetEnv reports "String too long" if the variable doesn't exist! :/
  ; Dunno if this is fixed in V43... But we need to check anyway.
  (set @language (getenv "language"))
)


;**************************************************************************
;
; English strings
;

(set #default-lang #english-lang)

(set #builtin-lang      "(built in)")
(set #bad-kick          "You must have AmigaOS Release 2.04 or higher to use MultiView.")
(set #install-parts     "Please select the parts you wish to install")

(set #item-program      "MultiView")
(set #item-library      "FileID.library")
(set #item-guide        "MultiView.guide")
(set #item-locale       "Translations")
(set #item-prefs        "MultiViewPrefs")
(set #item-prefsguide   "MultiViewPrefs.guide")

(set #parts-header-help
  (cat
    "    Here you select the different parts of MultiView that you would like to "
    "install. After that, you select the details of the installation (such as "
    "where the different files should be installed). You may choose to install "
    "the following items:\n"
  )
)

(set #item-program-help
  (cat
    "    MultiView: This program is a relacement for C= MultiView and should be "
    "installed in SYS:Utilities/ directory.\n"
  )
)

(set #item-library-help
  (cat
    "    FileID.library: This library contains filetype recognizing functions.\n"
  )
)

(set #item-guide-help
  (cat
    "    MultiView.guide: The manual, in AmigaGuide® format. It contains "
    "some general information about MultiView.\n"
  )
)

(set #item-local-help
  (cat
    "    Translations: If you install a translation, then MultiView  "
    "and FileID.library can operate in the language(s) you select.\n"
  )
)

(set #item-prefs-help
  (cat
    "    MultiViewPrefs: This program is a configuration program for my MultiView"
    "and should be installed in SYS:Prefs/ directory.\n"
  )
)

(set #item-prefsguide-help
  (cat
    "    MultiViewPrefs.guide: The manual, in AmigaGuide® format. It contains "
    "some general information about MultiView Preferences.\n"
  )
)

(set #parts-footer-help
  (cat
    "    For more information about these items, please see the manual.\n"
  )
)

; Only for expert users
(set #where-program "Where would you like to install Main program?")
(set #where-program-help
  (cat
    "    MultiView: This program is a replacement for old Multiview written "
    "by Commodore programmers. You should install it in SYS:Utilities.\n"
  )
)
(set #where-library "Where would you like to install FileID.library?")

(set #where-library-help
  (cat
    "    FileID.library is a shared library. As such, MultiView"
    "(and applications using it) expects this file to be "
    "avilable via the \"Libs:\"-assign, so please install this "
    "file into the \"Libs:\" drawer, or make sure that the "
    "drawer you install it in will be a part of your "
    "\"Libs:\"-assign.\n"
  )
)

(set #where-guide "Where would you like to install documentations?")

(set #where-guide-help
  (cat
    "    Documentations are files in the standard AmigaGuide® format. "
    "As MultiView currently makes specific use of this file, you can install "
    "it whereever you find convenient. If you have OS 3.0 or higher, "
    "one such place is \"Help:\", as this is where other AmigaGuide® "
    "files often are installed.\n"
  )
)

; Only for expert users, and an icon wasn't found
(set #copy-guide-icon "Do you want to install the icon for documentation?")

(set #copy-guide-icon-help
  (cat
    "    Since you stated that you are an expert user, and there currently "
    "is no icon for documentation where you selected to install it, "
    "you get a chance to decide if the icon should be installed as well.\n"
  )
)

(set #where-prefs "Where would you like to install prefs program?")
(set #where-prefs-help
  (cat
    "    MultiViewPrefs: This program is a configuration program for my MultiView"
    "and should be installed in SYS:Prefs/ directory.\n"
  )
)

(set #which-language "Which languages should be installed?")

(set #which-language-help
  (cat
    "    The Amiga can be operated in many different languages. If you "
    "want MultiView to use the same language as your Amiga Workbench, "
    "then a couple of catalog files must be copied to your harddisk "
    "for each language supported.\n"
    "    To reduce the amount of space consumed by the language files, "
    "you can select to have only the files of specific languages "
    "copied.\n"
    "    Simply check the boxes of the languages you wish to have have "
    "available on your system.\n"
  )
)

(set #copy "Copying %s to %s...")

;**************************************************************************
;
; Polish strings
;

(if (= @language "polski")
  (
    (set #default-lang #polski-lang)

    (set #builtin-lang    "(wbudowany)")
    (set #bad-kick        "Musisz mieê system w wersji przynajmniej 2.04.")
    (set #install-parts   "Wybierz czëôci, które chcesz zainstalowaê")
    (set #item-program    "MultiView")
    (set #item-library    "FileID.library")
    (set #item-guide      "MultiView.guide")
    (set #item-prefs      "MultiViewPrefs")
    (set #item-prefsguide "MultiViewPrefs.guide")
    (set #item-locale     "Tîumaczenia")

    (set #parts-header-help
      (cat
        "    Tu moûesz wybraê poszczególne czëôci pakietu do zainstalowania. Potem "
        "wybierzesz gdzie chcesz je zainstalowaê. Do wyboru masz :\n"
      )
    )

    (set #item-program-help
      (cat
        "    MultiView: Ten program jest zamiennikiem dla starego MultiView-a napisanego "
        "jeszcze przez ludzi z Commodore. Powinieneô zainstalowaê go w katalogu SYS:Utilities.\n"
      )
    )

    (set #item-library-help
      (cat
        "    FileID.library: Ta biblioteka zawiera funkcje do rozpoznawania plików.\n"
      )
    )

    (set #item-guide-help
      (cat
        "    MultiView.guide: Dokumentacja w formacie AmigaGuide®.\n"
      )
    )

    (set #item-prefs-help
      (cat
        "    MultiViewPrefs: To jest program konfiguracyjny dla mojego MultiView-a "
        "Powinieneô zainstalowaê go w katalogu SYS:Prefs/.\n"
      )
    )

    (set #item-prefsguide-help
      (cat
        "    MultiViewPrefs.guide: Dokumentacja w formacie AmigaGuide®.\n"
      )
    )

    (set #item-local-help
      (cat
        "    Tîumaczenia: Jeôli chcesz by MultiView i FileID.library mogîy "
        "byê z polskimi komunikatami musisz zainstalowaê odpowiednie katalogi.\n\n"
      )
    )

    (set #parts-footer-help
      (cat
        "    Dodatkowe informacje znajdziesz w dokumentacji.\n\n"
      )
    )

    ; Only for expert users
    (set #where-program "Gdzie chcesz zainstalowaê gîówny program?")
    (set #where-program-help
      (cat
        "    MultiView: Ten program jest zamiennikiem dla starego MultiView-a napisanego "
        "jeszcze przez ludzi z Commodore. Powinieneô zainstalowaê go w katalogu SYS:Utilities.\n"
      )
    )

    (set #where-library "Gdzie chcesz zainstalowaê FileID.library?")
    (set #where-library-help
      (cat
        "    FileID.library jest zwykîâ bibliotekâ. MultiView "
        "i inne programy spodziewajâ sië, ûe znajdâ jâ w Libs:, tak wiëc "
        "musisz jâ zainstalowaê do katalogu bëdâcego czëôciâ twej kolekcji bibliotek.\n"
      )
    )

    (set #where-guide "Gdzie chcesz zainstalowaê dokumentacjë?")
    (set #where-guide-help
      (cat
        "    Dokumentacja jest w plikach w standardzie AmigaGuide®. "
        "Proponowanym miejscem jest HELP:\n"
      )
    )

    (set #where-prefs "Gdzie chcesz zainstalowaê program konfiguracyjny?")
    (set #where-prefs-help
      (cat
        "    MultiViewPrefs: To jest program konfiguracyjny dla mojego MultiView-a "
        "Powinieneô zainstalowaê go w katalogu SYS:Prefs/.\n"
      )
    )

    (set #copy-guide-icon "Czy chcesz zainstalowaê ikonë dla MultiView.guide?")
    (set #which-language "Które jëzyki powinny byê zainstalowane ?")
    (set #copy "Kopiujë %s do %s...")
  )
)

;**************************************************************************
;
; Hello, do you speak German?
; Translation by Sönke Tesch [ATO]

(if (= @language "deutsch")
  (
    (set #default-lang #german-lang)
    (set #builtin-lang "(eingebaut)")
    (set #bad-kick "Du mußt AmigaOS 2.04 oder höher haben, um MultiView benutzen zu können!")
    (set #install-parts "Bitte wähle die Teile, die du installieren möchtest.")
    (set #item-program "MultiView")
    (set #item-library "FileID.library")
    (set #item-guide "MultiView.guide")
    (set #item-locale "Übersetzungen")
    (set #item-prefs        "MultiViewPrefs")
    (set #item-prefsguide   "MultiViewPrefs.guide")

    (set #parts-header-help
      (cat
        "    Hier kannst du auswählen, welche Teile von MultiView installiert "
        "werden sollen. Danach werden die Details festgelegt (z.B. wo genau "
        "alles installiert werden soll).\n"
        "Es können folgende Teile installiert werden:\n"
      )
    )

    (set #item-program-help
      (cat
        "    MultiView: Dies ist das Ersatzprogramm für C=`s MultiView. Es "
        "sollte in das Verzeichniss SYS:Utilities/ kopiert werden.\n"
      )
    )

    (set #item-library-help
      (cat
        "    FileID.library: Mit Hilfe dieser Funktionsbibliothek werden "
        "Dateitypen identifiziert.\n"
      )
    )

    (set #item-guide-help
      (cat
        "    MultiView.guide: Die Anleitung, im AmigaGuide® Format. Sie "
        "enhält einige generelle Informationen über MultiView.\n"
      )
    )

    (set #item-local-help
      (cat
        "    Übersetzungen: Wenn eine oder mehrere Übersetzungen installiert "
        "werden, können MultiView und die FileID.library in den entsprechenden "
        "Sprachen arbeiten.\n"
      )
    )


    (set #item-prefs-help
      (cat
        "    MultiViewPrefs: Dies ist das Einstellungsprogramm für mein MultiView"
        "und sollte nach SYS:Prefs/ installiert werden.\n"
      )
    )

    (set #item-prefsguide-help
      (cat
        "    MultiViewPrefs.guide: Die Anleitung, im AmigaGuide® Format. Sie enthält "
        "einige generelle Informationen über MultiView Preferences.\n"
      )
    )

    (set #parts-footer-help
      (cat
        "    Für weitere Infos schaue bitte in die Anleitung.\n"
      )
    )

; Only for expert users
    (set #where-program "Wo soll das Hauptprogramm installiert werden?")
    (set #where-program-help
      (cat
        "    MultiView: Dies ist ein Ersatz des alten Multiview von Commodore."
        "Es sollte in SYS:Utilities installiert werden.\n"
      )
    )

    (set #where-library "Wo soll die FileID.library installiert werden?")

    (set #where-library-help
      (cat
        "    FileID.library ist eine Shared Library. Der vorgesehene Platz "
        "für solche Libraries ist ein Verzeichnis, auf das das LIBS:-Assign "
        "zeigt.\n"
        "Bitte installiere diese Datei also direkt in LIBS: oder, falls du ein "
        "anderes wählst, stelle sicher, daß es über das LIBS:-Assign erreichbar "
        "ist.\n"
      )
    )

    (set #where-guide "Wo soll die Anleitung installiert werden?")

    (set #where-guide-help
      (cat
        "    Die Anleitung MultiView.guide ist eine Datei im AmigaGuide® Format, "
        "von der MultiView intensiven Gebrauch macht.\n"
        "Wenn du AmigaOS 3.0 oder besseres hast, lege die Datei am besten in "
        "\"Help:\", da das der Platz ist, an den AmigaGuide®-Dateien normalerweise "
        "kopiert werden."
      )
    )

; Only for expert users, and an icon wasn't found
    (set #copy-guide-icon "Soll ein Icon für die Anleitung installiert werden?")

    (set #copy-guide-icon-help
      (cat
        "    Da du Experte bist, und an dem Platz, wo die Anleitung installiert "
        "werden soll, kein Icon für sie ist, bekommst du jetzt die Chance zu "
        "entscheiden, ob auch ein Icon installiert werden soll.\n"
      )
    )

    (set #where-prefs "Wo soll das Einstellungsprogramm installiert werden?")
    (set #where-prefs-help
      (cat
        "    MultiViewPrefs: Dies ist das Einstellungsprogramm für mein MultiView "
        "und sollte in SYS:Prefs/ installiert werden.\n"
      )
    )

    (set #which-language "Welche Sprachen sollen installiert werden?")

    (set #which-language-help
      (cat
        "    Der Amiga kann von Haus aus in vielen Sprachen mit dir `sprechen`. "
        "Wenn MultiView dieselbe Sprachen benutzen soll, wie deine Workbench, "
        "müssen einige Kataloge auf die Festplatte kopiert werden\n".
        "Um etwas Platz zu sparen, kannst du hier auswählen, welche Sprachen "
        "(und damit welche Kataloge), kopiert werden sollen, indem du einfach "
        "die entsprechenden Kästchen abhakst\n".
      )
    )

    (set #copy "Kopiere %s nach %s...")
  )
)

;**************************************************************************
;
; Norwegian strings
;

(if (= @language "norsk")
  (
    (set #default-lang #norsk-lang)
    (set #builtin-lang "(innebygget)")
    (set #bad-kick "Du må ha AmigaOS 2.04 eller høyere for å bruke MultiView.")
    (set #install-parts "Vennligst velg de delene du vil installere")
    (set #item-program "MultiView")
    (set #item-library "FileID.library")
    (set #item-guide "MultiView.guide")
    (set #item-locale "Oversettelser")
    (set #parts-header-help
      (cat
        "    Her velger du de delene av MultiView programmet du vil installere."
        "Etter det så velger du detaljene for installasjonen (som f.eks. hvor "
        "de forskjellige filene skal installeres). Du kan velge å installere de"
        "de følgende gjenstandende:\n"
      )
    )
    (set #item-program-help
      (cat
        "    MultiView: Dette er en erstatning for C= MultiView og bør "
        "installeres i katalogen 'SYS:Utilities/'.\n"
      )
    )

    (set #item-library-help
      (cat
        "    FileID.library: Dette biblioteket kjenner igjen forskellige "
        "filtyper.\n"
      )
    )

    (set #item-guide-help
      (cat
        "    MultiView.guide: Instruksjons-boken, i AmigaGuide® format. Den "
        "inneholder generell informasjon om MultiView.\n"
      )
    )

    (set #item-local-help
      (cat
        "    Translations: Hvis du innstallerer en oversettelse så kan MultiView  "
        "og FileID.library kjøres på det språket du har valgt.\n"
      )
    )

    (set #parts-footer-help
      (cat
        "    For mer informasjon om disse tingene, se i instruksjons-filen.\n"
      )
    )

; Only for expert users
    (set #where-program "Hvor vil du installere MultiView?")
    (set #where-program-help
      (cat
        "    MultiView: dette er hovedprogrammet og er en forbedring av Commodore MultiView. "
        "Det bør installeres i 'SYS:Utilities/' mappen.\n"
      )
    )

    (set #where-library "Hvor vil du installere FileID.library?")
    (set #where-library-help
      (cat
        "    FileID.library er et delt bibliotek som brukes av MultiView (og andre programmer)."
        "Programmene forventer at det ligger i 'Libs:' så vær sikker på at du installerer "
        "det der, eller at stedet hvor du installerer det er en del av 'Libs:' anvisningen.\n"
      )
    )

    (set #where-guide "Hvor vil du installere MultiView.guide?")
    (set #where-guide-help
      (cat
        "    MultiView.guide er instruksjonene i standard AmigaGuide® format "
        "som kan installeres hvor du vil. Hvis du har OS 3.0 eller høyere, kan "
        "du installere den i 'HELP:' der slike filer ofte er.\n"
      )
    )

    (set #copy-guide-icon "Vil du installere et ikon til MultiView.guide?")
    (set #copy-guide-icon-help
      (cat
        "    Siden du er en ekspert-bruker og det ikke er noe ikon "
        "til MultiView.guide der du har valgt å installere den, "
        "får du nå anledning til å installere et ikon hvis du vil.\n"
      )
    )

    (set #which-language "Hvilke språk skal installeres ?")
    (set #which-language-help
      (cat
        "    Amiga kan kjøre programmer på mange forskjellige språk, "
        "MultiView kan også kjøres i det språket du bruker Workbench i.\n"
        "Det du må gjøre er å velge et språk fra listen over støttede "
        "språk.\n"
        "    For å redusere plassen disse filene opptar kan du velge "
        "å kun installere noen av disse språkfilene.\n"
        "    Marker ganske enkelt boksene foran de språkene du vil "
        "ha tilgjengelig på ditt system.\n"
      )
    )

    (set #copy "Kopierer %s til %s...")
  )
)
;**************************************************************************
;
; Russian strings
;
; NOTE: If it will be need to use in script the name for russian language
;       then use everywhere only "Russian" or "russian" and no else.
;       (There isn't native writing for one!)
;

(if (= @language "russian")
  (
    (set #default-lang #russian-lang)
    (set #builtin-lang "(áðñïíäììúè)")
    (set #bad-kick "Ãêþ çðîíêûæíáaìçþ MultiView ìäíàôíãçëí çëäñû áäïðçý AëçâaÍÐ 2.04 çêç áúøä.")
    (set #install-parts "Òéaåçñä íàÿäéñú çìðñaêêþõçç")
    (set #item-program "MultiView")
    (set #item-library "FileID.library")
    (set #item-guide "MultiView.guide")
    (set #item-locale "Îäïäáíãú")

    (set #parts-header-help
      (cat
        "    Òéaåçñä öaðñç îaéäña MultiView, éíñíïúä Áú ôíñçñä îïíçìðñaêêçïíáañû. Îíðêä "
        "üñíâí ò Áað àòãòñ òñíöìäìú ãäñaêç çìðñaêêþõçç (ìaîïçëäï, ëaïøïòñú ïaæëäùäìçþ "
        "ïaæêçöìúô óaèêíá îaéäña). Áú ëíåäñä áúàïañû ðêäãòýùçä öaðñç îaéäña:\n"
      )
    )

    (set #item-program-help
      (cat
        "    MultiView: Üña îïíâïaëëa þáêþäñðþ æaëäìíè íïçâçìaêûìíè C= MultiView, éíñíïaþ, "
        "éaé îïaáçêí, ïaæëäùäìa á éañaêíâä SYS:Utilities/\n"
      )
    )

    (set #item-library-help
      (cat
        "    FileID.library: Üña àçàêçíñäéa ðíãäïåçñ óòìéõçç ïaðîíæìaáaìçþ óaèêñçîíá.\n"
      )
    )

    (set #item-guide-help
      (cat
        "    MultiView.guide: Íîçðaìçä, á óíïëañä AmigaGuide®. Ðíãäïåçñ íðìíáìòý "
        "çìóíïëaõçý í MultiView.\n"
      )
    )

    (set #item-local-help
      (cat
        "    Îäïäáíãú: Îïç çìðñaêêþõçç îäïäáíãíá îïíâïaëëa MultiView ç FileID.library "
        "ðëíâòñ íîäïçïíáañû òéaæaììúëç þæúéaëç.\n"
      )
    )

    (set #parts-footer-help
      (cat
        "    Æa ãíîíêìçñäêûìíè çìóíïëaõçäè íàïaùaèñäðû é íîçðaìçý.\n"
      )
    )

    ; Only for expert users
    (set #where-program "Éòãa çìðñaêêçïíáañû îïíâïaëëò?")
    (set #where-program-help
      (cat
        "    MultiView - îïíâïaëëa, îïçæáaììaþ æaëäìçñû íãìíçë½ììòý îïíâïaëëò óçïëú "
        "Commodore. Ïäéíëäìãòäñðþ ïaæëäðñçñû á éañaêíâä SYS:Utilities.\n"
      )
    )

    (set #where-library "Éòãa çìðñaêêçïíáañû FileID.library?")

    (set #where-library-help
      (cat
        "    FileID.library þáêþäñðþ ïaæãäêþäëíè àçàêçíñäéíè. MultiView, éaé ç ãïòâçä îïíâïaëëú, "
        "ä½ çðîíêûæòýùçä, éaé îïaáçêí, íåçãaäñ ìaêçöçþ üñíè àçàêçíñäéç á ìaæìaöäììíë éañaêíâä "
        "\"Libs:\", îíüñíëò çìðñaêêçïòèñä üñíñ óaèê á éañaêíâ \"Libs:\", çêç òàäãçñäðû, öñí éañaêíâ, "
        "á éíñíïíë Áú ïaæëäðñçñä àçàêçíñäéò, þáêþäñðþ aððçâìíáaììúë é òéaæaììíëò éañaêíâò.\n"
      )
    )

    (set #where-guide "Éòãa çìðñaêêçïíáañû MultiView.guide?")

    (set #where-guide-help
      (cat
        "    MultiView.guide - ðñaìãaïñìúè óaèê óíïëaña AmigaGuide®. MultiView çðîíêûæòäñ "
        "üñíñ óaèê á íîïäãäê½ììúô ðêòöaþô, îíüñíëò ïaæëäðñçñä üñíñ óaèê îí òãíàðñáò. Äðêç "
        "Áú çëääñä ÍÐ 3.0 çêç áúøä, ñí üñí éañaêíâ\"Help:\", á éíñíïíë, éaé îïaáçêí "
        "ïaðîíêíåäìú ç ãïòâçä óaèêú óíïëaña AmigaGuide®.\n"
      )
    )

    ; Only for expert users, and an icon wasn't found
    (set #copy-guide-icon "Çìðñaêêçïíáañû çéíìéò é MultiView.guide?")

    (set #copy-guide-icon-help
      (cat
        "    Áú òðñaìíáçêç òïíáäìû çìðñaêêþõçç \"Üéðîäïñ\" ç ëíåäñä îïíçìðñaêêçïíáañû çéíìéò "
        "ãêþ óaèêa MultiView.guide, éíñíïaþ á íàúöìíè ðçñòaõçç ìä çìðñaêêçïòäñðþ.\n"
      )
    )

    (set #which-language "Éaéçä þæúéç íàùäìçþ îïíçìðñaêêçïíáañû?")

    (set #which-language-help
      (cat
        "    Aëçâa ëíåäñ íîäïçïíáañû ëìíåäðñáíë ïaæêçöìúô þæúéíá. Äðêç Áú ôíñçñä, öñíàú "
        "MultiView çðîíêûæíáaê ñä åä þæúéç, öñí ç Áaø Workbench, ñí ðííñáäñðñáòýùçä éañaêíâç "
        "ãêþ éaåãíâí þæúéa íàùäìçþ ãíêåìú àúñû îíëäùäìú ìa å½ðñéçè ãçðé.\n"
        "    Ãêþ üéíìíëçç ãçðéíáíâí îïíðñaìðñáa, æaìçëaäëíâí þæúéíáúëç óaèêaëç, Áú ëíåäñä "
        "òéaæañû ñíêûéí ïäaêûìí ìäíàôíãçëúä ãêþ éíîçïíáaìçþ óaèêú.\n"
        "    Îïíðñí îïíðñaáûñä âaêíöéç ò ñäô þæúéíá, éíñíïúä ìäíàôíãçëú Áaë ãêþ íàùäìçþ á "
        "Áaøäè ðçðñäëä.\n"
      )
    )

    (set #copy "Éíîçïòý %s á %s...")
  )
)
;**************************************************************************
;
; Danish strings
;

(if (= @language "dansk")
  (
    (set #default-lang #dansk-lang)
    (set #builtin-lang "(indbygget)")
    (set #bad-kick "Du skal have AmigaOS 2.04 eller nyere for at bruge MultiView.")
    (set #install-parts "Vælg venligst de dele du ønsker installeret")
    (set #item-program "MultiView")
    (set #item-library "FileID.library")
    (set #item-guide "MultiView.guide")
    (set #item-locale "Oversættelser")

    (set #parts-header-help
      (cat
        "Her vælger du de forskellige dele af MultiView som du ønsker at "
        "installere. Derefter vælger du detaljerne i installeringen (såsom "
        "hvor de forskellige filer skal installeres). Du kan vælge at "
        "installere følgende dele:\n"
      )
    )

    (set #item-program-help
      (cat
        "MultiView: Dette program er en erstatning for C='s MultiView, "
        "og bør installeres i kataloget SYS:Utilities/\n"
      )
    )

    (set #item-library-help
      (cat
        "FileID.library: Dette bibliotek indeholder "
        "filtype-genkendelsesfunktioner.\n"
      )
    )

    (set #item-guide-help
      (cat
        "MultiView.guide: Brugervejledning, i AmigaGuide®-format. "
        "Den indeholder generel information om MultiView.\n"
      )
    )

    (set #item-local-help
      (cat
        "Oversættelser: Hvis du installerer en oversættelse, vil "
        "MultiView og FileID.library kunn køre med de(t) sprog du vælger.\n"
      )
    )

    (set #parts-footer-help
      (cat
        "For mere information om disse punkter, se venligst brugervejledningen.\n"
      )
    )

; Only for expert users
    (set #where-library "Hvor ønsker du at installere FileID.library?")

    (set #where-library-help
      (cat
        "FileID.library er et funktionsbibliotek. Som sådan forventer "
        "MultiView (og programmerne som bruger det) at denne fil ligger "
        "i \"Libs:\"-stien, så installér denne fil i \"Libs:\"-kataloget "
        "eller vær sikker på at det katalog du installerer det i, er en "
        "del af \"Libs:\"-tildelingen.\n"
      )
    )

    (set #where-guide "Hvor ønsker du at installere MultiView.guide?")

    (set #where-guide-help
      (cat
        "MultiView.guide er en fil i det normale AmigaGuide®-format. "
        "Da MultiView gør specifik brug af denne fil, kan du installere "
        "den hvor du ønsker. Hvis du har OS3.0 eller nyere, er et sådant "
        "sted \"Help:\", da dette er hvor andre AmigaGuide®-filer ofte "
        "ligger.\n"
      )
    )

; Only for expert users, and an icon wasn't found
    (set #copy-guide-icon "Ønsker du at installere ikonet til MultiView.guide?")

    (set #copy-guide-icon-help
      (cat
        "Siden du angav at du var en ekspertbruger, og der lige nu ikke "
        "findes et ikon til MultiView.guide hvor du valgte at installere "
        "det, har du nu chancen for at angive om ikonet også skal "
        "installeres.\n"
      )
    )

    (set #which-language "Hvilke sprog ønsker du at installere?")

    (set #which-language-help
      (cat
        "Amigaen kan køre i mange forskellige sprog. Hvis du ønsker at "
        "MultiView skal bruge det samme sprog som din Workbench, så skal "
        "en sprogfil kopieres til din harddisk for hvert understøttet "
        "sprog.\n"
        "  For at reducere pladsen som optages af sprogfilerne, kan du "
        "vælge kun at kopiere bestemte sprogfiler.\n"
        "  Du skal bare sætte et hak i boksene til de sprog du ønsker "
        "tilgængelige på dit system.\n"
      )
    )

    (set #copy "Kopierer %s til %s...")
  )
)
;**************************************************************************
;
; Swedish strings
;

(if (= @language "svenska")
  (
    (set #default-lang #svenska-lang)
    (set #builtin-lang "(inbyggt)")
    (set #bad-kick "Du måste ha AmigaOS version 2.04 eller högre för att använda MultiView.")
    (set #install-parts "Välj de delar du önskar installera")
    (set #item-program "MultiView")
    (set #item-library "FileID.library")
    (set #item-guide "MultiView.guide")
    (set #item-locale "Översättningar")

    (set #parts-header-help
      (cat
        "    Här väljer du de delar av MultiView som du vill installera. Sedan ställer "
        "du in installationsdetaljerna (t ex var de olika filerna skall installeras). "
        "Du kan välja att installera följande delar av programmet:\n"
      )
    )

    (set #item-program-help
      (cat
        "    MultiView: Detta program är en ersättning för Commodores MultiView och "
        "bör installeras i lådan SYS:Utilities/.\n"
      )
    )

    (set #item-library-help
      (cat
        "    FileID.library: Detta bibliotek innehåller funktioner för igenkänning av "
        "olika filtyper.\n"
      )
    )

    (set #item-guide-help
      (cat
        "    MultiView.guide: Manualen i AmigaGuide®-format. Den innehåller "
        "en del generell information om MultiView.\n"
      )
    )

    (set #item-local-help
      (cat
        "    Översättningar: Om du installerar en översättning kan MultiView "
        "och FileID.library sedan använda de(t) språk du valt.\n"
      )
    )

    (set #parts-footer-help
      (cat
        "    För mer information om dessa delar av programmet, konsultera manualen.\n"
      )
    )

; Only for expert users
    (set #where-library "Var vill du installera FileID.library?")

    (set #where-library-help
      (cat
        "    FileID.library är ett s k \"delat bibliotek\". Som sådant "
        "förväntar sig MultiView (och program som använder det) att "
        "detta bibliotek skall vara tillgängligt via \"Libs:\"-tilldelningen; "
        "du bör därför se till att det installeras i \"Libs:\"-lådan "
        "eller att lådan du installerar det i är en del av din "
        "\"Libs:\"-tilldelning.\n"
      )
    )

    (set #where-guide "Var vill du installera MultiView.guide?")

    (set #where-guide-help
      (cat
        "    MultiView.guide är en fil som följer det standardiserade AmigaGuide®-formatet. "
        "Eftersom MultiView för närvarande utnyttjar denna specifika fil, kan du "
        "installera den någonstans där det passar dig. Om du har OS 3.0 eller högre, "
        "är \"Help:\" lämpligt eftersom det är där andra AmigaGuide®-filer ofta "
        "installeras.\n"
      )
    )

; Only for expert users, and an icon wasn't found
    (set #copy-guide-icon "Vill du installera ikonen för MultiView.guide?")

    (set #copy-guide-icon-help
      (cat
        "    Eftersom du angett att du är en expertanvändare och eftersom det för tillfället "
        "inte finns någon ikon för MultiView.guide där du valt att installera filen, "
        "får du en chans att välja om ikonen också skall installeras.\n"
      )
    )

    (set #which-language "Vilka språk skall installeras?")

    (set #which-language-help
      (cat
        "    Amigan kan användas med flera olika språk.  Om du vill att MultiView "
        "skall använda samma språk som din Amiga Workbench behöver några "
        "katalogfiler kopieras till din hårddisk för varje språk som stöds.\n"
        "    För att spara på utrymmet som språkfilerna tar upp kan du "
        "välja att endast vissa språkfiler kopieras.\n"
        "    Bocka helt enkelt för de språk du vill kunna använda på ditt system.\n"
      )
    )

    (set #copy "Kopierar %s till %s...")
  )
)
;**************************************************************************
;
; Italian strings
;

(if (= @language "italiano")
  (
    (set #default-lang #italiano-lang)
    (set #builtin-lang "(built-in)")
    (set #bad-kick "Devi avere la versione 2.04 o superiore di AmigaOS per usare MultiView.")
    (set #install-parts "Per favore scegli le parti che desideri installare")
    (set #item-program "MultiView")
    (set #item-library "FileID.library")
    (set #item-guide "MultiView.guide")
    (set #item-locale "Traduzioni")

    (set #parts-header-help
      (cat
        "   Qui scegli le differenti sezioni di MultiView che gradiresti fossero installate. "
        "Dopo di ciò, seleziona il tipo di installazione (come ad esempio "
        "dove dovrebbero essere installati i vari file). Puoi scegliere di installare "
        "le seguenti voci:\n"
      )
    )

    (set #item-program-help
      (cat
        "   MultiView: Questo programma è un sostituto del C= MultiView e dovrebbe essere "
        "installato nel cassetto SYS:Utilities/.\n"
      )
    )

    (set #item-library-help
      (cat
        "   FileID.library: Questa libreria possiede la funzione di riconoscimento del tipo file.\n"
      )
    )

    (set #item-guide-help
      (cat
        "   MultiView.guide: Il manuale, in formato AmigaGuide®. Contiene "
        "delle informazioni generali su MultiView.\n"
      )
    )

    (set #item-local-help
      (cat
        "   Traduzioni: Se installi una traduzione, allora MultiView  "
        "e la FileID.library possono funzionare nelle lingue da te selezionate.\n"
      )
    )

    (set #parts-footer-help
      (cat
        "   Per ulteriori informazioni su queste voci, per favore fai riferimento al manuale.\n"
      )
    )

    ; Only for expert users
    (set #where-library "Dove vuoi installare la FileID.library?")

    (set #where-library-help
      (cat
        "   FileID.library è una libreria condivisa. Così come, MultiView "
        "(e le applicazioni che la usano) questo file attende che sia "
        "disponibile attraverso la \"Libs:\"-assign, così per favore installa questo "
        "file nel cassetto \"Libs:\", o assicurati che il cassetto "
        "dove lo installi sia parte del tuo \"Libs:\"-assign.\n"
      )
    )

    (set #where-guide "Dove vuoi installare la MultiView.guide?")

    (set #where-guide-help
      (cat
        "   MultiView.guide è un file nel formato standard AmigaGuide®. "
        "Dato che MultiView correntemente fa un uso specifico di questo file, puoi installarlo "
        "dove lo trovi più comodo. Se hai l'OS 3.0 o superiore, "
        "il luogo può essere \"Help:\", dato che questo ed altri file AmigaGuide® "
        "sono spesso lì installati.\n"
      )
    )

    ; Only for expert users, and an icon wasn't found
    (set #copy-guide-icon "Vuoi installare l'icona per la MultiView.guide?")

    (set #copy-guide-icon-help
      (cat
        "   Dato che hai detto che sei un utente esperto, ed al momento non "
        "vi è nessuna icona per la MultiView.guide da selezionare per installarla, "
        "puoi avere la possibilità di decidere il tipo di icona che dovrebbe "
        "essere installata.\n"
      )
    )

    (set #which-language "Quali lingue vuoi siano installate?")

    (set #which-language-help
      (cat
        "   L'Amiga può essere utilizzato con diverse lingue. Se vuoi che "
        "MultiView usi la stessa lingua del tuo Workbench, allora alcuni "
        "cataloghi devono essere copiati nel tuo harddisk  per ogni lingua "
        "supportata.\n"
        "   Per diminuire l'ammontare dello spazio occupato dai "
        "cataloghi, puoi scegliere di avere solamente i file di una determinata "
        "lingua.\n"
        "   Cioè contrassegna solo per la lingua che desideri avere "
        "disponibile nel tuo sistema.\n"
      )
    )

    (set #copy "Sto copiando %s in %s...")
  )
)

;**************************************************************************
; Salut,t'es vraiment sure de savoir parler français?!
; Traduit par CMwa
;

(if (= @language "français")
  (
    (set #default-lang #français-lang)
    (set #builtin-lang "(interne)")
    (set #bad-kick "Vous devez avoir au moins la version 2.04 d'AmigaOS pour utiliser MultiView.")
    (set #install-parts "Veuillez sélectionner les parties à installer")
    (set #item-program "MultiView")
    (set #item-library "FileID.library")
    (set #item-guide "MultiView.guide")
    (set #item-locale "Traduction")

    (set #parts-header-help
      (cat
        "   Ici,vous sélectionnez les différentes parties de MultiView que vous désirez installer. "
        "Après ça, vous sélectionnez le type d'installation (par exemple, "
        "où les différends fichiers doivent être installés). vous pouvez choisir d'installer "
        "les fichiers suivants:\n"
      )
    )

    (set #item-program-help
      (cat
        "   MultiView: Ce programme remplace le MultiView C=. Il doit être "
        "installé dans le tiroir SYS:Utilities/.\n"
      )
    )

    (set #item-library-help
      (cat
        "   FileID.library: Cette librairie contient la fonction de reconnaissance du type de fichier.\n"
      )
    )

    (set #item-guide-help
      (cat
        "   MultiView.guide: Le manuel, au format AmigaGuide®. Il contient "
        "des information générales sur MultiView.\n"
      )
    )

    (set #item-local-help
      (cat
        "   Traduction: Si la traduction est installée, alors MultiView  "
        "et la FileID.library fonctionneront avec le langage sélectinnée.\n"
      )
    )

    (set #parts-footer-help
      (cat
        "   Pour plus d'information sur ces items, veuillez vous référer au manuel.\n"
      )
    )

    ; Only for expert users
; Only for expert users
(set #where-program "Où voulez-vous installer le programme principal?")
(set #where-program-help
  (cat
    "    MultiView: Ce programme  remplace le vieux Multiview écrit "
    "par les programmeurs de Commodore. Vous devez l'installer dans SYS:Utilities.\n"
  )
)

    (set #where-library "Où voulez-vous installer la FileID.library?")

    (set #where-library-help
      (cat
        "   FileID.library est une librairie partagée. Ainsi, MultiView "
        "(et les applications qui l'utilise) cherche ce fichier vers "
        " \"Libs:\"-assign, veuillez donc installer ce "
        "fichier dans \"Libs:\", ou assurez-vous que le tiroir "
        "où vous l'instalez fait partie de votre \"Libs:\"-assign.\n"
      )
    )

    (set #where-guide "Où voulez-vous installer MultiView.guide?")

    (set #where-guide-help
      (cat
        "   MultiView.guide est un fichier au format standard AmigaGuide®. "
        "Actuellement, MultiView fait un usage spécifique de ce fichier, vous pouvez l'installer "
        "où vous le trouvez le plus commode. Si vous avez au moins l'OS 3.0, "
        "le tiroir \"Help:\" est le plus logique puisque les autres fichiers AmigaGuide® "
        "y sont installés.\n"
      )
    )

    ; Only for expert users, and an icon wasn't found
    (set #copy-guide-icon "Voulez-vous installer l'icône pour MultiView.guide?")

    (set #copy-guide-icon-help
      (cat
        "   Dato che hai detto che sei un utente esperto, ed al momento non "
        "vi è nessuna icona per la MultiView.guide da selezionare per installarla, "
        "puoi avere la possibilità di decidere il tipo di icona che dovrebbe "
        "essere installata.\n"
      )
    )

    (set #which-language "Quels langue voulez-vous installer?")

    (set #which-language-help
      (cat
        "   L'Amiga peut être utilisé avec divers langage. Si vous voulez que "
        "MultiView utilise la même langue que votre Workbench, alors un "
        "catalogue doit être copié sur votre disque dur  pour que votre langue "
        "soit supportée.\n"
        "   Pour diminuer la quantité d'espace occupé par "
        "le catalogue, vous pouvez n'avoir que le fichier concernant "
        "votre langue.\n"
        "   Sélectionnez simplement la langue "
        "utilisé sur votre système.\n"
      )
    )

    (set #copy "Copie de %s vers %s...")
  )
)


;**************************************************************************
; The actual installation script
;**************************************************************************

;**************************************************************************
; First some initializations
;**************************************************************************


; Check Kickstart version. Exit if not at least 2.04
(if (< (/ (getversion) 65536) 37)
        (abort #bad-kick)
)

; Since files are scatter installed, don't mention any specific location.
(set @default-dest "")

; Request proportinal fonts, if supported. This string is
; prepended to the first askoptions choice.
(if (>= @installer-version 2752518)     ; 42 * 65536 + 6
  ; At least version 42.6
  (set #propfont "[2p")
  ; Pre V42
  (set #propfont "")
)

(set #item-num-prog        1)
(set #item-num-lib         2)
(set #item-num-prefs       4)
(set #item-num-guide       8)
(set #item-num-locale     16)

; Find out default values for parts to install
(set #install-default (BITOR #item-num-prog #item-num-lib #item-num-guide #item-num-prefs))

; Locale installed?
(if (AND (= 2 (exists "Locale:" (noreq))) (< 0 (getversion "locale.library" (resident))))
  (set #install-default (BITOR #install-default #item-num-locale))
)

; Everything ready

(welcome)

; Ask the user what to install
(set #install-files
  (askoptions
    (prompt #install-parts)
    (help #parts-header-help
      #item-program-help
      #item-library-help
      #item-prefs-help
      #item-guide-help
      #item-local-help
      #parts-footer-help "\n"
      @askoptions-help)
    (choices
      (cat #propfont
      #item-program)
      #item-library
      #item-prefs
      #item-guide
      #item-locale
    )
    (default #install-default)
  )
)

;**************************************************************************
; Ask the user for the location of all parts
;**************************************************************************

(set #program-dest  "SYS:Utilities")

; Location for MultiView program (for experts)

(if (AND (= @user-level 2) (BITAND #install-files #item-num-prog))
  (set #program-dest
    (askdir
      (prompt  #where-program)
      (help    #where-program-help "\n" @askdir-help)
      (default #program-dest)
    )
  )
)

(set #library-dest  "Libs:")

; Location for FileID.library (for experts)

(if (AND (= @user-level 2) (BITAND #install-files #item-num-lib))
  (set #library-dest
    (askdir
      (prompt  #where-library)
      (help    #where-library-help "\n" @askdir-help)
      (default #library-dest)
    )
  )
)

(set #prefs-dest  "SYS:Prefs")

; Location for MultiView prefs (for experts)

(if (AND (= @user-level 2) (BITAND #install-files #item-num-prefs))
  (set #prefs-dest
    (askdir
      (prompt  #where-prefs)
      (help    #where-prefs-help "\n" @askdir-help)
      (default #prefs-dest)
    )
  )
)

; Location for documentation

(if (BITAND #install-files #item-num-guide)
  (
    (set #guide-dest "Work:")

    (if (exists "Help:")
      (set #guide-dest "Help:")
    )

    (set #guide-dest
      (askdir
        (prompt  #where-guide)
        (help    #where-guide-help "\n" @askdir-help)
        (default #guide-dest)
      )
    )

    (set #dest-guide-name (tackon #guide-dest "Multiview.guide.info"))

    (set #guide-icon
      (if (AND (= @user-level 2 ) (= (exists #dest-guide-name) 0))
        (askbool
          (prompt #copy-guide-icon)
          (help #copy-guide-icon-help " ")
        )
        0 ; Default is to not copy the icon
      )
    )
  )
)

; .ct
; Which languages should be installed?

(if (BITAND #install-files #item-num-locale)
  (set #lang
    (askoptions
      (prompt #which-language)
      (help #which-language-help "\n" @askoptions-help)
      (choices
        (cat #propfont          "English  " #builtin-lang)
                                "Polski"
                                "Deutsch"
                                "Norsk"
                                "Russian"
                                "Dansk"
                                "Svenska"
                                "Italiano"
                                "Français"
                                "Czech"
                                "Croatian"
                                "Portugese-brazil"
                                ""
      )
        (default 0)
    )
  )
)

; **********************************************************************
; Everything set up. Now do the actual installation
; **********************************************************************

(complete 0)

(if (BITAND #install-files #item-num-prog)
  (
    (copyfiles
      (prompt (#copy "MultiView" #program-dest))
      (source "MultiView")
      (dest #program-dest)
    )
    (copyfiles
      (prompt (#copy "MultiView" #program-dest))
      (source "MultiView.info")
      (dest #program-dest)
    )
  )
)

(complete 20)

(if (BITAND #install-files #item-num-lib)
  (
    (copylib
      (confirm average)
      (help "\n")
      (prompt (#copy "FileID.library" #library-dest))
      (source "libs/FileID.library")
      (dest #library-dest)
    )
  )
)

(complete 40)

(if (BITAND #install-files #item-num-prefs)
  (
    (copyfiles
      (prompt (#copy "MultiViewPrefs" #prefs-dest))
      (source "Prefs/")
      (all)
      (optional nofail)
      (dest #prefs-dest)
    )
;    (copyfiles
;      (prompt (#copy "MultiView.info" #prefs-dest))
;      (source "Prefs/MultiView.info")
;      (dest #prefs-dest)
;    )
  )
)

(complete 60)

;this part dont work because Workbench say"this icon haven't tool".where is the matter??

(if (BITAND #install-files #item-num-guide)
  (
    (set #guide-source
        (tackon (tackon "Docs/" @language) "MultiView.guide")
    )
    (copyfiles
      (prompt (#copy "MultiView.guide" #guide-dest))
      (source #guide-source)
      (dest   #guide-dest)
    )
    (set #guide-source
       (tackon (tackon "Docs/" @language) "MultiViewPrefs.guide")
    )
      (copyfiles
      (prompt (#copy "MultiViewPrefs.guide" #guide-dest))
      (source #guide-source)
      (dest   #guide-dest)
    )

    (if #guide-icon
      (
        (copyfiles
          (prompt (#copy "MultiView.guide.info" #guide-dest))
          (source (tackon (tackon "Docs/" @language) "MultiView.guide.info"))
          (dest   #guide-dest)
        )
        (copyfiles
          (prompt (#copy "MultiViewPrefs.guide.info" #guide-dest))
          (source (tackon (tackon "Docs/" @language) "MultiViewPrefs.guide.info"))
          (dest   #guide-dest)
        )
      )
    )
  )
)

(complete 80)

; .ct
(if (BITAND #install-files #item-num-locale)
  (
    (set #n 0)

    (while
      (set #language
        (select #n
          "Deutsch"
          "English"
          "Polski"
          "Norsk"
          "Russian"
          "Dansk"
          "Svenska"
          "Italiano"
          "Czech"
          "Croatian"
          "Portugese-brazil"
          "Français"
          ""
        )
      )

      (
        (if (AND (IN #lang #n) (<> #language "English"))
          (
            (set #catalog
              (tackon "Catalogs"
                (tackon #language "MultiView.catalog")
              )
            )

            (set #destination (tackon "Locale:Catalogs/" #language))

            (if (exists #catalog)
              (copylib
                (prompt (#copy #catalog #destination))
                (source #catalog)
                (dest   #destination)
              )
            )

            (set #catalog
              (tackon "Catalogs"
                (tackon #language "FileID_lib.catalog")
              )
            )

            (if (exists #catalog)
              (copylib
                (prompt (#copy #catalog #destination))
                (source #catalog)
                (dest   #destination)
              )
            )

          )
        )

        (set #n (+ #n 1))
      )
    )
  )
)

(complete 100)

(exit)
