[Yanel-commits] rev 40356 -
public/yanel/trunk/src/core/java/org/wyona/yanel/core/attributes/translatable
michi at wyona.com
michi at wyona.com
Tue Dec 9 11:07:05 CET 2008
Author: michi
Date: 2008-12-09 11:07:05 +0100 (Tue, 09 Dec 2008)
New Revision: 40356
Modified:
public/yanel/trunk/src/core/java/org/wyona/yanel/core/attributes/translatable/SuffixTranslationManager.java
Log:
obsolete Category and else removed
Modified: public/yanel/trunk/src/core/java/org/wyona/yanel/core/attributes/translatable/SuffixTranslationManager.java
===================================================================
--- public/yanel/trunk/src/core/java/org/wyona/yanel/core/attributes/translatable/SuffixTranslationManager.java 2008-12-09 09:54:50 UTC (rev 40355)
+++ public/yanel/trunk/src/core/java/org/wyona/yanel/core/attributes/translatable/SuffixTranslationManager.java 2008-12-09 10:07:05 UTC (rev 40356)
@@ -16,16 +16,12 @@
package org.wyona.yanel.core.attributes.translatable;
-import org.apache.log4j.Category;
-
/**
* This translation manager works with a path format where the language
* is a suffix: /foo/bar_en.html
*/
public class SuffixTranslationManager extends AbstractPathTranslationManager {
- private static Category log = Category.getInstance(SuffixTranslationManager.class);
-
/**
* Empty constructor. Don't forget to call the init() method.
*/
@@ -50,9 +46,8 @@
}
if (suffix != null && suffix.length() == 2) {
return suffix;
- } else {
- return null;
}
+ return null;
}
/**
@@ -77,9 +72,8 @@
}
if (basePath != null && basePath.length() > 0) {
return basePath + "_" + language + "." + extension;
- } else {
- return null;
}
+ return null;
}
}
More information about the Yanel-commits
mailing list