Browse Source

Minor - fix lang loading

Julio 5 years ago
parent
commit
648b3bcc54
2 changed files with 42 additions and 42 deletions
  1. 4 5
      main/cron/import_csv.php
  2. 38 37
      main/lang/dutch/trad4all.inc.php

+ 4 - 5
main/cron/import_csv.php

@@ -1436,11 +1436,6 @@ class ImportCsv
 
                     $courseTitle = $courseInfo['title'].$sessionName;
 
-                    /*$subject = sprintf(
-                        get_lang('AgendaAvailableInCourseX'),
-                        $courseInfo['title']
-                    );*/
-
                     $sessionExtraFieldValue = new ExtraFieldValue('session');
                     $values = $sessionExtraFieldValue->get_values_by_handler_and_field_variable(
                         $event['session_id'],
@@ -3101,6 +3096,10 @@ foreach ($languageFilesToLoad as $languageFile) {
     include $languageFile;
 }
 
+$language = $import->defaultLanguage;
+global $language_interface;
+$language_interface = $language;
+
 $timeStart = microtime(true);
 $import->run();
 

+ 38 - 37
main/lang/dutch/trad4all.inc.php

@@ -21,8 +21,8 @@ $SkillsReport = "Vaardighedenrapport";
 $AssignedUsersListToStudentBoss = "Gebruiker toegewezen aan leidinggevende";
 $AssignUsersToBoss = "Gebruikers toewijzen aan leidinggevende";
 $RoleStudentBoss = "Leidinggevende van de student";
-$HelpCookieUsageValidation = "Om deze site te laten werken en het gebruik van content te kunnen meten, maakt dit platform gebruik van cookies.
-\nIndien nodig geeft de Help sectie van uw browser aan hoe cookies te configureren.
+$HelpCookieUsageValidation = "Om deze site te laten werken en het gebruik van content te kunnen meten, maakt dit platform gebruik van cookies.
+\nIndien nodig geeft de Help sectie van uw browser aan hoe cookies te configureren.
 \nVoor meer informatie over cookies kunt u de About Cookies website bezoeken.";
 $YouAcceptCookies = "Door deze site te blijven gebruiken, verklaart u zich akkoord met het gebruik van cookies door deze site.";
 $TemplateCertificateComment = "Een voorbeeld certificaat format";
@@ -228,17 +228,17 @@ $AreYouSureDeleteTestResultBeforeDateD = "Weet u zeker dat u de resultaten wilt
 $CleanStudentsResultsBeforeDate = "Verwijder alle resultaten voor de geselecteerde datum";
 $HGlossary = "Woordenlijst help";
 $GlossaryContent = "Deze tool stelt u in staat woordenlijst items te maken, die daarna vanuit de documententool kunnen worden gebruikt.";
-$ForumContent = " The forum is an discussion tool for asynchronous written work. In contrast to email, a forum is for public, or semi-public, group discussion.
-To use the Chamilo forum, members can simply use their browser - they do not require separate client software.
-
-To organize forums, clickon the Forums tool. Discussions are organized hierarchically according to the following structure: Category> Forum> Topic> Post To ensure members can participate in the forum tidily and effectively, it is essential in th first instance to create categories and forums; it's then up to the participants to create topics and posts. By default, the forum contains a single (public) category, an example topic and an example post. You can add forums to the category, change its title or create other categories within which you could then create new forums. (Don't confuse categories and forums, and remember that a category that contains no forum is useless and is not displayed.)
-
-\n
-
-The forum description might include a list of its members, a definition of its purpose, a target a task, a theme etc.
-
-Group forums should not be created via the Forum tool but instead via the Groups tool, where you can determinewhether your group forums should be private or public, at the same time providing a location for sharing groups of documents.
-Teaching Tips A learning forum is not quite the same as the forums you are used to seeing on the internet. For one thing, it is not possible for learners to alter their posts once they have been published as the course is logically archived to allow tracking of what has been said in the past. Furthermore, Chamilo forums allow for specific uses relevant to teaching. For example, some teachers/trainers publish corrections directly within forums in the following way:
+$ForumContent = " The forum is an discussion tool for asynchronous written work. In contrast to email, a forum is for public, or semi-public, group discussion.
+To use the Chamilo forum, members can simply use their browser - they do not require separate client software.
+
+To organize forums, clickon the Forums tool. Discussions are organized hierarchically according to the following structure: Category> Forum> Topic> Post To ensure members can participate in the forum tidily and effectively, it is essential in th first instance to create categories and forums; it's then up to the participants to create topics and posts. By default, the forum contains a single (public) category, an example topic and an example post. You can add forums to the category, change its title or create other categories within which you could then create new forums. (Don't confuse categories and forums, and remember that a category that contains no forum is useless and is not displayed.)
+
+\n
+
+The forum description might include a list of its members, a definition of its purpose, a target a task, a theme etc.
+
+Group forums should not be created via the Forum tool but instead via the Groups tool, where you can determinewhether your group forums should be private or public, at the same time providing a location for sharing groups of documents.
+Teaching Tips A learning forum is not quite the same as the forums you are used to seeing on the internet. For one thing, it is not possible for learners to alter their posts once they have been published as the course is logically archived to allow tracking of what has been said in the past. Furthermore, Chamilo forums allow for specific uses relevant to teaching. For example, some teachers/trainers publish corrections directly within forums in the following way:
 A learner is asked to post a report directly into the forum, The teacher corrects it by clicking Edit (yellow pencil) and marking it using the graphics editor (color, underlining, etc.) Finally, other learners benefit from viewing the corrections was made on the production of one of of them, Note that the same principle can be applied between learners, but will require his copying/pasting the message of his fellow student because students / trainees can not edit one another's posts. <. li>";
 $HForum = "Forum help";
 $LoginToGoToThisCourse = "Gelieve in te loggen om de cursus te bekijken";
@@ -300,7 +300,7 @@ $IfSessionExistsUpdate = "Als een sessie bestaat, update deze dan.";
 $CreatedByXYOnZ = "Gemaakt door %s op %s";
 $LoginWithExternalAccount = "Login zonder instituutaccount";
 $ImportAikenQuizExplanationExample = "This is the text for question 1 A. Answer 1 B. Answer 2 C. Answer 3 ANSWER: B This is the text for question 2 A. Answer 1 B. Answer 2 C. Answer 3 D. Answer 4 ANSWER: D ANSWER_EXPLANATION: this is an optional feedback comment that will appear next to the correct answer.";
-$ImportAikenQuizExplanation = "
+$ImportAikenQuizExplanation = "
 The Aiken format comes in a simple text (.txt) file, with several question blocks, each separated by a blank line. The first line is the question, the answer lines are prefixed by a letter and a dot, and the correct answer comes next with the ANSWER: prefix. See example below.";
 $ExerciseAikenErrorNoAnswerOptionGiven = "The imported file has at least one question without any answer (or the answers do not include the required prefix letter). Please make sure each question has at least one answer and that it is prefixed by a letter and a dot or a parenthesis, like this: A. answer one";
 $ExerciseAikenErrorNoCorrectAnswerDefined = "The imported file includes at least one question without any correct answer defined. Please make sure all questions include the ANSWER: [Letter] line.";
@@ -333,21 +333,21 @@ $NoIWantToTurnBack = "Nee, ik wil terugkeren";
 $IfYouContinueYourAnswerWillBeSavedAnyChangeWillBeNotAllowed = "Als u verder gaat, wordt uw antwoord opgeslagen. Aanpassing is dan niet meer mogelijk.";
 $SpecialCourses = "Speciale cursussen";
 $Roles = "Rollen";
-$ToolCurriculum = "
+$ToolCurriculum = "
 Curriculum";
-$ToReviewXYZ = "
+$ToReviewXYZ = "
 %s to review (%s)";
-$UnansweredXYZ = "
+$UnansweredXYZ = "
 %s onbeantwoord (%s)";
-$AnsweredXYZ = "
+$AnsweredXYZ = "
 %s beantwoord (%s)+(%s)";
-$UnansweredZ = "
+$UnansweredZ = "
 (%s) Onbeantwoord";
-$AnsweredZ = "
+$AnsweredZ = "
 (%s) Beantwoord";
-$CurrentQuestionZ = "
+$CurrentQuestionZ = "
 (%s) Huidige vraag";
-$ToReviewZ = "
+$ToReviewZ = "
 (%s) Te beoordelen";
 $ReturnToExerciseList = "Keer terug naar oefeningenlijst";
 $ExerciseAutoLaunch = "Auto-launch voor oefeningen";
@@ -390,15 +390,15 @@ $QuestionReused = "Aantal toegevoegde vragen in de oefening";
 $QuestionCopied = "Aantal naar de oefening gekopieerde vragen";
 $BreadcrumbNavigationDisplayComment = "Show or hide the breadcrumb navigation, the one appearing just below the main navigation tabs. It is highly recommended to have this navigation shown to users, as this allows them to locate their current position and navigate to previous pages easily. Sometimes, however, it might be necessary to hide it (for example in the case of exam platforms) to avoid users navigating to pages they should not see.";
 $BreadcrumbNavigationDisplayTitle = "Broodkruimelnavigatie";
-$AllowurlfopenIsSetToOff = "
+$AllowurlfopenIsSetToOff = "
 The PHP setting \"allow_url_fopen\" is set to off. This prevents the registration mechanism to work properly. This setting can be changed in you PHP configuration file (php.ini) or in the Apache Virtual Host configuration, using the php_admin_value directive";
 $ImpossibleToContactVersionServerPleaseTryAgain = "On mogelijk om de versieserver nu te contacteren. Probeer later nogmaals.";
 $VersionUpToDate = "Uw versie is up-to-date";
 $LatestVersionIs = "De meest recente versie";
 $YourVersionNotUpToDate = "Uw versie is niet up-to-date";
-$Hotpotatoes = "
+$Hotpotatoes = "
 Hotpotatoes";
-$ZeroMeansNoQuestionWillBeSelectedMinusOneMeansThatAllQuestionsWillBeSelected = "
+$ZeroMeansNoQuestionWillBeSelectedMinusOneMeansThatAllQuestionsWillBeSelected = "
 -1 = Alle vragen worden geselecteerd. 0 = Er worden geen vragen geselecteerd.";
 $EmailNotificationTemplateDescription = "You can customize the email sent to users when they finished the exercise. You can use tags like these: 1. {{ student.username }} 2. {{ student.firstname }} 3. {{ student.lastname }} 4. {{ student.official_code }} 5. {{ exercise.title }} 6. {{ exercise.start_time }} 7. {{ exercise.end_time }} 8. {{ course.title }} 9. {{ course.code }";
 $EmailNotificationTemplate = "E-mail notificatie sjabloon";
@@ -1512,7 +1512,7 @@ $EditNews = "Wijzig nieuws";
 $EditCategories = "Wijzig categorieën";
 $EditHomePage = "Wijzig startpagina";
 $AllowUserHeadingsComment = "Kan een cursusbeheerder extra velden definiëren om meer gegevens van de gebruikers van de cursus te verzamelen?";
-$MetaTwitterSiteTitle = "
+$MetaTwitterSiteTitle = "
 Twitter Site account";
 $Languages = "Talen";
 $NoticeTitle = "Titel";
@@ -5839,7 +5839,7 @@ $ThereAreUsersUsingThisLanguageYouWantToDisableThisLanguageAndSetUsersWithTheDef
 $dateFormatLongNoDay = "%d %B &Y";
 $dateFormatOnlyDayName = "%A";
 $ReturnToCourseList = "Ga terug naar de cursuslijst";
-$dateFormatShortNumberNoYear = "
+$dateFormatShortNumberNoYear = "
 %d/%m";
 $CourseTutor = "Cursus tutor";
 $StudentInSessionCourse = "Student in sessie cursus";
@@ -5849,7 +5849,7 @@ $SessionCourseCoach = "Sessie cursus coach";
 $Admin = "Admin";
 $SessionTutorsCanSeeExpiredSessionsResultsComment = "Kunnen sessie tutors de rapporten voor hun sessie zien nadat deze is verlopen?";
 $SessionTutorsCanSeeExpiredSessionsResultsTitle = "Sessie tutors rapporten zichtbaarheid";
-$UserNotAttendedSymbol = "
+$UserNotAttendedSymbol = "
 NP";
 $UserAttendedSymbol = "P";
 $SessionCalendar = "Sessie agenda";
@@ -6124,8 +6124,8 @@ $Pediaphon = "Gebruik Pediaphon audiodiensten";
 $HelpPediaphon = "Ondersteunt teksten van ettelijke duizenden karakters, in diverse mannelijke of vrouwelijke stemmen (afhankelijke van de taal). Audio bestanden zullen gegenereerd en automatisch opgeslagen worden in je huidige Chamilo map.";
 $FirstSelectALanguage = "Kies een taal";
 $MoveUserStats = "Verplaats resultaten van een gebruiker van/naar een sessie";
-$CompareUserResultsBetweenCoursesAndCoursesInASession = "Met deze geavanceerde tool wordt het mogelijk de resultaten van gebruikers beter te volgen als je van een cursusbenadering naar een sessiebenadering evolueert. In de meeste gevallen heb je deze tool niet nodig.
-Op dit scherm kun je de resultaten vergelijken tussen gebruikers van losse cursussen versus cursussen in de context van een sessie.
+$CompareUserResultsBetweenCoursesAndCoursesInASession = "Met deze geavanceerde tool wordt het mogelijk de resultaten van gebruikers beter te volgen als je van een cursusbenadering naar een sessiebenadering evolueert. In de meeste gevallen heb je deze tool niet nodig.
+Op dit scherm kun je de resultaten vergelijken tussen gebruikers van losse cursussen versus cursussen in de context van een sessie.
 Eens beslist, wordt het mogelijk om de vorderingsgegevens van studenten (resultaten van oefeningen en leerpad-opvolging) over te dragen van een cursus naar een sessie.";
 $PDFExportWatermarkEnableTitle = "Watermerk inschakelen voor PDF export";
 $PDFExportWatermarkEnableComment = "Als je deze optie inschakelt, kun je een afbeelding of tekst opladen die dan automatisch als watermerk op als je geëxporteerde PDF-documenten zal verschijnen.";
@@ -6221,7 +6221,7 @@ $CreateASocialGroup = "Sociale groep maken";
 $StatsUsersDidNotLoginInLastPeriods = "Al enige tijd niet ingelogd";
 $LastXMonths = "Laatste %i maanden";
 $NeverConnected = "Nooit verbonden";
-$EnableAccessibilityFontResizeTitle = "
+$EnableAccessibilityFontResizeTitle = "
 Font resize accessibility feature";
 $HotSpotDelineation = "Hotspot schets";
 $CorrectAndRate = "Corrigeer en beoordeel";
@@ -6310,7 +6310,7 @@ $AllNotDone = "Alles niet gereed";
 $IfYourLPsHaveAudioFilesIncludedYouShouldSelectThemFromTheDocuments = "Als je leerpaden audio bestanden bevatten, dan moet je ze selecteren vanuit documenten";
 $UplUploadFailedSizeIsZero = "Er was een probleem bij het uploaden van uw document: het ontvangen bestand had 0 bytes om de server. Kijk je lokale bestand na op corruptie of beschadiging, probeer dan opnieuw.";
 $YouMustChooseARelationType = "U moet een relatietype kiezen";
-$SelectARelationType = "
+$SelectARelationType = "
 Relation type selectie";
 $AddUserToURL = "Voeg gebruiker toe aan deze URL";
 $CourseBelongURL = "Cursus geregistreerd aan de URL";
@@ -6372,7 +6372,7 @@ $Responsable = "Verantwoordelijk";
 $TheAttendanceSheetIsLocked = "De presentielijst is gesloten";
 $Presence = "Aanwezigheid";
 $ACourseCategoryWithThisNameAlreadyExists = "Er bestaat al een cursuscategorie met dezelfde naam";
-$OpenIDRedirect = "
+$OpenIDRedirect = "
 OpenID redirect";
 $Blogs = "Blogs";
 $SelectACourse = "Selecteer een cursus";
@@ -6867,11 +6867,12 @@ $PasswordVeryWeak = "Heel zwak";
 $UserXHasBeenAssignedToBoss = "U bent toegewezen aan de student %s";
 $UserXHasBeenAssignedToBossWithUrlX = "U bent als tutor toegewezen aan student %s. U kunt zijn profiel bekijken van hier: %s";
 $AgendaAvailableInCourseX = "Voor module %s is jouw agenda beschikbaar.";
-$YouHaveBeenSubscribedToCourseXTheStartDateXAndCommentX = "<br />Je bent ingeschreven voor de module %s . Je kan de lesmomenten, lestijden en leslokalen in jouw agenda op de ELO terugvinden. <br />
-Indien je nog geen toegang hebt tot onze ELO, zal je bij de eerste les de nodige info ontvangen van jouw lesgever.<br /> <br />
-Het eerstvolgende moment dat voor deze module werd ingevuld is: <br />
+$YouHaveBeenSubscribedToCourseXTheStartDateXAndCommentX = "<br />Je bent ingeschreven voor de module %s . Je kan de lesmomenten, lestijden en leslokalen in jouw agenda op de ELO terugvinden. <br />
+Indien je nog geen toegang hebt tot onze ELO, zal je bij de eerste les de nodige info ontvangen van jouw lesgever.<br /> <br />
+Het eerstvolgende moment dat voor deze module werd ingevuld is: <br />
 %s <br /> %s";
-$WelcomeToPortalXInCourseSessionXCoursePartOfCareerX = "Welkom bij %s. Je bent ingeschreven voor de module %s 
+$WelcomeToPortalXInCourseSessionX = "Welkom bij %s: informatie over de module %s";
+$WelcomeToPortalXInCourseSessionXCoursePartOfCareerX = "Welkom bij %s. Je bent ingeschreven voor de module %s 
 Deze module maakt deel uit van de opleiding  %s";
 $YourNextModule = "Jouw eerstvolgende lesmoment voor deze module";
 $FirstLesson = "Eerste lesmoment";