N
N
nickname7772014-11-25 06:36:21
css
nickname777, 2014-11-25 06:36:21

How to make the picture change when choosing a language?

When changing the language, it is necessary that the pictures also change. Help..

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Kitmanov, 2014-11-25
@k12th

If these are design pictures, then something like this:

img.ru, img.en { display: none; }
[lang="ru"] img.ru { display: block; }
[lang="en"] img.en { display: block; }

Well, we set the html attribute lang="en"
If they are in the content, then we need to create a new column in the database for each text field.
In fact, you have ASP.NET mentioned in the tags, so google "asp.net l10n". There is no single approach, there will be some kind of devil in the details everywhere. What I have described does not scale well into more than two languages.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question