Multy languages for website

Language English

как показывает ёнтернет только в одной россии используется 277 языков. А самым востребованным языком стал Английский, по данным того же самого ёнтернете. Очевидно что английский самый популярный, потому что больше всего в мире стран разговаривают именно на нем. Программы пишут именно на английском. Самое большое количество информации, опять на английском.

as the Internet shows, 277 languages are used in Russia alone. And the most popular language has become English, according to the same Internet. Obviously, English is the most popular, because it is spoken by the most countries in the world. Programs are written in English. The largest amount of information, again in English.

script multy languages for website

Если искать на русском места по уровню жизни, то ёнтернет заблокирован, потому что русский язык берет своё начало со времен гоминидов, где все решалось только силой, угрозами и запугиванием. Хотя английский и немецкий - это тоже индоевропейские языки, но зная их можно получать за работу хорошую плату. Что никак нельзя сказать о русском. Со знанием русского, нет ни одной оплачиваемой работы.

If you look for places in Russian based on the standard of living, the Internet is blocked, because the Russian language dates back to the times of the hominids, where everything was decided only by force, threats and intimidation. Although English and German are also Indo-European languages, knowing them you can get good pay for your work. The same cannot be said about Russian. With knowledge of Russian, there is not a single paid job.

Поэтому в развитых странах постсоветского пространства, отказать в работе могут если из всех разговорных языков известен только один и 100% отказ если этот один язык: русский.

Therefore, in developed countries of the post-Soviet space, they can refuse a job if only one of all spoken languages is known, and 100% refusal if this one language is Russian.

И в реальной жизни много новостей, различной информации, о технологиях, программировании написаны на любом языке, но только не на русском. Чтобы усугубить этот разрыв с цивилизованном миром. Русский ёнтернет заблокирован. Нет ни образования, ни новостей о реальных событиях. Ёнтернет только через “зарубежную технологию” и то только на английском. Если события и дальше будут развиваться подобным образом, то можно с уверенностью сказать что русский язык будет считаться мертвым.

And in real life, a lot of news, various information, about technology, programming are written in any language, but not in Russian. To deepen this gap with the civilized world. The Russian Internet is blocked. There is no education, no news about real events. The Internet is only through “foreign technology” and then only in English. If events continue to develop in this way, then we can say with confidence that the Russian language will be considered dead.

Осторожно коммунист!

Beware communist!

Как был смысл в книге “мертвые души”, есть города, есть села. в которых на бумаге числится “души”, но в реальной жизни их нет. Есть пустошь, безлюдные просторы. Миллионы километров бескрайней коммунистической пустоши.

As was the meaning in the book “dead souls”, there are cities, there are villages. in which “souls” are listed on paper, but in real life they are not. There is a wasteland, deserted spaces. Millions of kilometers of endless communist wasteland.

Поэтому нужно срочно учить: Узбекский, Тибетский, Казахский или любой другой, но трендовый.

Therefore, you urgently need to learn: Uzbek, Tibetan, Kazakh or any other, but trendy one.

Каким образом работает скрипт

How the script works

function languageSelected(){
    document.querySelector('head > meta[name="description"]').setAttribute('content','switching languages in pure Javascript, multi-language script for a website, one-pager, landing page.');
  document.title='multy language script for website';
  for(let j=0;j<=document.querySelectorAll('#eng').length;j++){
  if(boxFieldset.­elements.checkLanguageEng.checked==true){
    if(document.querySelectorAll('#rus')[j]==null){
        // console.log('oooK');
    }else{
        document.querySelectorAll('#lat')[j].style.display='none';
    }
    if(typeof document.querySelectorAll('#lat')[j]!=="undefined"){
        document.querySelectorAll('#eng')[j].style.display='block';
    }
    if(document.­querySelectorAll('#rus')[j]==null){
        // console.log('oojiK');
    }else{
        document.querySelectorAll('#rus')[j].style.display='none';
    }
 }//ifMainBox
 }
}

script on github

Блок fieldset встраивается в тег main если тега майн не будет в теле документа, в скрипте нужно будет записать в document.querySelector(‘body’) или не забыть исправить на любой другой тег в который будет встраиваться tags переключателя.

The fieldset block is embedded in the main tag. If the main tag is not in the body of the document, you will need to write it in document.querySelector('body') in the script or remember to change it to any other tag in which tags will be embedded switch.

Первый запуск скрипта вызовет фанкшн гет рандом интержер, но если в ссылке будет присутствовать location.search=?eng||lat||rus то будет выбран соответствующий язык.

The first launch of the script will cause a function get random interger, but if location.search=?eng||lat||rus is present in the link, then the appropriate language will be selected.

Amir

to list
https://qucu.ru/comments/