mirror of
https://github.com/Prominence/grails-translations-plugin.git
synced 2026-07-03 02:36:46 +03:00
Added test functionality (getting list of bundles with translations).
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
<%@ page contentType="text/html;charset=UTF-8" %>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
||||
<title>Test</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<g:message code="test.message" />
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,24 @@
|
||||
<%@ page contentType="text/html;charset=UTF-8" %>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
||||
<title>bundles</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<g:if test="${bundles}">
|
||||
<g:each in="${bundles}" var="bundle">
|
||||
${bundle.name} <br />
|
||||
<g:each in="${bundle.propertiesList}" var="properties">
|
||||
-> ${properties.name} <br />
|
||||
${properties.text.eachLine { line ->
|
||||
print('----------> ' + line + '<br/>')
|
||||
}}
|
||||
</g:each>
|
||||
</g:each>
|
||||
</g:if>
|
||||
<g:else>
|
||||
There is no bundles!
|
||||
</g:else>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user