mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
remove one of two lang menus; add l10n message
This commit is contained in:
@@ -626,6 +626,7 @@ jsp.layout.navbar-default.help = Help
|
||||
jsp.layout.navbar-default.home = Home
|
||||
jsp.layout.navbar-default.loggedin = Logged in as {0}
|
||||
jsp.layout.navbar-default.logout = Logout
|
||||
jsp.layout.navbar-default.language = Language
|
||||
jsp.layout.navbar-default.receive = Receive email<br/>updates
|
||||
jsp.layout.navbar-default.search = Search DSpace
|
||||
jsp.layout.navbar-default.sign = Sign on to:
|
||||
|
@@ -40,7 +40,6 @@
|
||||
<%
|
||||
Community[] communities = (Community[]) request.getAttribute("communities");
|
||||
|
||||
Locale[] supportedLocales = I18nUtil.getSupportedLocales();
|
||||
Locale sessionLocale = UIUtil.getSessionLocale(request);
|
||||
Config.set(request.getSession(), Config.FMT_LOCALE, sessionLocale);
|
||||
String topNews = NewsManager.readNewsFile(LocaleSupport.getLocalizedMessage(pageContext, "news-top.html"));
|
||||
@@ -60,27 +59,8 @@
|
||||
|
||||
<dspace:layout locbar="nolink" titlekey="jsp.home.title" feedData="<%= feedData %>">
|
||||
|
||||
<% if (supportedLocales != null && supportedLocales.length > 1)
|
||||
{
|
||||
%>
|
||||
<form method="get" name="repost" action="">
|
||||
<input type ="hidden" name ="locale"/>
|
||||
</form>
|
||||
<%
|
||||
for (int i = supportedLocales.length-1; i >= 0; i--)
|
||||
{
|
||||
%>
|
||||
<a class ="langChangeOn"
|
||||
onclick="javascript:document.repost.locale.value='<%=supportedLocales[i].toString()%>';
|
||||
document.repost.submit();">
|
||||
<%= supportedLocales[i].getDisplayLanguage(supportedLocales[i])%>
|
||||
</a>
|
||||
<%
|
||||
}
|
||||
}
|
||||
%>
|
||||
<div class="jumbotron">
|
||||
<%= topNews %>
|
||||
<%= topNews %>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
|
@@ -121,7 +121,7 @@
|
||||
<div class="nav navbar-nav navbar-right">
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">LANG<b class="caret"></b></a>
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><fmt:message key="jsp.layout.navbar-default.language"/><b class="caret"></b></a>
|
||||
<ul class="dropdown-menu">
|
||||
<%
|
||||
for (int i = supportedLocales.length-1; i >= 0; i--)
|
||||
|
@@ -66,16 +66,6 @@ UL { font-family: "verdana", "Arial", "Helvetica", sans-serif;
|
||||
font-family: "verdana", "Arial", "Helvetica", sans-serif;
|
||||
font-size: 10pt }
|
||||
|
||||
.langChangeOff { text-decoration: none;
|
||||
color : #bbbbbb;
|
||||
cursor : default;
|
||||
font-size: 10pt }
|
||||
|
||||
.langChangeOn { text-decoration: underline;
|
||||
color: #336699;
|
||||
cursor: pointer;
|
||||
font-size: 10pt }
|
||||
|
||||
.pageBanner { width: 100%;
|
||||
border: 0;
|
||||
margin: 0;
|
||||
@@ -844,4 +834,4 @@ th.accessHeadEven {
|
||||
vertical-align: middle;
|
||||
text-decoration: none;
|
||||
background: #ffffff;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user