root/gsdl/branches/2.80/bin/script/checkwritability.bat @ 14875

Revision 14875, 3.5 KB (checked in by anna, 12 years ago)

updated translations for file permissions.

Line 
1@echo off
2
3if "%GSDLHOME%" == "" goto EnvNotSet
4
5REM test if we have write permission on the greenstone install directory
6echo Checking if GSDLHOME is writable..
7echo This is a temporary file. It is safe to delete it. > "%GSDLHOME%\etc\testing.tmp"
8if not exist "%GSDLHOME%\etc\testing.tmp" goto CantWrite
9del "%GSDLHOME%\etc\testing.tmp"
10echo Writable
11goto TheEnd
12
13:CantWrite
14echo.
15echo.
16echo.
17echo -----------------------------------
18
19if "%GSDLLANG%" == "en" echo  WARNING: CANNOT WRITE TO GSDLHOME
20if "%GSDLLANG%" == "es" echo  ATENCIÓN: NO PUEDE ESCRIBIR EN EL DIRECTORIO RAÍZ DE GREENSTONE.
21if "%GSDLLANG%" == "fr" echo  AVERTISSEMENT: NE PEUT PAS ECRIRE DANS LE DOSSIER D'ACCUEIL DE GREENSTONE
22if "%GSDLLANG%" == "ru" echo  ВНИМАНИЕ: НЕВОЗМОЖНО ОСУЩЕСТВИТЬ ЗАПИСЬ В ДОМАКНЮЮ ПАПКУ GREENSTONE
23
24echo -----------------------------------
25If "%GSDLLANG%" == "en" echo Greenstone needs write permission for the Greenstone home folder, which is %GSDLHOME%
26if "%GSDLLANG%" == "en" echo , but right now it does not
27if "%GSDLLANG%" == "en" echo Please grant "Full Control" for this folder (and all subfolders) 
28if "%GSDLLANG%" == "en" echo to the current user (%username%) and try again.
29
30if "%GSDLLANG%" == "es" echo Greenstone necesita permiso de escritura en el directorio %GSDLHOME%,
31if "%GSDLLANG%" == "es" echo pero no lo tiene.
32if "%GSDLLANG%" == "es" echo Por favor, concédale “Control completo” al usuario actual (%username%),
33if "%GSDLLANG%" == "es" echo y vuelva a intentarlo.
34
35if "%GSDLLANG%" == "fr" echo Greenstone nécessite une autorisation d'écriture sur le dossier d'accueil de Greenstone, qui est le dossier %GSDLHOME%,
36if "%GSDLLANG%" == "fr" echo mais pour l'instant il n'est pas.
37if "%GSDLLANG%" == "fr" echo Autorisez « ContrÎle Total » sur ce dossier (et sur tous les sous-dossiers)
38if "%GSDLLANG%" == "fr" echo pour l'utilisateur courant (%username%) et re-essayez.
39
40if "%GSDLLANG%" == "ru" echo Greenstone требуется разрешеМОе Ма запОсь в ЎПЌашМюю папку %GSDLHOME%,
41if "%GSDLLANG%" == "ru" echo в ЎаММый ЌПЌеМт запОсь в ЎПЌашМюю папку запрещеМа.
42if "%GSDLLANG%" == "ru" echo ППжалуйста устаМПвОте ППлМый ЎПступ Ўля папкО (О всех Ð²Ð»ÐŸÐ¶ÐµÐœÐœÑ‹Ñ… Ð¿Ð°Ð¿ÐŸÐº)
43if "%GSDLLANG%" == "ru" echo Ўля текущегП пПльзПвателя (%username%) О пПпрПбуйте заМПвП.
44
45echo.
46
47if "%GSDLLANG%" == "en" echo (Alternatively, re-install Greenstone to a location where you have Full
48if "%GSDLLANG%" == "en" echo Control already, such as a your home folder or 'My Documents'.)
49
50if "%GSDLLANG%" == "es" echo (Alternativamente, reinstale Greenstone en una localización en la que tenga “Control completo”,
51if "%GSDLLANG%" == "es" echo como su directorio raíz o “Mis documentos”).
52
53if "%GSDLLANG%" == "fr" echo (Alternativement, re-installez Greenstone à l'emplacement où vous avez déjà « ContrÎle Total »,
54if "%GSDLLANG%" == "fr" echo comme votre dossier d'accueil ou  "Documents".)
55
56if "%GSDLLANG%" == "ru" echo (ЛОбП, переустаМПвОте Greenstone в ту папку, к кПтПрПй Вы уже ОЌеете пПлМый ЎПступ,
57if "%GSDLLANG%" == "ru" echo МапрОЌер в свПю ЎПЌашМюю папку ОлО в папку "МПО ЎПкуЌеМты".)
58
59echo.
60echo.
61echo.
62echo.
63goto TheEnd
64
65:EnvNotSet
66echo GSDLHOME not set
67
68:TheEnd
Note: See TracBrowser for help on using the browser.