Mercurial > dive4elements > river
diff artifacts/src/main/java/org/dive4elements/river/artifacts/StaticWKmsArtifact.java @ 7686:7484132b2fbb
issue1577: Add W-Wrapping of wst-names in WKmsFactory if kind is one
of a kind.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Thu, 12 Dec 2013 07:57:13 +0100 |
parents | 25d890e3eb69 |
children | 8d5ca5175038 |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/StaticWKmsArtifact.java Wed Dec 11 17:13:26 2013 +0100 +++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/StaticWKmsArtifact.java Thu Dec 12 07:57:13 2013 +0100 @@ -134,10 +134,14 @@ String wkmsName; if (col >= 0) { - wkmsName = WKmsFactory.getWKmsName(col, wst); + // The W-Wrapping could be done in here (like in + // StaticWQKmsArtifact), with benefit of i18nation, + // but slower execution (it wrappes based on kind + // which can be fetched in same sql query). + wkmsName = WKmsFactory.getWKmsNameWWrapped(col, wst); } else { - wkmsName = WKmsFactory.getWKmsName(wst); + wkmsName = WKmsFactory.getWKmsNameWWrapped(wst); } String name;