MDL-12894 Fixing language string mess (language packs containing \n) & moved them to the controllers,

also fixed a few typos and a || instead of && bug.  This all relates to the CLI installer.
This commit is contained in:
mjollnir_ 2008-01-09 23:15:44 +00:00
parent b9f49659b6
commit e3cd54731c
5 changed files with 84 additions and 42 deletions

View file

@ -1,7 +1,7 @@
<?PHP // $Id$
// install.php - created with Moodle 1.7 beta + (2006101003)
$string['aborting'] = 'Aborting installation';
$string['admindirerror'] = 'The admin directory specified is incorrect';
$string['admindirname'] = 'Admin Directory';
$string['admindirsetting'] = 'A very few webhosts use /admin as a special URL for you to access a
@ -24,26 +24,26 @@ $string['adminlastname'] = 'Last Name :';
$string['adminpassword'] = 'Password :';
$string['adminusername'] = 'Username :';
$string['askcontinue'] = 'Continue (yes/no) :';
$string['availabledbtypes']='\nAvailable db types \n';
$string['availablelangs']='List of available languages \n';
$string['cannotconnecttodb'] = 'Cannot connect to db \n';
$string['availabledbtypes']='Available db types';
$string['availablelangs']='List of available languages';
$string['cannotconnecttodb'] = 'Cannot connect to db';
$string['caution'] = 'Caution';
$string['checkingphpsettings']='\n\nChecking PHP Settings\n\n';
$string['checkingphpsettings']='Checking PHP Settings';
$string['chooselanguage'] = 'Choose a language';
$string['chooselanguagehead'] = 'Choose a language';
$string['chooselanguagesub'] = 'Please choose a language for the installation ONLY. You will be able to choose site and user languages on a later screen.';
$string['compatibilitysettings'] = 'Checking your PHP settings ...';
$string['compatibilitysettingshead'] = 'Checking your PHP settings ...';
$string['compatibilitysettingssub'] = 'Your server should pass all these tests to make Moodle run properly';
$string['configfilecreated'] = 'Configuration file successfully created\n ';
$string['configfilecreated'] = 'Configuration file successfully created';
$string['configfiledoesnotexist'] = 'Configuration file does not exist !!!';
$string['configfilenotwritten'] = 'The installer script was not able to automatically create a config.php file containing your chosen settings, probably because the Moodle directory is not writeable. You can manually copy the following code into a file named config.php within the root directory of Moodle.';
$string['configfilewritten'] = 'config.php has been successfully created';
$string['configurationcomplete'] = 'Configuration completed';
$string['configurationcompletehead'] = 'Configuration completed';
$string['configurationcompletesub'] = 'Moodle made an attempt to save your configuration in a file in the root of your Moodle installation.';
$string['configurationfileexist']='Configuration file already exist!\n';
$string['creatingconfigfile'] =' Creating configuration file ...\n';
$string['configurationfileexist']='Configuration file already exist!';
$string['creatingconfigfile'] =' Creating configuration file ...';
$string['database'] = 'Database';
$string['databasecreationsettings'] = 'Now you need to configure the database settings where most Moodle data
will be stored. This database will be created automatically by the installer
@ -77,7 +77,7 @@ $string['databasesettings'] = 'Now you need to configure the database where most
<b>User:</b> your database username<br />
<b>Password:</b> your database password<br />
<b>Tables Prefix:</b> optional prefix to use for all table names';
$string['databasesettingsformoodle']='\n\nDatabase settings for Moodle\n\n';
$string['databasesettingsformoodle']='Database settings for Moodle';
$string['databasesettingshead'] = 'Now you need to configure the database where most Moodle data
will be stored. This database must already have been created
and a username and password created to access it.';
@ -186,13 +186,13 @@ $string['download'] = 'Download';
$string['downloadlanguagebutton'] = 'Download the &quot;$a&quot; language pack';
$string['downloadlanguagehead'] = 'Download language pack';
$string['downloadlanguagenotneeded'] = 'You may continue the installation process using the default language pack, \"$a\".';
$string['downloadlanguagepack']='\n\nDo you want to download language pack now(yes/no) :';
$string['downloadlanguagepack']='Do you want to download language pack now(yes/no) :';
$string['downloadlanguagesub'] = 'You now have the option of downloading a language pack and continuing the installation process in this language.<br /><br />If you are unable to download the language pack, the installation process will continue in English. (Once the installation process is complete, you will have the opportunity to download and install additional language packs.)';
$string['downloadsuccess'] = 'Language Pack Downloaded Successfuly';
$string['doyouagree'] = 'Do you agree ? (yes/no):';
$string['environmenthead'] = 'Checking your environment ...';
$string['environmentsub'] = 'We are checking if the various components of your system meet the system requirements';
$string['errorsinenvironment'] ='Errors in the environment !\n';
$string['errorsinenvironment'] ='Errors in the environment!';
$string['fail'] = 'Fail';
$string['fileuploads'] = 'File Uploads';
$string['fileuploadserror'] = 'This should be on';
@ -231,24 +231,24 @@ $string['inputdatadirectory']='Data Directory :';
$string['inputwebadress']='Web address :';
$string['inputwebdirectory']='Moodle Directory :';
$string['installation'] = 'Installation';
$string['installationiscomplete'] = 'Installtion is completed !\n';
$string['installationiscomplete'] = 'Installation is completed!';
$string['invalidargumenthelp']='
Error: Invalid argument(s)
Usage: \$php cliupgrade.php OPTIONS
Use --help option to get more help\n';
Use --help option to get more help';
$string['invalidemail'] = 'Invalid Email';
$string['invalidhost'] = 'Invalid Host ';
$string['invalidint']='Error: value is not an integer \n';
$string['invalidintrange'] = 'Error: Value is outside valid range\n';
$string['invalidint']='Error: value is not an integer';
$string['invalidintrange'] = 'Error: Value is outside valid range';
$string['invalidpath'] = 'Invalid Path ';
$string['invalidsetelement']= 'Error: Value given is not in the given options \n';
$string['invalidsetelement']= 'Error: Value given is not in the given options';
$string['invalidtextvalue'] = 'Invalid Text Value';
$string['invalidurl'] = 'Invalid URL ';
$string['invalidvalueforlanguage']='Invalid value for --lang option. Type --help for more help\n';
$string['invalidyesno'] = 'Error: value is not a valid yes/no argument \n';
$string['invalidvalueforlanguage']='Invalid value for --lang option. Type --help for more help';
$string['invalidyesno'] = 'Error: value is not a valid yes/no argument';
$string['langdownloaderror'] = 'Unfortunately the language \"$a\" was not installed. The installation process will continue in English.';
$string['langdownloadok'] = 'The language \"$a\" was installed successfully. The installation process will continue in this language.';
$string['locationanddirectories']= '\n\nLocation and directories \n\n';
$string['locationanddirectories']= 'Location and directories';
$string['magicquotesruntime'] = 'Magic Quotes Run Time';
$string['magicquotesruntimeerror'] = 'This should be off';
$string['magicquotesruntimehelp'] = '<p>Magic quotes runtime should be turned off for Moodle to function properly.</p>
@ -310,7 +310,7 @@ $string['safemodehelp'] = '<p>Moodle may have a variety of problems with safe mo
to just find a new web hosting company for your Moodle site.</p>
<p>You can try continuing the install if you like, but expect a few problems later on.</p>';
$string['selectlanguage']='\n\nSelecting a language for installation\n';
$string['selectlanguage']='Selecting a language for installation';
$string['sessionautostart'] = 'Session Auto Start';
$string['sessionautostarterror'] = 'This should be off';
$string['sessionautostarthelp'] = '<p>Moodle requires session support and will not function without it.</p>
@ -323,12 +323,11 @@ $string['siteshortname'] = 'Site short name :';
$string['sitesummary'] ='Site summary :';
$string['skipdbencodingtest'] = 'Skip DB Encoding Test';
$string['tableprefix']='Table prefix :';
$string['unsafedirname'] = 'Error: Unsafe characters in directory name. valid characters are a-zA-Z0-9_-\n';
$string['upgradingactivitymodule']= 'Upgrading Activity Module';
$string['upgradingbackupdb'] = 'Upgrading Backup Database';
$string['upgradingblocksdb'] = 'Upgrading Blocks Database';
$string['upgradingblocksplugin'] = 'Upgrading Blocks Plugin';
$string['upgradingcompleted'] = 'Upgrading completed...\n';
$string['upgradingcompleted'] = 'Upgrading completed...';
$string['upgradingcourseformatplugin'] = 'Upgrading Course Format Pluggin';
$string['upgradingenrolplugin'] = 'Upgrading Enrol Plugin';
$string['upgradinggradeexportplugin'] = 'Upgrading Grade Export Plugin';
@ -340,7 +339,8 @@ $string['upgradingqtypeplugin'] = 'Upgrading Question/type Plugin';
$string['upgradingrpcfunctions'] = 'Upgrading RPC Functions';
$string['usagehelp']='
Synopsis:
\$php cliupgrade.php OPTIONS\n
\$php cliupgrade.php OPTIONS
OPTIONS
--lang Valid installed language for installation. Default is English(en)
--webaddr Web address for the Moodle site
@ -364,9 +364,10 @@ OPTIONS
--adminusername Username for the admin. Default is admin
--adminpassword Password for the admin. Default is admin
--adminemail Email address of admin. Default is root@localhost
--help print out this help\n
--help print out this help
Usage:
\$php cliupgrade.php --lang=en --webaddr=http://www.example.com --moodledir=/var/www/html/moodle --datadir=/var/moodledata --dbtype=mysql --dbhost=localhost --dbname=moodle --dbuser=root --prefix=mdl --agreelicense=yes --confirmrelease=yes --sitefullname=\"Example Moodle Site\" --siteshortname=moodle --sitesummary=siteforme --adminfirstname=Admin --adminlastname=User --adminusername=admin --adminpassword=admin --adminemail=admin@example.com --verbose=1 --interactivelevel=2 \n';
\$php cliupgrade.php --lang=en --webaddr=http://www.example.com --moodledir=/var/www/html/moodle --datadir=/var/moodledata --dbtype=mysql --dbhost=localhost --dbname=moodle --dbuser=root --prefix=mdl --agreelicense=yes --confirmrelease=yes --sitefullname=\"Example Moodle Site\" --siteshortname=moodle --sitesummary=siteforme --adminfirstname=Admin --adminlastname=User --adminusername=admin --adminpassword=admin --adminemail=admin@example.com --verbose=1 --interactivelevel=2';
$string['versionerror'] = 'User aborted due to version Error ';
$string['welcomep10'] = '$a->installername ($a->installerversion)';
$string['welcomep20'] = 'You are seeing this page because you have successfully installed and
@ -382,10 +383,10 @@ $string['welcomep60'] = 'The following pages will lead you through some easy to
configure and set up <strong>Moodle</strong> on your computer. You may accept the default
settings or, optionally, amend them to suit your own needs.';
$string['welcomep70'] = 'Click the \"Next\" button below to continue with the set up of <strong>Moodle</strong>.';
$string['welcometext']='\n\n---Welcome to moodle commandline installer---\n\n';
$string['welcometext']='---Welcome to moodle commandline installer---';
$string['writetoconfigfilefaild'] = 'Error: Write to config file failed ';
$string['wwwroot'] = 'Web address';
$string['wwwrooterror'] = 'The \'Web Address\' does not appear to be valid - this Moodle installation doesn\'t appear to be there. The value below has been reset.';
$string['yourchoice']='\nYour choice :';
$string['yourchoice']='Your choice :';
?>