[icinga-checkins] icinga.org: icinga-core/master: Add flags for languages in the menu documantation

Michael Luebben michael at luebben-home.de
Sat Oct 3 23:57:23 CEST 2009


Module: icinga-core
Branch: master
Commit: db23d058b3993c0314cb49ecf35f8e436548d7f9
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=db23d058b3993c0314cb49ecf35f8e436548d7f9

Author: Michael Luebben <michael at luebben-home.de>
Date:   Sat Oct  3 18:07:11 2009 +0200

Add flags for languages in the menu documantation

---

 html/Makefile.in                    |    3 +++
 html/docs/images/flags/gb.png       |  Bin 599 -> 0 bytes
 html/menu.html.in                   |    6 +++++-
 html/stylesheets/interface/menu.css |   14 ++++++++++++++
 4 files changed, 22 insertions(+), 1 deletions(-)

diff --git a/html/Makefile.in b/html/Makefile.in
index 44778b6..833b250 100644
--- a/html/Makefile.in
+++ b/html/Makefile.in
@@ -45,6 +45,7 @@ install:
 	$(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/docs/en
 	$(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/docs/de
 	$(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/docs/images
+	$(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/docs/images/flags
 	$(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/images
 	$(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/images/logos
 	$(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/images/interface
@@ -76,6 +77,8 @@ install:
 	for file in docs/images/*.*; \
 	do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/docs/images; done
 	for file in images/*.gif; \
+	do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/docs/images/flags; done
+	for file in images/*.png; \
 	do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/images; done
 	for file in images/*.jpg; \
 	do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/images; done
diff --git a/html/docs/images/flags/gb.png b/html/docs/images/flags/gb.png
deleted file mode 100644
index ff701e1..0000000
Binary files a/html/docs/images/flags/gb.png and /dev/null differ
diff --git a/html/menu.html.in b/html/menu.html.in
index 42f8cc8..5d8b482 100644
--- a/html/menu.html.in
+++ b/html/menu.html.in
@@ -15,7 +15,11 @@
 		<h2>General</h2>
 		<ul>
 			<li class="menuli_style1"><a href="main.html" target="main">Home</a></li>
-			<li class="menuli_style2"><a href="docs/index.html" target="main">Documentation</a></li>
+			<li class="menuli_style2">
+				<div class="flag">Documentation
+					<a class="flag" href="docs/de/index.html" target="main"><img src="docs/images/flags/de.png" /></a><a class="flag" href="docs/en/index.html" target="main"><img src="docs/images/flags/um_gb.png" /></a>
+				</div>
+			</li>
 			<li class="menuli_style2"><a href="search.html" target="main">Search</a></li>
 		</ul>
 		<h2>Monitoring</h2>
diff --git a/html/stylesheets/interface/menu.css b/html/stylesheets/interface/menu.css
index 8a3d5eb..de391ef 100644
--- a/html/stylesheets/interface/menu.css
+++ b/html/stylesheets/interface/menu.css
@@ -46,6 +46,7 @@ ul {
 	border-bottom: 1px solid #fff;
 }
 
+
 #menu ul li a {
 	padding-left: 12px;
 	background: url(../../images/interface/menu_li1.gif) 0 0.35em no-repeat;
@@ -68,3 +69,16 @@ ul {
 #menu ul li.menuli_style2 {
 	background-color: #e9e9e9;
 }
+
+#menu a.flag {
+	padding-left: 12px;
+	background: url(../../images/interface/menu_blank.gif) 0 0.35em no-repeat;
+}
+
+#menu div.flag {
+	padding: 0 10px;
+	height: 26px;
+	line-height: 26px;
+	border-bottom: 1px solid #fff;
+	color: #6e7475;
+}





More information about the icinga-checkins mailing list