[TYPO3-templavoila] RFC #9465: Additional hook to allow user postprocessing of available languages for translation
Xavier Perseguers
typo3 at perseguers.ch
Wed Oct 1 23:07:16 CEST 2008
FYI: The attached SVN patch was committed.
Type:
Feature
Problem:
It is sometimes needed to post-process the list of available languages,
e.g. to disable some of them from an extension. However, as no hook
exists for that, one has to XCLASS TemplaVoilà only to be able to remove
a translation language.
Solution:
The attached patch (render_availableLanguages,diff) adds a hook for this
purpose.
Additional Information:
When dealing with a website that should have different default
languages, it is needed to create as website language the language that
is normally defined as default. This is needed because the default
language will be different on a subtree.
In this configuration, e.g. English which is default and French which is
sys_language_uid = 1, an additional language English with uid = 2 should
be created. When default language is English, then translation should be
done for French (uid = 1) but English (uid = 2) should be hidden as it
already is present as default language. When default language is French
(thus uid = 0), English translation should be done with uid = 2 and
French (uid = 1) should be hidden.
In addition, I attached another patch which allows this to be done
without a hook but with an additional page TS setting
(disableLanguages.diff) which does what I currently do with XCLASS or
will do with a hook if the hook patch is applied. This page TS patch
would do the job in TV itself without any need for an external processing.
Bugtracker references:
http://bugs.typo3.org/view.php?id=9465
Branches:
trunk
Regards,
Xavier
--
Xavier Perseguers
http://xavier.perseguers.ch/en
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: render_availableLanguages.diff
Url: http://lists.netfielders.de/pipermail/typo3-project-templavoila/attachments/20081001/f164ac5e/attachment-0002.txt
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: disableLanguages.diff
Url: http://lists.netfielders.de/pipermail/typo3-project-templavoila/attachments/20081001/f164ac5e/attachment-0003.txt
More information about the TYPO3-project-templavoila
mailing list