Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Feedback to: Textpattern CMS 4.7.2 Released
jakob wrote #315780:
the ini file needs changing before installing Textpattern.
AFAIK, any change in .ini files made after the language install should be detected.
It may make sense to create a de-ch.ini file with an appropriate own language code at the top to avoid the quotes being overwritten by subsequent updates (right, Oleg?).
That could work but, to be honest, I have never really delved into language management.
Offline
Re: Feedback to: Textpattern CMS 4.7.2 Released
GugUser wrote #315781:
This is a controversial discussion because not all people likes these quotes «». There is also the other alternative for German »«. The question would be, how could this be solved so that everyone can choose which version they want?
Is there any mileage in being able to override strings on a per-language (file) basis as GugUser suggests – either in config.php or as a single .ini file somewhere that can act as an override. e.g.:
[@de]
txt_quote_double_close = "«"
txt_quote_double_open = "»"
txt_quote_single_close = "‘"
txt_quote_single_open = "‚"
[@fr]
hidden="Caché"
...
The contents of this well-known file could be included just like we do plugin strings on-the-fly with the proviso that you can only override strings that are already present (so we know their group) and thus only in languages that are installed. Any strings or language identifiers that are not represented in the DB are ignored.
Would something like that be beneficial to catch corner cases like this, or is there some better mechanism? Perhaps a de-ch language file is necessary, but are the conventions an accepted standard?
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
Re: Feedback to: Textpattern CMS 4.7.2 Released
All could work, but having it in config.php means it doesn’t run the risk of being overseen when updating to a newer version of textpattern.
TXP Builders – finely-crafted code, design and txp
Offline