/* index.php */
require_once('region.php');
require_once('es.php');
region.php
-region-related info (also sets $regionLang = 'es';
) and es.php
-mostly Spanish translations. Second file needed if language is Spanish 'es'
or it would be a different file eg 'en-us.php'
es.php
inside region.php
and why? Also how?
es.php
?/* index.php */
require_once('region.php');
/* region.php */
require_once('es.php');
I would include es.php into region.php
Because, region.php decide my language whether it is spanish or not. If it is not my language, i can change the language file
We suppose in region.php;
//region.php
if(myRegion()=="Turkey"){
require_once('turkish.php');
}else if(myRegion()=="Spania"){
require_once('es.php');
}
so we avoid unnecessary file loads
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.