En php es asin:
Código PHP:
Ver original<?php
error_reporting(0); // oculta el error que sale cuando no as elegido ningun idioma que en verdad no es un error si no que dice que no as elegido ningun idioma $_SESSION['idioma'] = $_GET['idioma'];
if($_SESSION['idioma'] == "es"){
include ("es.php");
}else{
if($_SESSION['idioma'] == "en"){
include ("en.php");
}else{
// Idioma por defecto es el español
include ("es.php");
}}
?>