Project

General

Profile

Actions

Feature #49984

closed

Distribute localization over multiple .xlf files (atm only locallang.xlf)

Added by Christoph Gross over 11 years ago. Updated about 5 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
Extbase + l10n
Target version:
-
Start date:
2013-07-12
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

It would be nice to be able to structure the translation by using multiple files instead just one (possibly very big) file (locallang.xlf)

From my understanding this is currently not possible.

Example:

locallang.xlf
locallang_clientform.xlf
locallang_producttypes.xlf
...

Actions #1

Updated by Georg Ringer over 11 years ago

this is possible by just adding the full path

<f:translate key="LLL:EXT:fo/Resources/Private/Language/locallang_fo.xml:bar" />

however take a look at how the core handles translations using the translation server and the related files in typo3conf/l10n/. those are splitted by language and should be smaller and better to handle.

that ok for you?

Actions #2

Updated by Christoph Gross over 11 years ago

Adding the full path is an option but really blows up the template, I would like to avoid that.

In the current project, I have some validation errors, some countrynames, some productrelated translation, ... that need translation.
The locallang.xlf gets really long and I would prefer a way to divide this nicely by domain.

Would changing this behaviour interfere with the translation server? If yes, then the effort for changing might not be relation to the benefit. If not, I would really like to see this feature and help to implement it if someone could give me some directions.

Actions #3

Updated by Philipp Gampe over 11 years ago

Well, that would require some kind of configuration.

Actions #4

Updated by Alexander Opitz about 10 years ago

  • Description updated (diff)
  • Status changed from New to Needs Feedback

Hi,

was this issue fixed or does it still exists?

Actions #5

Updated by Christoph Gross about 10 years ago

As far as I know it still exists. There is no way to use multiple localization files without specifying them explicitly like this:

<f:translate key="LLL:EXT:fo/Resources/Private/Language/locallang_fo.xml:bar" />

It would be nice to split up the translation by model or some other means. Internally those files would need to be merged in one big locallang.xfl.

Actions #6

Updated by Alexander Opitz about 10 years ago

  • Project changed from 534 to TYPO3 Core
  • Category set to Extbase
  • Status changed from Needs Feedback to New

This sounds more for fluid, but I let it as extbase feature request

Actions #7

Updated by Riccardo De Contardi about 7 years ago

  • Category changed from Extbase to Extbase + l10n
Actions #8

Updated by Georg Ringer about 5 years ago

  • Status changed from New to Rejected

I would like to reject this feature request because we try to have less magic in the core. This feature will increase the magic factor as suddenly strings of some files (which ones) can be retrieved from a different file.

I propose to create a custom VH which extends the translation VH and then you can build up any string by yourself, e.g.

<fo:translate key="title" type="model" />

since version 9 you can even overload the namespaces of VH so that you could use the <f:translate /> for that as well.

Actions

Also available in: Atom PDF