Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#25 2013-08-15 20:45:35

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Front side theme - text direction

Bloke wrote:

Oh yeah, forgot that pull requests are merged by hand. Fair enough.

In addition we use CI that run automated tests, and that we do have tests. Notice that, hopefully green, Travis build status badge in the README? Travis also emails all of us about failed tests, and automatically checks any incoming pull requests.

I’ve even added a test for the direction and the language code. I still need to add newline style check, and one for string length. Possibly one for HTML and unescaped special characters too (strings do need to be sanitized for HTML — chevrons and straight quotes need to either be escaped, or unicode alternative used).

Offline

#26 2013-08-15 22:24:46

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: Front side theme - text direction

Bloke wrote:

, but the problem we’ve had in the past is that some translators who see the English ‘ltr’ entry and don’t know what it means have translated the text “lang direction” instead, which messes things up for the admin side, among other things.

At least on the admin side, a fail-safe could be to check the value: it must be equal to ltr or rtl. If not, it defaults back to one of those 2 values.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#27 2013-08-16 06:42:17

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: Front side theme - text direction

Jukka added tests to the GitHub repo which prevents the wrong value, or missing values, being put into lang_dir string (Travis CI will send each of the devs a message if the test fails). Along with us peer reviewing any new pull requests, that problem should cease to exist.

Travis CI is great.

Offline

Board footer

Powered by FluxBB