Bug #29028
closedUse proper localization API
100%
Description
Use of TYPO3.lang has been deprecated. Use TYPO3.l10n.localize() instead.
Updated by Xavier Perseguers about 13 years ago
Regular replacement useed:
TYPO3.lang.<some_key>¶
S: TYPO3\.lang\.([a-zA-Z0-9_]+)
R: TYPO3.l10n.localize('$1')
Replaced it manually because at the beginning, there's a file where I should use double quotes instead of single ones to avoid having to escape them in a big raw inline JS.
TYPO3.lang['<some_key>']¶
S: TYPO3\.lang\[([^]]+)\]
R: TYPO3.l10n.localize($1)
This tackle with single/double quote as well, if needed. And other cases such as TYPO3.lang['<some_key_prefix>' + suffix]
Updated by Mr. Hudson about 13 years ago
Patch set 1 of change I68f968df3f3d105ee566987c000e3dafb97b9fe3 has been pushed to the review server.
It is available at http://review.typo3.org/4388
Updated by Xavier Perseguers about 13 years ago
- Status changed from New to Under Review
Updated by Xavier Perseguers about 13 years ago
- Priority changed from Should have to Must have
Updated by Mr. Hudson about 13 years ago
Patch set 2 of change I68f968df3f3d105ee566987c000e3dafb97b9fe3 has been pushed to the review server.
It is available at http://review.typo3.org/4388
Updated by Xavier Perseguers about 13 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 000cebfa6ea446a26e55911a7551637630c682d3.
Updated by Xavier Perseguers over 12 years ago
- Status changed from Resolved to Closed