You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (JIRA)" <ji...@codehaus.org> on 2015/01/31 22:21:20 UTC

[jira] (MSITE-248) Internationalization: Do not duplicate css files and image resources.

     [ https://jira.codehaus.org/browse/MSITE-248?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Osipov closed MSITE-248.
--------------------------------

    Resolution: Won't Fix

No reaction upon request.

> Internationalization: Do not duplicate css files and image resources. 
> ----------------------------------------------------------------------
>
>                 Key: MSITE-248
>                 URL: https://jira.codehaus.org/browse/MSITE-248
>             Project: Maven Site Plugin
>          Issue Type: Improvement
>          Components: internationalization
>    Affects Versions: 2.0-beta-5
>            Reporter: Alexander Hars
>
> Currently, Maven copies the skin's css files and image resources into each locale directory. This leads to redundancy and has serious drawbacks when the developer adds their own .css files (which most developers will do). If the .css files are not packaged into a skin, then the developer has to copy each change to the .css file into teach locale. (And we should not expect a developer to create skin for a single project.). 
> Redundant resources also additional drawbacks. For example, if the localized files are distributed as help files for a Java application we unnecessarily increase the size of our distribution. 
> It would be much better to use a single location for all css files and image resource (Of course, this does not prevent the developer from adding localized css files or image resources, should they be needed). 
> The solution is simple: save the css files and resources only once below the root directory. Then use relative links that point from the localized pages to the root. 
> This can easily be done if the maven template could distinguish between the localized directory for the default locale and the other locales (would require another property to be passed to Velocity). It would even be simpler if the directory structure treated all locales as equals, as is best practice for internationalized applications. 



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)