Modifying Language Files Modifying Language Files
 

News:

CPG Release 1.6.28
added submissions from {406man}
cleaned up a few PHP (8.4) deprecations
fixed PHP deprecation in calendar
removed security vulnerability
(please upgrade when possible)

Main Menu

Modifying Language Files

Started by joeboxer, November 04, 2006, 06:53:19 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

joeboxer

I would like to change some wording in the english.php file (i.e.: File => Photo, etc).

But I'm concerned that if I change this file directly then in the next update my changes would be overwritten.
On the other hand, if I create a 'new' language then that file would not include prompts referenced in the next version.

I tried adding adding a test entry to the MYTHEME/theme.php file, but that was ignored

(i.e.: $lang_yes = 'Yes'; => $lang_yes = 'Yessssss')

What is the best way to handle this issue? I searched around the forum but was not able to find any reference to it.

Thanks, Joe


Nibbler

You can't do it via the theme because the language is loaded after the theme. You can do it via a plugin however (action: page_start).