Author: gttersen
Date: 2007-05-14 17:32:00 +0200 (Mon, 14 May 2007)
New Revision: 5077
Modified:
branches/2.12/core-api/src/main/java/no/schibstedsok/searchportal/view/velocity/DateFormattingDirective.java
Log:
NewsAggregator cosmetic changes
Modified:
branches/2.12/core-api/src/main/java/no/schibstedsok/searchportal/view/velocity/DateFormattingDirective.java
===================================================================
---
branches/2.12/core-api/src/main/java/no/schibstedsok/searchportal/view/velocity/DateFormattingDirective.java
2007-05-14 15:12:30 UTC (rev 5076)
+++
branches/2.12/core-api/src/main/java/no/schibstedsok/searchportal/view/velocity/DateFormattingDirective.java
2007-05-14 15:32:00 UTC (rev 5077)
@@ -10,6 +10,7 @@
package no.schibstedsok.searchportal.view.velocity;
+import org.apache.commons.lang.StringUtils;
import org.apache.log4j.Logger;
import org.apache.velocity.context.InternalContextAdapter;
import org.apache.velocity.exception.MethodInvocationException;
@@ -34,9 +35,9 @@
* A velocity directive to format newsnavigator date.
* <p/>
* Newsdate comes from the fastnavigator in four forms:<br/>
- * 1. 10-2006 -> oktober 2006<br/>
+ * 1. 10-2006 -> Oktober 2006<br/>
* 2. 24-10-2006 -> 24. oktober 2006<br/>
- * 3. 2006-10 -> oktober 2006<br/>
+ * 3. 2006-10 -> Oktober 2006<br/>
* 4. 2006-10-24 -> 24. oktober 2006<br/>
* <p/>
* if 'newsdateOnly' navigator, we shuold check if the date is today or
yesterday
@@ -118,14 +119,14 @@
if (input.length() == 10) {
return formatFormTwo(input, "newsdateOnly".equals(navName));
} else {
- return formatFormOne(input);
+ return StringUtils.capitalize(formatFormOne(input));
}
} else {
// From three or four
if (input.length() == 10) {
return formatFormFour(input, "newsdateOnly".equals(navName));
} else {
- return formatFormThree(input);
+ return StringUtils.capitalize(formatFormThree(input));
}
}
}
_______________________________________________
Kernel-commits mailing list
[email protected]
http://sesat.no/mailman/listinfo/kernel-commits