Skip to content

Commit 92e4844

Browse files
author
Trond Lossius
committed
Adding icons, updating with info on demo site
1 parent f28d241 commit 92e4844

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

README.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,13 @@
22

33
This is a demo project for how to build a multi-lingual static website. All translations of a page are maintained in the same document, and the variuous language verisons are displayed or hidden depending on choice of locale. Language preference is stored in a cookie and remembered from one page to the next.
44

5-
In this example the `localeNo` and `localeEn` classes are used for Norwegian and English text elements respectively. Similar classes can be constructed for other languages. In order to change languages or add support for more languages, the `showLocale()` method in `scripts/locale.js` will have to be modified. Currently it supports Norwegian (default) and English. This file also need to be adjusted for the domain name of your site in line 9 of `scripts/locale.js`.
5+
In this example the `localeNo` and `localeEn` classes are used for Norwegian and English text elements respectively. Similar classes can be constructed for other languages. In order to change languages or add support for more languages, the `showLocale()` method in `scripts/locale.js` will have to be modified. Currently it supports Norwegian (default) and English. This file also need to be adjusted for the domain name of your site in `line 9` of `scripts/locale.js`.
66

77
## Dependencies
88

9-
This website depends on <a href="https://jquery.com/">jQuery</a>. If you use other frameworks such as Bootstrap, jQuery is already included there. Additionally it makes use of <a href="https://github.com/js-cookie/js-cookie">js-cookie</a>.
9+
This website depends on <a href="https://jquery.com/">jQuery</a>. If you use other frameworks such as Bootstrap, jQuery is already included there. Additionally it makes use of <a href="https://github.com/js-cookie/js-cookie">js-cookie</a>.
10+
11+
## Demo
12+
13+
An online demo version of this web site [can be found here](http://multilingual.trondlossius.no/another.htm).
14+

images/gb.png

5.1 KB
Loading

images/no.png

1.96 KB
Loading

0 commit comments

Comments
 (0)