How to add internationalization support to Blogger?

How to add internationalization support to Blogger?
Is it possible to deal with multiple languages ​​in one blog?
Can I add my own translation and not use the Google Translate widget ?

Thank.

+3
source share
3 answers

They should be installed in the html-header of your blog (Design → Edit HTML, insert after <head>)

<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js' type='text/javascript'></script>

<script src='http://csjs.googlecode.com/files/csjs_1.1.3.js' type='text/javascript'></script>
<script src='http://csjs.googlecode.com/files/csjs.lang_1.0.0.js' type='text/javascript'></script>
<script src='http://csjs.googlecode.com/files/csjs.browser_1.0.3.js' type='text/javascript'></script>
<script src='http://csjs.googlecode.com/files/csjs.i18n_1.2.5.js' type='text/javascript'></script>
<script src='http://csjs.googlecode.com/files/csjs.ui_1.0.6.js' type='text/javascript'></script>
<script src='http://csjs.googlecode.com/files/csjs.ui.i18n_1.0.4.js' type='text/javascript'></script>

This post looks like:

<!-- insert this as a title -->
<div i18n='post1_msg1'> <!-- it is worth to add default text here due to some programs that --></div>

<!-- any HTML controls to be internationalized -->
<div i18n='post1_msg2'><!-- operate blog content (like rss reader) will not download script --></div>

<script type="text/javascript">
    i18n.load( {
        'en' : {
            'post1_msg1' : 'First Post',
            'post1_msg2' : 'Post content'
        },
        'ru' : {
            'post1_msg1' : ' ',
            'post1_msg2' : ' '
        },
        'uk' : {
            'post1_msg1' : ' і',
            'post1_msg2' : ' і'
        }
    });
</script>

Add a language selector as a gadget (Design → Page Elements → Add Gadget → Basics → HTML / JavaScript).

<div csjs-ctrl-class="csjs.ui.i18n.ListLanguageSwitch"></div>

About the csjs library .

+1
source

, blogspot - . ; -)

?

0

Source: https://habr.com/ru/post/1790238/


All Articles