Re: Some question and suggestion about language files |
Subject: Re: Some question and suggestion about language files by Vaughan on 2008/8/17 8:32:06 think that could be an idea there steve. if a lang define isn't actually defined, then the system uses the english define. but we have a problem that it would mean the whole english file is loaded which could conflict with the other language defines. could we have the core automatically prefix lang defines with a country code? say _AM_NOPERM gets prefixed with _ENGB_AM_NOPERM then we could essentially do this, and if _PTBR_AM_NOPERM is not found, then _ENGB_AM_NOPERM is used. or could we use file_get_contents() to get the english file, and select that define what's missing from the string value that file_get_contents() retrieves.. that way the whole language file isn't gonna cause any issues. i think there's a few ways we might be able to improve on in this area. |