hello! i am building a website with a multi-language feature.
it would be hard if each of the pages are to be created manually for each language so instead, i have different php files for each language containing define() statements like
<?php define("hello", HELLO); define ("there", THERE); ?>
and the webpages will only contain constants in between the HTML tags like
<h1><?php echo HELLO; ?></h1> <h2><?php echo THERE; ?></h2>
and depending on the language choice of the user, the language php file (en.php, fr.php..) will be included in the page.
by default, the en.php (english text) will be the included file.
i'm not sure about this but will search engines still be able to index the page? like it would see the english text and not just the constants?
also, is there a way so that the other translations will also be indexed?
thanks!