Project

General

Profile

Actions

Bug #29028

closed

Use proper localization API

Added by Xavier Perseguers about 13 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Must have
Category:
-
Target version:
Start date:
2011-08-17
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
4.6
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Use of TYPO3.lang has been deprecated. Use TYPO3.l10n.localize() instead.

Actions #1

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]

Actions #2

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

Actions #3

Updated by Xavier Perseguers about 13 years ago

  • Status changed from New to Under Review
Actions #4

Updated by Xavier Perseguers about 13 years ago

  • Priority changed from Should have to Must have
Actions #5

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

Actions #6

Updated by Xavier Perseguers about 13 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #7

Updated by Xavier Perseguers over 12 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF