Loading...
Skip navigation
Please note that this documentation is for the most recent version of this extension. It may not be relevant for older versions. Related documentation can be found in the documentation directory of the extension.

Language labels

Sometimes an attribute in the OpenImmo interface does not have a language label in the system. This can e.g. in the case of equipment attributes, look like this:

Language label not available

In this case you will need to create a new language label. You may sometimes want to rename a language label that already exists if it doesn't contain the correct text.

Setup-Typoscript allows you to change existing language labels and to create new ones. This works as follows:

plugin.tx_openimmo._LOCAL_LANG {
    default {
        # Beispiel für Ausstattung labels
        # Der erste Abschnitt des Keys, vor dem Punkt, gibt eine Art Namespace an
        # Der zweite Abschnitt des Keys setzte sich aus dem Pfad des Attributes aus dem OpenImmo-XML zusammen
        # Hinter dem *Gleich*-Zeichen kommt dann der neue Sprachwert
        tx_openimmo_label.immobilie_ausstattung_bad_dusche = Dusche
        tx_openimmo_label.immobilie_ausstattung_bad_fenster = Fenster im Bad
    }
}

Multilanguage

The OpenImmo extension comes with ​​German and English languages. If you want to overwrite particular language values, proceed as follows:

plugin.tx_openimmo._LOCAL_LANG {
    en {
        tx_openimmo_label.immobilie_ausstattung_bad = Bath
    }
    de {
        tx_openimmo_label.immobilie_ausstattung_bad = Bath
    }
}

Translating quick search

Since selectbox entries are defined in TypoScript, translations are provided using TypoScript conditions, e.g.:

[globalVar = GP:L = 1]
plugin.tx_openimmo.settings.search {
    fieldOptions {
        immobilie_flaechen_wohnflaeche {
            1.label = doesn't matter
            2.label = 30 - 50 m²
            3.label = 50 - 70 m²
            4.label = 70 - 90 m²
            5.label = larger than 90 m²
        }
        immobilie_flaechen_anzahlZimmer {
            1.label = doesn't matter
            2.label = 1
            3.label = 2
            4.label = 3
            5.label = 4
            6.label = 5 or more
        }
        immobilie_preise_nettokaltmiete {
            1.label = doesn't matter
            2.label = up to 300 €
            3.label = up to 500 €
            4.label = up to 700 €
            5.label = up to 900 €
        }
    }
}
[global]

Translating Points of interest

Points of interest works similarly. These are also defined in TypoScript so you will again need a TypoScript condition:

[globalVar = GP:L = 1]
plugin.tx_openimmo {
    settings {
        googleMaps.pointsOfInterest.available {
            grocery_or_supermarket.label = Supermärkte
            restaurant.label = Restaurants
            bus_station.label = Bus & Bahn
            post_office.label = Postfilialen
            school.label = Schulen
            atm.label = Geldautomaten
            bakery.label = Bäckereien
            gas_station.label = Tankstellen
            doctor.label = Ärzte
        }
    }
}
[global]

Search request Mail-Text

If you need to modify the translations of the search request mails, you will need a special procedure, because these mails are send by a Symfony command. Just copy the required translation files into your sitepackage and modify your labels. Additionally you have to create a ext_localconf.php file which registers the custom translations.

EXT:sitepackage/ext_localconf.php

<?php
if (!defined('TYPO3')) {
    die('Access denied.');
}

$GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']['EXT:openimmo/Resources/Private/Language/locallang.xlf'][] = 'EXT:sitepackage/Resources/Private/Language/Openimmo/locallang.xlf';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']['de']['EXT:openimmo/Resources/Private/Language/de.locallang.xlf'][] = 'EXT:sitepackage/Resources/Private/Language/Openimmo/de.locallang.xlf';

EXT:sitepackage/Resources/Private/Language/Openimmo/locallang.xlf

<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<xliff version="1.0">
    <file source-language="en" product-name="openimmo" datatype="plaintext" original="messages" date="2017-05-17T15:08:28Z">
        <header>
            <type>en</type>
            <description></description>
            <authorName>Thomas Deuling</authorName>
            <authorEmail>typo3(at)coding(dot)ms</authorEmail>
            <generator>EXT:translator</generator>
        </header>
        <body>

            <trans-unit id="tx_openimmo_label.search_request_mail_introduction_on_match" approved="yes">
                <source>we have some suggestions for your search request on www.sitepackage.de.</source>
            </trans-unit>
            <trans-unit id="tx_openimmo_label.search_request_mail_preview_on_creation" approved="yes">
                <source>TYPO3-OpenImmo search request creation on www.sitepackage.de.</source>
            </trans-unit>
            <trans-unit id="tx_openimmo_label.search_request_mail_preview_on_update" approved="yes">
                <source>TYPO3-OpenImmo search request update on www.sitepackage.de.</source>
            </trans-unit>
            <trans-unit id="tx_openimmo_label.search_request_mail_preview_on_expire" approved="yes">
                <source>TYPO3-OpenImmo search request expires on www.sitepackage.de.</source>
            </trans-unit>
            <trans-unit id="tx_openimmo_label.search_request_mail_preview_on_match" approved="yes">
                <source>TYPO3-OpenImmo search request matches on www.sitepackage.de.</source>
            </trans-unit>

        </body>
    </file>
</xliff>

EXT:sitepackage/Resources/Private/Language/Openimmo/de.locallang.xlf

<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<xliff version="1.0">
    <file source-language="en" target-language="de" product-name="openimmo" datatype="plaintext" original="messages" date="2017-05-17T15:08:28Z">
        <header>
            <type>en</type>
            <description></description>
            <authorName>Thomas Deuling</authorName>
            <authorEmail>typo3(at)coding(dot)ms</authorEmail>
            <generator>EXT:translator</generator>
        </header>
        <body>

            <trans-unit id="tx_openimmo_label.search_request_mail_introduction_on_match" approved="yes">
                <source>we have some suggestions for your search request on www.sitepackage.de.</source>
                <target>wir haben neue Treffer zu Ihrem Suchauftrag auf www.sitepackage.de.</target>
            </trans-unit>
            <trans-unit id="tx_openimmo_label.search_request_mail_preview_on_creation" approved="yes">
                <source>TYPO3-OpenImmo search request creation on www.sitepackage.de.</source>
                <target>TYPO3-OpenImmo Suchauftrags-Erstellung auf www.sitepackage.de.</target>
            </trans-unit>
            <trans-unit id="tx_openimmo_label.search_request_mail_preview_on_update" approved="yes">
                <source>TYPO3-OpenImmo search request update on www.sitepackage.de.</source>
                <target>TYPO3-OpenImmo Suchauftrags-Aktualisierung auf www.sitepackage.de.</target>
            </trans-unit>
            <trans-unit id="tx_openimmo_label.search_request_mail_preview_on_expire" approved="yes">
                <source>TYPO3-OpenImmo search request expires on www.sitepackage.de.</source>
                <target>TYPO3-OpenImmo Suchauftrag-Ablauf auf www.sitepackage.de.</target>
            </trans-unit>
            <trans-unit id="tx_openimmo_label.search_request_mail_preview_on_match" approved="yes">
                <source>TYPO3-OpenImmo search request matches on www.sitepackage.de.</source>
                <target>TYPO3-OpenImmo Suchauftrag-Treffer auf www.sitepackage.de.</target>
            </trans-unit>

        </body>
    </file>
</xliff>
Documentation
TYPO3 OpenImmo Extension

TYPO3 OpenImmo

TYPO3 OpenImmo is a real estate extension that reads in your objects via an OpenImmo-API and displays them on your website.

Menu

Contact request

You can contact us at any time

Stop! Playing in the meantime?
Stop! Playing in the meantime?
Stop! Playing in the meantime?

Stop! Playing in the meantime?

Break the highscore

Press Start
Contact request
Screenreader label
Security question
RPF_________OB3______
J_5____5____3_E___FIG
H_I___NTY___OOP______
G_6____E______2___FSR
892_________1PL______