Typo3 translation of dialect languages using typoscript - typo3

i am working on multi language site using typo3 6.2. where i am using typoscript in template to receive the language translation
the code to receive the language translation using typoscript is
temp.applyonline = TEXT
temp.applyonline {
data = LLL:EXT:ext_name/pi1/locallang.xml:direct_request
stdWrap.wrap = <div class="ceWrap"><br />|</div>
}
This code is working fine for normal languages but not for language dialect such as austrian german.
The dialect translation are working otherwise but the issues happens only when translation of dialect is trying to get via typoscript
Please help

Related

Translate EXT:form validator in TYPO3 8.7

I've got a problem with translating the client side validator in ext:form in a multi language site en/de/it/fr/cn.
But in english page I have the german translation "Bitte füllen Sie dieses Feld aus", which should not appear here.
I tried all variations of
support.validation.error.email.1221560910
validation.error.1221560910
in typo3conf/ext/site_package/Resources/Private/Language/locallang.xlf but nothing happens with german message...
I've already tried How do you translate EXT:Form forms in TYPO3 CMS 8.7 LTS?
You can translate validation error messages with the following translation keys:
<formDefinitionIdentifier>.validation.error.<elementIdentifier>.<validationErrorCode>
<formDefinitionIdentifier>.validation.error.<validationErrorCode>
validation.error.<elementIdentifier>.<validationErrorCode>
validation.error.<validationErrorCode>
Source: Documentation of the TYPO3 Form Framework, TYPO3 v8
Important: the translation keys for validation messages are only considered if you don't already have a message in the form definition under validationErrorMessages!
So please check your form definition for custom validation messages and remove them there.
you might need to define the current language in your typoscript.
instead of the older condition based on the L-parameter you now need it done with the symphony expressions:
[siteLanguage("title") == "English"]
config {
sys_language_uid = 1
language = en
locale_all = en_US.UTF-8
htmlTag_langKey = en
}
[global]
and you need the correct spelling based on your language definition in the yaml file

TYPO3 what is the .layout deprecation 7.x to 8.x

i'm updating a project from TYPO3 7.6.32 to ^8. in the deprecation log i can find a lot of entries where the issue is:
29-04-19 12:13: EXT:form: Do not use "layout." anymore. Deprecated since TYPO3 CMS 7, this function will be removed in TYPO3 CMS 8.
questions:
what is EXT:form (its not an extension in typo3conf/ext/...)
what is "layout."
do anyone have any resources on how to rework that case
if any further information is needed just drop a comment, thanks - any help is much appreciated
This is probably usage of the FORM content object / content element.
See:
https://docs.typo3.org/typo3cms/extensions/core/Changelog/7.5/Deprecation-69401-AdoptFormToSupportTheExtbaseFluidMVCStack.html
You might have the following somewhere:
10 = FORM
10 {
layout {
containerWrap = <div><elements /></div>
elementWrap = <div><element /></div>
}
}
The "layout" part can be removed completely.
The extension "Form" mentioned is a system extension and located in typo3/sysext/form. The layout part was the configuration older versions used to configure the layout - which is nowadays done with FLUID templates.
The form extension layouts can be customized by configuring your own templates in TypoScript - see https://docs.typo3.org/typo3cms/extensions/form/I/FAQ/Index.html#how-do-i-override-the-frontend-templates

TYPO3 shariff extension language detection

I use TYPO3 6.2 and the Extension shariff. The default language of this extension is english, but the buttons are always translated to german. My website is multilingual (en, de). The Buttons are included via backend for both languages. How could I define the language per content element "Shariff Social Icons"?
Please clarify your question a bit. What do you mean by "language per record"?
The language is detected automatically from the language configured for the current page. So it automatically adjusts if the language is changed.
See also: https://docs.typo3.org/typo3cms/extensions/rx_shariff/Installation/Index.html#fluid-view-helper
If you need to set a language manually you can do that via the data-lang attribute.
You can add override for Shariff Index.html by copying typo3conf/ext/rx_shariff/Resources/Private/Templates/Shariff/Index.html to typo3conf/ext/YourExtension/Resources/Private/Templates/Shariff/Index.html (your extension / override template path)
And add following override to setup typo-script:
plugin.tx_rxshariff.view {
templateRootPaths{
2 = EXT:YourExtension/Resources/Private/Templates/
}
}
Add your modification to your overridden file (typo3conf/ext/YourExtension/Resources/Private/Templates/Shariff/Index.html).

Typo3: How to disable Bootstrap Language Menu

I installed the latest Typo 3 LTS 7 Version and used Bootstrap with it. I did not enable any multilanguage stuff, nor do I want it to be displayed. How to disable the language ("Deutsch, Dansk, English") which is presented after every footer?
Thanks a lot!
OK, I found a solution.
Just add
page.theme.metasection.enable = 0
to the Template Constants.
This only disables the Language Footer.
I do not know however, how to configure it (i.e. replace the non existing language names like Dansk)
The language menu is being built in EXT:bootstrap_package/Configuration/TypoScript/setup.txt (line 40).
lib.language = COA
lib.language {
...
}
It takes the languages you have defined in the backend (database), assigns information to these and builds up the HMENU. In the default bootstrap_package configuration's case that should be the languages with the ids 0,1,2.
lib.language.20.special.value = 0,1,2
You could change the values there, or get rid of the whole section all together (so not to load it at all) depending on what you want to achieve. If you want to remove it you need to remove the references in the template itself, too.
EXT:bootstrap_package/Resources/Private/Partials/Page/Structure/Footer.html (line 21):
<div class="col-md-4 language">
<f:cObject typoscriptObjectPath="lib.language"/>
</div>
.. and from all other places you are referencing lib.language.

TYPO3 tx_news more-link only showing default translation

In TYPO3 tx_news i have the more-link, but it only shows the default translation in every language.
My default language is Danish.
In items.html I have this:
<f:translate key="more-link"/>
In my TypoScript I have this
plugin.tx_news._LOCAL_LANG.de.more-link = mehr
plugin.tx_news._LOCAL_LANG.en.more-link = read more
plugin.tx_news._LOCAL_LANG.default.more-link = læs mere
I can also see these values in TypoScript Object Browser.
But on the English and the German page the link text is "læs mere".
What could be wrong?
Check your language settings in your setup TypoScript.
You should set for english:
config.language = en
and for german:
config.language = de
This configures the system “language key” to be used for the language.
This is used to select labels from XLF files. Setting this should make
frontend plugins respond by showing labels from the correct language
(requires installation of the corresponding translations).
Actually with the settings above you change in TypoScript the default values from a language file. As you see you are using there the de and en properties. This settings should be set correctly in your config also to enable TYPO3 to match them.
Documentation is here.