Textpattern CMS support forum

You are not logged in. Register | Login | Help

#11 2017-11-09 21:14:15

makss
Plugin Author
From: Ukraine
Registered: 2008-10-21
Posts: 351
Website

Re: Better way to set new textpack related data?

philwareham wrote #307744:

skin_step_failure => Theme {skin} failed at {step} stage....

…then isn’t {step} hardcoded in English – such as ‘import’ and ‘edit’? That would not be desirable.

possible variant:

gTxt(
    skin_step_failure',
    array(
        '{skin}' => $this->skin,
        '{step}' => gTxt('import'),
    )
);

aks_cron : Cron inside Textpattern | aks_article : extended article_custom tag
aks_cache : cache for TxP | aks_dragdrop : Drag&Drop categories (article, link, image, file)

Offline

#12 2017-11-09 21:55:53

makss
Plugin Author
From: Ukraine
Registered: 2008-10-21
Posts: 351
Website

Re: Better way to set new textpack related data?

Bloke wrote #307753:

The only unknown is what to do with custom/plugin strings. Installing/removing files in the filesystem is messy so maybe we need to rethink this a bit?

Which existing plugins support multiple languages? I would like to test one idea on real plugins.


aks_cron : Cron inside Textpattern | aks_article : extended article_custom tag
aks_cache : cache for TxP | aks_dragdrop : Drag&Drop categories (article, link, image, file)

Offline

#13 2017-11-09 22:39:22

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 7,752
Website

Re: Better way to set new textpack related data?

makss wrote #307755:

Which existing plugins support multiple languages? I would like to test one idea on real plugins.

com_connect does (on the public side at least).

For both admin side and public side, ied_plugin_composer is a good candidate (though it needs some visual tweaking for 4.7.0).


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

#14 2017-11-10 08:10:58

NicolasGraph
Plugin Author
From: France
Registered: 2008-07-24
Posts: 781
Website

Re: Better way to set new textpack related data?

makss wrote #307754:

possible variant:

gTxt(...

You’ve been faster than me.
It seems clever, mainly where ‘nested’ textpack items already exist.


Nicolas
Follow me on Twitter and GitHub!
Multiple edits are usually to correct my frenglish…

Offline

Board footer

Powered by FluxBB