From ac17113217e9599aeecf7193f9c51c093a163ba1 Mon Sep 17 00:00:00 2001
From: gloas <gloas@debianAfiAnnecy>
Date: Wed, 22 Jan 2014 18:38:56 +0100
Subject: [PATCH] Calendar mode list_month: change month name

---
 .../View/Helper/Calendar/MonthList.php        | 24 +++++++++----------
 .../View/Helper/Accueil/CalendarTest.php      |  8 +++----
 2 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/library/ZendAfi/View/Helper/Calendar/MonthList.php b/library/ZendAfi/View/Helper/Calendar/MonthList.php
index 6eae66d7714..2ecacebdb3a 100644
--- a/library/ZendAfi/View/Helper/Calendar/MonthList.php
+++ b/library/ZendAfi/View/Helper/Calendar/MonthList.php
@@ -32,18 +32,18 @@ class ZendAfi_View_Helper_Calendar_MonthList extends Zend_View_Helper_HtmlElemen
 		$current_year = date('Y', $this->getTimeSource()->time());
 		$current_month = date('m', $this->getTimeSource()->time());
 
-		$this->_libelle_months = ['01' => $this->_('JAN'),
-															'02' => $this->_('FEV'),
-															'03' => $this->_('MARS'),
-															'04' => $this->_('AVRIL'),
-															'05' => $this->_('MAI'),
-															'06' => $this->_('JUIN'),
-															'07' => $this->_('JUILLET'),
-															'08' => $this->_('AOÛT'),
-															'09' => $this->_('SEPT'),
-															'10' => $this->_('OCT'),
-															'11' => $this->_('NOV'),
-															'12' => $this->_('DÉC')];
+		$this->_libelle_months = ['01' => $this->_('Jan'),
+															'02' => $this->_('Fév'),
+															'03' => $this->_('Mars'),
+															'04' => $this->_('Avril'),
+															'05' => $this->_('Mai'),
+															'06' => $this->_('Juin'),
+															'07' => $this->_('Juillet'),
+															'08' => $this->_('Août'),
+															'09' => $this->_('Sept'),
+															'10' => $this->_('Oct'),
+															'11' => $this->_('Nov'),
+															'12' => $this->_('Déc')];
 
 		$htmls = [];
 		foreach($this->_libelle_months as $index => $libelle) {
diff --git a/tests/library/ZendAfi/View/Helper/Accueil/CalendarTest.php b/tests/library/ZendAfi/View/Helper/Accueil/CalendarTest.php
index ffe02089d32..e59dbbac28e 100644
--- a/tests/library/ZendAfi/View/Helper/Accueil/CalendarTest.php
+++ b/tests/library/ZendAfi/View/Helper/Accueil/CalendarTest.php
@@ -276,7 +276,7 @@ class CalendarViewTodayWithFriseChronoTest extends CalendarViewTodayTestCase {
 	public function linkJANShouldBePresentForNextYearAtPositionSixth() {
 		$this->assertXPathContentContains($this->html,
 																			'//div[@class="month_list"]/a[6][contains(@href, "cms/calendar/date/2014-01/id_profil/2/id_module/2")]',
-																			'JAN');
+																			'Jan');
 	}
 
 
@@ -284,7 +284,7 @@ class CalendarViewTodayWithFriseChronoTest extends CalendarViewTodayTestCase {
 	public function linkFEVShouldBePresentForNextYear() {
 		$this->assertXPathContentContains($this->html,
 																			'//a[contains(@href, "cms/calendar/date/2014-02")][not(contains(@class,"current"))]',
-																			'FEV');
+																			'F');
 	}
 
 
@@ -292,14 +292,14 @@ class CalendarViewTodayWithFriseChronoTest extends CalendarViewTodayTestCase {
 	public function linkAOUTShouldBePresentForCurrentYearAndSelected() {
 		$this->assertXPathContentContains($this->html,
 																			'//a[contains(@href, "cms/calendar/date/2013-08")][contains(@class,"selected")]',
-																			utf8_encode('AOÛT'));
+																			utf8_encode('Août'));
 	}
 
 	/** @test */
 	public function linkNOVShouldBePresentForCurrentYear() {
 		$this->assertXPathContentContains($this->html,
 																			'//a[contains(@href, "cms/calendar/date/2013-11")]',
-																			utf8_encode('NOV'));
+																			utf8_encode('Nov'));
 	}
 
 	/** @test */
-- 
GitLab