Skip to content

Commit

Permalink
Entity not found localization. Partially addresses #59
Browse files Browse the repository at this point in the history
  • Loading branch information
jindrichmynarz committed Sep 8, 2014
1 parent 668cfc3 commit 0b9ad18
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ dashboard.activities.withdrawn=You withdrew from
dashboard.help=On this screen, you can see your recent activities.
editevent.help=On this screen, you can create a contract. Enter a title for the contract and at least one CPV code describing the object of the contract. You don't need to know the exact code, just start typing either the CPV code or its label and let autocomplete help you. When you select the contract type, you will be asked to enter more information depending on its type. Mandatory fields have a red asterisk next to them.
editevent.title=Edit contract
entity.notfound=Entity not found
finalize.satisfied=Have you been satisfied with the supplier?
finalize.title=Finalize contract
menu.calls.cancelled=Cancelled calls
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ dashboard.activities.withdrawn=Stáhnuli jste z
dashboard.help=Zde vidíte své nejnovější aktivity.
editevent.help=Zde můžete vytvořit zakázku. Zadejte název zakázky a alespoň jeden CPV kód popisující předmět zakázky. Není nutné znát přesný kód, stačí začít psát buď kód nebo slovní označení a kód bude automaticky doplněn. Po zadání typu zakázky budete vyzváni k doplnění dalších informací v závislosti na zvoleném typu. Povinná pole jsou označena červenou hvězdičkou.
editevent.title=Upravit zakázku
entity.notfound=Zadavatel nebyl nalezen
finalize.satisfied=Byli jste spokojeni s dodavatelem?
finalize.title=Dokončit zakázku
menu.calls.cancelled=Zrušené výzvy
Expand Down
6 changes: 3 additions & 3 deletions src/main/webapp/entity-buyer.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<html>
<head>
<%@include file="WEB-INF/jspf/header.jspf" %>
<fmt:setBundle basename="cz.opendata.tenderstats.i18n.Buyer" />
<fmt:setBundle basename="cz.opendata.tenderstats.i18n.Constants" var="cons" />
</head>
<body>
Expand Down Expand Up @@ -41,7 +42,7 @@
else
{
$('#message').addClass('alert-error');
$('#message').append("Entity not found").fadeIn('slow');
$('#message').append("<fmt:message key="entity.notfound" />").fadeIn('slow');
}
}
);
Expand All @@ -67,11 +68,10 @@
}
});
}
</script>

<script>
$("a").tooltip();
</script>
</body>
</html>
</html>
15 changes: 5 additions & 10 deletions src/main/webapp/entity-supplier.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<html>
<head>
<%@include file="WEB-INF/jspf/header.jspf" %>
<fmt:setBundle basename="cz.opendata.tenderstats.i18n.Buyer" />
<fmt:setBundle basename="cz.opendata.tenderstats.i18n.Constants" var="cons" />
</head>
<body>
Expand Down Expand Up @@ -45,17 +46,14 @@
<ul id="pages">

</ul>

</div>

<div id="showAllPages" class="hide pagination pull-right" style="margin: 0; margin-top: -16px;">
<ul>
<li><a
onclick="$('.3dots').remove();
<li><a onclick="$('.3dots').remove();
$('#pages li').removeClass('reallyhide');
$('#showAllPages').remove();
"
href="#"><fmt:message key="show all pages" bundle="${cons}" /></a></li>
$('#showAllPages').remove();"
href="#"><fmt:message key="show all pages" bundle="${cons}" /></a></li>
</ul>
</div>
</div>
Expand All @@ -70,7 +68,6 @@
<script src="js/table.js"></script>

<script type="text/javascript">
var pagesTotal = 1;
var currentPage = 1;
var windowSize = 3; // in each direction from the current page
Expand Down Expand Up @@ -115,10 +112,8 @@
$("#view").fadeIn();
} else {
$('#message').addClass('alert-error');
$('#message').append("Entity not found").fadeIn(
'slow');
$('#message').append("<fmt:message key="entity.notfound" />").fadeIn('slow');
}
});
Expand Down

0 comments on commit 0b9ad18

Please sign in to comment.