Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translations and f:translate ViewHelper usage fix #3

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
2019-01-08 2.1.1 Dmytro Nozdrin <[email protected]>
* Fixed translations.
* Fixed f:translate ViewHelper obsolete property usage.
* Added change to the ChangeLog.

2019-12-25 2.1.0 Dmytro Nozdrin <[email protected]>
* Version for TYPO3 9.5 and 8.7.

2017-11-21 2.0.0 Christian Riesche <[email protected]>
* Version for TYPO3 7.6 and 8.7.

Expand Down
16 changes: 8 additions & 8 deletions Configuration/TCA/tx_ncusefulpages_domain_model_comment.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

return array(
'ctrl' => array(
'title' => 'LLL:EXT:nc_usefulpages/Resources/Private/Language/locallang_db.xml:tx_ncusefulpages_domain_model_comment',
'title' => 'LLL:EXT:nc_usefulpages/Resources/Private/Language/locallang_db.xlf:tx_ncusefulpages_domain_model_comment',
'label' => 'content',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
Expand All @@ -25,7 +25,7 @@
'columns' => array(
'content' => array(
'exclude' => 1,
'label' => 'LLL:EXT:nc_usefulpages/Resources/Private/Language/locallang_db.xml:tx_ncusefulpages_domain_model_comment.content',
'label' => 'LLL:EXT:nc_usefulpages/Resources/Private/Language/locallang_db.xlf:tx_ncusefulpages_domain_model_comment.content',
'config' => array(
'type' => 'text',
'rows' => 15,
Expand All @@ -39,20 +39,20 @@
),
'rating' => array(
'exclude' => 0,
'label' => 'LLL:EXT:nc_usefulpages/Resources/Private/Language/locallang_db.xml:tx_ncusefulpages_domain_model_comment.rating',
'label' => 'LLL:EXT:nc_usefulpages/Resources/Private/Language/locallang_db.xlf:tx_ncusefulpages_domain_model_comment.rating',
'config' => array(
'type' => 'select',
'items' => array(
array('-',
0), // Empty option despite 'eval'=>'required' to allow smooth transition without necessity of updating old records.

array('LLL:EXT:nc_usefulpages/Resources/Private/Language/locallang_db.xml:tx_ncusefulpages_domain_model_page.useful',
array('LLL:EXT:nc_usefulpages/Resources/Private/Language/locallang_db.xlf:tx_ncusefulpages_domain_model_page.useful',
\Netcreators\NcUsefulpages\Controller\CommentController::RATING_USEFUL),

array('LLL:EXT:nc_usefulpages/Resources/Private/Language/locallang_db.xml:tx_ncusefulpages_domain_model_page.notUseful',
array('LLL:EXT:nc_usefulpages/Resources/Private/Language/locallang_db.xlf:tx_ncusefulpages_domain_model_page.notUseful',
\Netcreators\NcUsefulpages\Controller\CommentController::RATING_NOT_USEFUL),

array('LLL:EXT:nc_usefulpages/Resources/Private/Language/locallang_db.xml:tx_ncusefulpages_domain_model_page.undecided',
array('LLL:EXT:nc_usefulpages/Resources/Private/Language/locallang_db.xlf:tx_ncusefulpages_domain_model_page.undecided',
\Netcreators\NcUsefulpages\Controller\CommentController::RATING_UNDECIDED)
),
'size' => 1,
Expand All @@ -62,7 +62,7 @@
),
'author_name' => array(
'exclude' => 0,
'label' => 'LLL:EXT:nc_usefulpages/Resources/Private/Language/locallang_db.xml:tx_ncusefulpages_domain_model_comment.author_name',
'label' => 'LLL:EXT:nc_usefulpages/Resources/Private/Language/locallang_db.xlf:tx_ncusefulpages_domain_model_comment.author_name',
'config' => array(
'type' => 'input',
'size' => 30,
Expand All @@ -72,7 +72,7 @@
),
'author_email' => array(
'exclude' => 0,
'label' => 'LLL:EXT:nc_usefulpages/Resources/Private/Language/locallang_db.xml:tx_ncusefulpages_domain_model_comment.author_email',
'label' => 'LLL:EXT:nc_usefulpages/Resources/Private/Language/locallang_db.xlf:tx_ncusefulpages_domain_model_comment.author_email',
'config' => array(
'type' => 'input',
'size' => 30,
Expand Down
18 changes: 9 additions & 9 deletions Configuration/TCA/tx_ncusefulpages_domain_model_page.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

return array(
'ctrl' => array(
'title' => 'LLL:EXT:nc_usefulpages/Resources/Private/Language/locallang_db.xml:tx_ncusefulpages_domain_model_page',
'title' => 'LLL:EXT:nc_usefulpages/Resources/Private/Language/locallang_db.xlf:tx_ncusefulpages_domain_model_page',
'label' => 'page_i_d',
'label_alt' => 'page_title',
'label_alt_force' => true,
Expand Down Expand Up @@ -78,7 +78,7 @@
),
'page_i_d' => array(
'exclude' => 0,
'label' => 'LLL:EXT:nc_usefulpages/Resources/Private/Language/locallang_db.xml:tx_ncusefulpages_domain_model_page.page_i_d',
'label' => 'LLL:EXT:nc_usefulpages/Resources/Private/Language/locallang_db.xlf:tx_ncusefulpages_domain_model_page.page_i_d',
'config' => array(
'type' => 'input',
'size' => 4,
Expand All @@ -87,7 +87,7 @@
),
'page_title' => array(
'exclude' => 0,
'label' => 'LLL:EXT:nc_usefulpages/Resources/Private/Language/locallang_db.xml:tx_ncusefulpages_domain_model_page.page_title',
'label' => 'LLL:EXT:nc_usefulpages/Resources/Private/Language/locallang_db.xlf:tx_ncusefulpages_domain_model_page.page_title',
'config' => array(
'type' => 'input',
'size' => 30,
Expand All @@ -96,7 +96,7 @@
),
'page_u_r_l' => array(
'exclude' => 0,
'label' => 'LLL:EXT:nc_usefulpages/Resources/Private/Language/locallang_db.xml:tx_ncusefulpages_domain_model_page.page_u_r_l',
'label' => 'LLL:EXT:nc_usefulpages/Resources/Private/Language/locallang_db.xlf:tx_ncusefulpages_domain_model_page.page_u_r_l',
'config' => array(
'type' => 'input',
'size' => 30,
Expand All @@ -105,7 +105,7 @@
),
'page_parameters' => array(
'exclude' => 1,
'label' => 'LLL:EXT:nc_usefulpages/Resources/Private/Language/locallang_db.xml:tx_ncusefulpages_domain_model_page.page_parameters',
'label' => 'LLL:EXT:nc_usefulpages/Resources/Private/Language/locallang_db.xlf:tx_ncusefulpages_domain_model_page.page_parameters',
'config' => array(
'type' => 'text',
'rows' => 5,
Expand All @@ -114,7 +114,7 @@
),
'useful' => array(
'exclude' => 0,
'label' => 'LLL:EXT:nc_usefulpages/Resources/Private/Language/locallang_db.xml:tx_ncusefulpages_domain_model_page.useful',
'label' => 'LLL:EXT:nc_usefulpages/Resources/Private/Language/locallang_db.xlf:tx_ncusefulpages_domain_model_page.useful',
'config' => array(
'type' => 'input',
'size' => 4,
Expand All @@ -123,7 +123,7 @@
),
'notuseful' => array(
'exclude' => 0,
'label' => 'LLL:EXT:nc_usefulpages/Resources/Private/Language/locallang_db.xml:tx_ncusefulpages_domain_model_page.notUseful',
'label' => 'LLL:EXT:nc_usefulpages/Resources/Private/Language/locallang_db.xlf:tx_ncusefulpages_domain_model_page.notUseful',
'config' => array(
'type' => 'input',
'size' => 4,
Expand All @@ -132,7 +132,7 @@
),
'undecided' => array(
'exclude' => 0,
'label' => 'LLL:EXT:nc_usefulpages/Resources/Private/Language/locallang_db.xml:tx_ncusefulpages_domain_model_page.undecided',
'label' => 'LLL:EXT:nc_usefulpages/Resources/Private/Language/locallang_db.xlf:tx_ncusefulpages_domain_model_page.undecided',
'config' => array(
'type' => 'input',
'size' => 4,
Expand All @@ -141,7 +141,7 @@
),
'comments' => array(
'exclude' => 1,
'label' => 'LLL:EXT:nc_usefulpages/Resources/Private/Language/locallang_db.xml:tx_ncusefulpages_domain_model_page.comments',
'label' => 'LLL:EXT:nc_usefulpages/Resources/Private/Language/locallang_db.xlf:tx_ncusefulpages_domain_model_page.comments',
'config' => array(
'type' => 'inline',
'foreign_table' => 'tx_ncusefulpages_domain_model_comment',
Expand Down
80 changes: 80 additions & 0 deletions Resources/Private/Language/de.locallang.xlf
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<xliff version="1.0">
<file source-language="en" target-language="de" datatype="plaintext" original="messages" date="2019-01-08T10:52:26Z" product-name="nc_usefulpages">
<header/>
<body>
<trans-unit id="Page.index.rateThisPage">
<target state="translated">Beoordeel deze pagina</target>
</trans-unit>
<trans-unit id="Page.index.useful">
<target state="translated">Ja</target>
</trans-unit>
<trans-unit id="Page.index.notUseful">
<target state="translated">Nee</target>
</trans-unit>
<trans-unit id="Page.index.undecided">
<target state="translated">Dit is niet wat ik zocht</target>
</trans-unit>
<trans-unit id="Page.rate.thankYouForRating">
<target state="translated">Bedankt voor uw input.</target>
</trans-unit>
<trans-unit id="Page.rate.addComment.notUseful">
<target state="translated">Wat was er onduidelijk of kan naar uw mening verbeterd worden?</target>
</trans-unit>
<trans-unit id="Page.rate.addComment.undecided">
<target state="translated">Welke informatie zocht je?</target>
</trans-unit>
<trans-unit id="Page.rate.goBack">
<target state="translated">Ga een stap terug</target>
</trans-unit>
<trans-unit id="Page.rate.askAnEmployee">
<target state="translated">Stel je vraag aan een medewerker</target>
</trans-unit>
<trans-unit id="Comment.form.submit">
<target state="translated">Versturen</target>
</trans-unit>
<trans-unit id="Comment.form.contactDataOptional">
<target state="translated">Indien u een reactie wilt ontvangen graag uw naam en e-mailadres invullen.</target>
</trans-unit>
<trans-unit id="Comment.form.authorName">
<target state="translated">Uw naam</target>
</trans-unit>
<trans-unit id="Comment.form.authorEmail">
<target state="translated">Uw e-mail adres</target>
</trans-unit>
<trans-unit id="Rating">
<target state="translated">Beoordeling</target>
</trans-unit>
<trans-unit id="Rating.useful">
<target state="translated">Nuttig</target>
</trans-unit>
<trans-unit id="Rating.notUseful">
<target state="translated">Niet nuttig</target>
</trans-unit>
<trans-unit id="Rating.undecided">
<target state="translated">Onbeslist</target>
</trans-unit>
<trans-unit id="flashMessage.Comment.created.title">
<target state="translated">Opmerking verzonden</target>
</trans-unit>
<trans-unit id="flashMessage.Comment.created">
<target state="translated">Uw reactie is aan onze medewerkers verzonden.</target>
</trans-unit>
<trans-unit id="error.errorsOccurred">
<target state="translated">Er zijn volgende fouten:</target>
</trans-unit>
<trans-unit id="error.Page.indexAction">
<target state="translated">Kon de widget voor pagina beoordeling niet weergegeven.</target>
</trans-unit>
<trans-unit id="error.Page.rateAction">
<target state="translated">Kon u beoordeling over deze pagina niet opslaan.</target>
</trans-unit>
<trans-unit id="error.Comment.createAction">
<target state="translated">Kon je reactie niet opslaan.</target>
</trans-unit>
<trans-unit id="error.code.1221560718">
<target state="translated">De &lt;strong&gt;%s&lt;/strong&gt; veld mag niet leeg zijn!</target>
</trans-unit>
</body>
</file>
</xliff>
50 changes: 50 additions & 0 deletions Resources/Private/Language/de.locallang_db.xlf
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<xliff version="1.0">
<file source-language="en" target-language="de" datatype="plaintext" original="messages" date="2019-01-08T10:52:26Z" product-name="nc_usefulpages">
<header/>
<body>
<trans-unit id="tx_ncusefulpages_domain_model_page">
<target state="translated">Beoordeelde pagina (Useful Pages)</target>
</trans-unit>
<trans-unit id="tx_ncusefulpages_domain_model_page.page_i_d">
<target state="translated">Pagina ID</target>
</trans-unit>
<trans-unit id="tx_ncusefulpages_domain_model_page.page_u_r_l">
<target state="translated">Pagina URL</target>
</trans-unit>
<trans-unit id="tx_ncusefulpages_domain_model_page.page_title">
<target state="translated">Pagina titel</target>
</trans-unit>
<trans-unit id="tx_ncusefulpages_domain_model_page.page_parameters">
<target state="translated">Pagina plugin parameters</target>
</trans-unit>
<trans-unit id="tx_ncusefulpages_domain_model_page.useful">
<target state="translated">Nuttig</target>
</trans-unit>
<trans-unit id="tx_ncusefulpages_domain_model_page.notUseful">
<target state="translated">Niet nuttig</target>
</trans-unit>
<trans-unit id="tx_ncusefulpages_domain_model_page.undecided">
<target state="translated">Onbeslist</target>
</trans-unit>
<trans-unit id="tx_ncusefulpages_domain_model_page.comments">
<target state="translated">Commentaren</target>
</trans-unit>
<trans-unit id="tx_ncusefulpages_domain_model_comment">
<target state="translated">Commentaar (Useful Pages)</target>
</trans-unit>
<trans-unit id="tx_ncusefulpages_domain_model_comment.rating">
<target state="translated">Beoordeling</target>
</trans-unit>
<trans-unit id="tx_ncusefulpages_domain_model_comment.content">
<target state="translated">Inhoud</target>
</trans-unit>
<trans-unit id="tx_ncusefulpages_domain_model_comment.author_name">
<target state="translated">De naam van de auteur</target>
</trans-unit>
<trans-unit id="tx_ncusefulpages_domain_model_comment.author_email">
<target state="translated">De e-mail adres van de auteur</target>
</trans-unit>
</body>
</file>
</xliff>
95 changes: 95 additions & 0 deletions Resources/Private/Language/fr.locallang.xlf
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<xliff version="1.0">
<file source-language="en" target-language="fr" datatype="plaintext" original="messages" date="2019-01-08T10:52:26Z" product-name="nc_usefulpages">
<header/>
<body>
<trans-unit id="Page.index.rateThisPage">
<target state="translated">Ce contenu vous a-t-il été utile ?</target>
</trans-unit>
<trans-unit id="Page.index.honeyPot">
<target state="translated">Ne pas remplir :</target>
</trans-unit>
<trans-unit id="Page.index.useful">
<target state="translated">Oui</target>
</trans-unit>
<trans-unit id="Page.index.notUseful">
<target state="translated">Non</target>
</trans-unit>
<trans-unit id="Page.index.undecided">
<target state="translated">Indécis</target>
</trans-unit>
<trans-unit id="Page.index.submit">
<target state="translated">Valider</target>
</trans-unit>
<trans-unit id="Page.rate.alreadyRated">
<target state="translated">Votre vote a déjà été soumis.</target>
</trans-unit>
<trans-unit id="Page.rate.thankYouForRating">
<target state="translated">Merci d'avoir noté cette page</target>
</trans-unit>
<trans-unit id="Page.rate.addComment.notUseful">
<target state="translated">Ce qui était clair ou pourrait être amélioré ?</target>
</trans-unit>
<trans-unit id="Page.rate.addComment.undecided">
<target state="translated">Qu'est-ce que vous cherchez?</target>
</trans-unit>
<trans-unit id="Page.rate.goBack">
<target state="translated">Retour à la page</target>
</trans-unit>
<trans-unit id="Page.rate.askAnEmployee">
<target state="translated">Demander directement l'un de nos employés</target>
</trans-unit>
<trans-unit id="Comment.form.submit">
<target state="translated">Envoyer</target>
</trans-unit>
<trans-unit id="Comment.form.contactDataOptional">
<target state="translated">Si vous souhaitez recevoir une réaction de notre part, s'il vous plaît entrer également votre nom et votre adresse e-mail</target>
</trans-unit>
<trans-unit id="Comment.form.authorName">
<target state="translated">Nom</target>
</trans-unit>
<trans-unit id="Comment.form.authorEmail">
<target state="translated">E-Mail</target>
</trans-unit>
<trans-unit id="Rating">
<target state="translated">Fr Rating</target>
</trans-unit>
<trans-unit id="Rating.useful">
<target state="translated">Fr Useful</target>
</trans-unit>
<trans-unit id="Rating.notUseful">
<target state="translated">Fr Not useful</target>
</trans-unit>
<trans-unit id="Rating.undecided">
<target state="translated">Fr Undecided</target>
</trans-unit>
<trans-unit id="Rating.honeypot">
<target state="translated">Si vous êtes humain, ne remplissez pas ce champ !</target>
</trans-unit>
<trans-unit id="Rating.alreadyRated">
<target state="translated">Vous avez déjà voté sur cette page.</target>
</trans-unit>
<trans-unit id="flashMessage.Comment.created.title">
<target state="translated">Votre commentaire a été envoyé</target>
</trans-unit>
<trans-unit id="flashMessage.Comment.created">
<target state="translated">Votre commentaire a été envoyé</target>
</trans-unit>
<trans-unit id="error.errorsOccurred">
<target state="translated">Les erreurs suivantes sont survenues :</target>
</trans-unit>
<trans-unit id="error.Page.indexAction">
<target state="translated">Impossible d'afficher le module de notation de la page.</target>
</trans-unit>
<trans-unit id="error.Page.rateAction">
<target state="translated">Impossible de noter la page.</target>
</trans-unit>
<trans-unit id="error.Comment.createAction">
<target state="translated">Impossible de créer votre commentaire.</target>
</trans-unit>
<trans-unit id="error.code.1221560718">
<target state="translated">Le champ &lt;strong&gt;%s&lt;/strong&gt; est obligatoire !</target>
</trans-unit>
</body>
</file>
</xliff>
Loading