Multiple languages ​​for the narrative web and optional other additions (#1051)

* Navweb: multi-language configuration.
* Navweb: multi-language exec, navigation menu, css
* Navweb: make css responsive for multi-language
* Language menu must work with a non english lang
* Avoid to copy common files for each language
* Use cms and archive in multi-languages
* Add the default index.
* Some cleanup.
* Images: performances improvement with image_size

Need to use the magic library (python-magic, python3-magic, ...)
If this library don't exist on the system, continue to use the Gdk method.

- force archive if we use CMS
- remove some unused code
- some strings are not translatable
- stay on the same page when you change language
- add image in the ancestor tree for all levels and not for the first 5

performances:
- copy images and thumbs only for the first language
* Some minor corrections and performances test
* Update comments for methods and functions
* Narweb: add show tags option
* Try to translate tags and suppress the colon (:)
* Narweb: integrate of webcal for multilang use
For each lang, we use the related calendar if it exists
* Death string only translated for the locale lang
* set correct url for extrapage.
* Add optional toggle for html sections
* show birth and death date if close option selected
* No background in references section with Mainz css
* Remove photo from list incompatible with multilang
* Add the first photo to the place page marker
* Add associated persons.
* Solves 'undefined' in map popup.
* Calendar: Set the background for the current day
* Thumbnail align problem with long description.
* Set the contact page date to the note date
* Add a scroll to top button.
* Increase the nb of generations since we can scroll
* Difficult to see the "go to top" icon.
* Better management for the toggle switch
This commit is contained in:
Serge Noiraud
2020-11-09 12:10:25 +01:00
committed by GitHub
parent c567b9e399
commit 31b80da797
36 changed files with 4077 additions and 726 deletions

View File

@@ -163,6 +163,7 @@ a[href]:hover, a[href]:active {
----------------------------------------------------- */
div#nav, #subnavigation {
border: solid 1px #454; /* needed by IE7 */
position: relative;
}
#subnavigation ul {
overflow: hidden;
@@ -203,6 +204,36 @@ div#nav ul li.CurrentSection a {
color: #454;
background-color: white;
}
div#nav li.lang {
color: #E0E6E0;
font-size: smaller;
font-family: sans-serif;
padding-top: .3em;
padding-bottom: .3em;
font-weight: bold;
}
div#nav li.lang:hover > ul {
visibility: visible;
opacity: 1;
}
div#nav ul.lang {
position: absolute;
visibility: hidden;
opacity: 0;
z-index: 999;
padding: 0px;
background-color: #454;
top: -1em;
font-size: larger;
font-family: sans-serif;
}
div#nav ul.lang:hover {
float: initial;
}
div#nav ul.lang li {
float: none;
padding: 1px 2px;
}
/* Alphabet Navigation
----------------------------------------------------- */
div#alphanav {
@@ -326,6 +357,21 @@ div#nav::after {
.content {
padding: 0em 0.5em;
}
.lang {
position: relative;
}
.lang > .lang {
top: 0;
left: 100%;
margin-top: -6px;
margin-left: -1px;
-webkit-border-radius: 0 6px 6px 6px;
-moz-border-radius: 0 6px 6px 6px;
border-radius: 0 6px 6px 6px;
}
.lang:hover > .lang {
display: block;
}
}
/* Main Table
@@ -678,7 +724,7 @@ div#SourceDetail {
}
.subsection {
clear: both;
overflow: hidden;
overflow-x: auto;
}
.subsection p {
margin: 0px;
@@ -690,6 +736,10 @@ div#SourceDetail {
table.relationships tr:hover {
background-color: #9DBF9D;
}
div.content table.tags {
text-align: left;
width: auto;
}
div#families table.fixed_subtables table.eventlist {
table-layout: fixed;
}
@@ -711,6 +761,12 @@ div#families table.attrlist td.ColumnType {
#indivgallery {
background-color: white;
}
#indivgallery a {
color: black;
text-decoration: none;
word-wrap: break-word;
display: block;
}
#gallery .gallerycell {
float: left;
width: 130px;
@@ -727,7 +783,8 @@ div#families table.attrlist td.ColumnType {
}
#indivgallery .thumbnail {
float: left;
width: 130px;
width: 160px;
height: 220px;
font-size: smaller;
text-align: center;
margin: 0.8em 0.5em;
@@ -1045,3 +1102,43 @@ body#fullyearlinked #YearGlance tbody td:hover .date {
border-radius: 45px;
border: 5px solid;
}
h4 button.icon {
width: 0.9em;
border: 0px solid;
padding: 0;
opacity: 1;
transform: rotate(90deg);
transition: transform 200ms ease-out 0s;
background: transparent;
}
h4 button.icon-close {
transform: rotate(90deg);
transition: transform 0.2s linear;
}
h4 button.icon-open {
transform: rotate(180deg);
transition: transform 0.2s linear;
}
svg {
fill: #9DBF9D;
}
/* Go to the top of the page */
#gototop {
display: none;
position: fixed;
bottom: 10px;
right: 20px;
z-index: 999;
border: none;
background-color: white;
color: black;
cursor: pointer;
border-radius: 4px;
width: 40px;
height: 40px;
padding: 0px;
}
#gototop:hover {
background-color: #E0E6E0;
}