My website contains numerous images with text, such as buttons and navigation elements.
To facilitate localization, I use 2 CSS files. One file contains language-neutral properties like font and color, while the other file includes language-specific properties. Depending on the user's chosen language, only one language-specific file is served.
The language-specific file (/content/en/Site.css, /content/de/Site.css, etc.) contains information about background images.
div.topHeader p#searchHeader
{
background: url(/images/de/headers/search_lo.gif) no-repeat scroll center center;
}
While this system works effectively, it results in duplicate code. For example, the CSS for English would be:
div.topHeader p#searchHeader
{
background: url(/images/en/headers/search_lo.gif) no-repeat scroll center center;
}
Since I will have multiple languages, I am interested in optimizing this process. Is there a more efficient way to achieve the same result?