Bug #27516 » sysext-fluid-27516-translate_paginate-trunk.diff

Alexander Stehlik, 2011-06-17 14:55

View differences:

Resources/Private/Language/locallang.xml
1
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
2
<T3locallang>
3
	<meta type="array">
4
		<type>module</type>
5
		<description>Language labels for the fluid extension in the FRONTEND</description>
6
	</meta>
7
	<data type="array">
8
		<languageKey index="default" type="array">
9
			<label index="previous">previous t</label>
10
			<label index="next">next t</label>
11
		</languageKey>
12
		<languageKey index="de" type="array">
13
			<label index="previous">vorherige</label>
14
			<label index="next">nächste</label>
15
		</languageKey>
16
	</data>
17
</T3locallang>
Resources/Private/Templates/ViewHelpers/Widget/Paginate/Index.html
16 16
					<li class="previous">
17 17
						<f:if condition="{pagination.previousPage} > 1">
18 18
							<f:then>
19
								<f:link.widget arguments="{currentPage: pagination.previousPage}">previous</f:link.widget>
19
								<f:link.widget arguments="{currentPage: pagination.previousPage}"><f:translate key="previous">previous</f:translate></f:link.widget>
20 20
							</f:then>
21 21
							<f:else>
22
								<f:link.widget>previous</f:link.widget>
22
								<f:link.widget><f:translate key="previous">previous</f:translate></f:link.widget>
23 23
							</f:else>
24 24
						</f:if>
25 25
					</li>
......
64 64
				</f:if>
65 65
				<f:if condition="{pagination.nextPage}">
66 66
					<li class="next">
67
						<f:link.widget arguments="{currentPage: pagination.nextPage}">next</f:link.widget>
67
						<f:link.widget arguments="{currentPage: pagination.nextPage}"><f:translate key="next">next</f:translate></f:link.widget>
68 68
					</li>
69 69
				</f:if>
70 70
			</ul>
    (1-1/1)