Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4619396
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T02:25:08+00:00 2026-05-22T02:25:08+00:00

I am currently working on localizing my application which is based on the .net

  • 0

I am currently working on localizing my application which is based on the .net framework v3.5, which uses the jquery client side library.

I successfully localized most of my application, on screen text via resource files, client side text via a resource javascript file and html mark up images via .net c# code.

When localizing my images, the simple change is to update the path to image to include the cultures folder eg. For english – en, spanish – es etc. So a sample image path would be

/image/folder1/en/image.gif

/image/folder2/es/image.gif

I have achieved this in my .net code and all works fine.

However I have run in to an issue. Some of my images are background images set in css. Unfortunately this raises an issue as I am unable to localize something like this:

h1 {background-image:url("../../Images/folder1/<<culture>>/image1.gif");background-repeat:no-repeat;

So I am looking for suggestion as how I could resolve this. Could I pass a javascript variable value to the css file? I could create a httphandler and update my css prior to rendering but would prefer to go with this for last resort as I don’t want every css file being processed through iis.

Any tips would be great.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T02:25:08+00:00Added an answer on May 22, 2026 at 2:25 am

    Another possibility is to set lang attribute for the body (or HTML element of your interest), so that rendered HTML page will show something like this:

    <body lang="es">
      <h1>...</h1>
    

    Then you can use CSS lang pseudo-selector to localize the content:

    h1:lang(es) {background-image:url("../../Images/folder1/es/image1.gif");}
    h1:lang(en) {background-image:url("../../Images/folder1/en/image1.gif");}
    

    This is standard (as in W3C recommended) way of localizing CSS files.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The system I am currently working on requires some role-based security, which is well
I'm currently working on an internal sales application for the company I work for,
I'm currently working on an application with a frontend written in Adobe Flex 3.
I am currently working on localizing a Form. However I am somewhat confused as
Currently working in the deployment of an OFBiz based ERP, we've come to the
Currently working on a Spring 2.5 web application, looks as if the business has
Currently working on an ASP.NET web app and am starting to realise i'm writing
Where currently working on an C# application that requires data to be stored in
I currently working on an issue tracker for my company to help them keep
I am currently working on a project and my goal is to locate text

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.