Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#251 2020-08-09 06:51:59

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 8,448
Website

Re: com_connect - form and contact mailer

After hitting two separate errors on two plugins which use the deprecated EvalElse function I decided to check my other active plugins and found that the function is also used on com_connect return parse(EvalElse($thing, $cond));. Should this be updated to return parse($thing, $cond);?


Yiannis
——————————
neme.org | hblack.net | State Machines | NeMe @ github
I do my best editing after I click on the submit button.

Online

#252 2020-08-09 09:09:16

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 9,972
Website

Re: com_connect - form and contact mailer


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#253 2020-08-09 09:43:49

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 2,229
Website

Re: com_connect - form and contact mailer

Bloke wrote #325259:

Patched.

How backwards compatible is this, for people still using TXP4.7 ?


Where is that emoji for a solar powered submarine when you need it ?

Offline

#254 2020-08-09 11:49:20

etc
Developer
Registered: 2010-11-11
Posts: 4,047
Website

Re: com_connect - form and contact mailer

phiw13 wrote #325260:

How backwards compatible is this, for people still using TXP4.7 ?

Yes, it should work in 4.6+.

Offline

#255 2020-08-09 11:59:38

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 9,972
Website

Re: com_connect - form and contact mailer

It is 4.7+ only. The lang strings are designed for the 4.7 shorter langs identifiers.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#256 2020-08-09 12:05:17

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 2,229
Website

Re: com_connect - form and contact mailer

etc wrote #325267:

Yes, it should work in 4.6+.

Bloke wrote #325268:

It is 4.7+ only. The lang strings are designed for the 4.7 shorter langs identifiers.

selfishly, 4.7+ is OK !
Thank you both.

(we really should start looking at upgrading that site to 4.8.x)


Where is that emoji for a solar powered submarine when you need it ?

Offline

#257 2020-12-18 04:28:48

RedFox
Member
From: Netherlands
Registered: 2005-03-25
Posts: 781
Website

Re: com_connect - form and contact mailer

Where can I download the textpack for Dutch (nl-nl)? If there is one … :o

If not … how can I change the error text (“This form has already …”) into Dutch?

Last edited by RedFox (2020-12-18 04:29:05)

Offline

#258 2020-12-18 10:08:53

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 9,972
Website

Re: com_connect - form and contact mailer

RedFox wrote #327588:

Where can I download the textpack for Dutch (nl-nl)? If there is one … :o

It’s in the plugin already and should auto-apply it when Dutch is installed in your Txp. However, that largely depends on when you installed it and into which version of Textpattern.

The language designators in the plugin are still the ‘old’ 4.6-style ones, but they should gracefully fall back to the new designators. At least I hope that happens. In theory, if you install the plugin on a 4.8+ Textpattern, it’ll store all the packs in the database ready for you so when you add/switch languages they’ll auto-install.

If for some reason the pack hasn’t worked, try this pack that I copied directly from near the top of the plugin code:

#@public
#@language nl-nl
com_connect_checkbox => Keuze
com_connect_contact => Contact
com_connect_email => E-mail adres
com_connect_email_subject => {site} > bericht via de site
com_connect_email_thanks => Hartelijk dank, je bericht is verzonden.
com_connect_field_missing => Je hebt bij <strong>{field}</strong> nog niets ingevuld.
com_connect_format_warning => De invoer {value} in <strong>{field}</strong> heeft niet de juiste vorm.
com_connect_form_expired => Het formulier is verlopen, probeer het opnieuw.
com_connect_form_used => Het formulier is reeds verstuurd, vul het opnieuw in.
com_connect_general_inquiry => Bericht van de site
com_connect_invalid_email => <strong>{email}</strong> is geen geldig e-mail addres.
com_connect_invalid_host => <strong>{host}</strong> is geen geldige e-mail host.
com_connect_invalid_utf8 => <strong>{field}</strong> bevat ongeldige lettertekens.
com_connect_invalid_value => Ongeldige invoer bij <strong>{field}</strong>, <strong>{value}</strong> is niet mogelijk.
com_connect_mail_sorry => Sorry, er kan geen e-mail verzonden worden.
com_connect_maxval_warning => <strong>{field}</strong> mag niet groter zijn dan {value}.
com_connect_max_warning => <strong>{field}</strong> mag niet meer dan {value} lettertekes bevatten.
com_connect_message => Berichttekst
com_connect_minval_warning => <strong>{field}</strong> moet minstens {value} zijn.
com_connect_min_warning => <strong>{field}</strong> moet minstens {value} lettertekens bevatten.
com_connect_name => Naam
com_connect_option => Optie
com_connect_pattern_warning => <strong>{field}</strong> komt niet overeen met de volgorde {value}.
com_connect_radio => Keuzeknop
com_connect_recipient => Ontvanger
com_connect_refresh => Je kunt deze link gebruiken als de pagina niet automatisch ververst.
com_connect_secret => Geheim
com_connect_send => Verzenden
com_connect_send_article => Artikel verzenden
com_connect_spam => We accepteren geen spam!
com_connect_text => Tekst
com_connect_to_missing => <strong>Aan</strong> e-mailadres ontbreekt.

Copy and paste that into the ‘Install from Textpack’ box at the bottom of the Admin>Languages panel and you should be good to go.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#259 2020-12-18 12:58:49

RedFox
Member
From: Netherlands
Registered: 2005-03-25
Posts: 781
Website

Re: com_connect - form and contact mailer

For the very first time I consciously set the correct languages in the language tab of Textpattern. Boy, am I lazy … :o

With “lang=“nl-nl” in the com_connect tag everything works like a charm. As you stated.

Thanks Bloke … :)

Offline

Board footer

Powered by FluxBB