Created
February 13, 2017 14:15
-
-
Save bbrochier/e80012d587115bd9dec7004c911f223f to your computer and use it in GitHub Desktop.
Traduction php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (isset($_GET['lang']) && $_GET['lang'] == 'en') { | |
include 'traductions_en.php'; | |
} else { | |
include 'traductions_fr.php'; | |
} | |
?> | |
<html> | |
<body> | |
<?php echo $traduction['contact-us']; ?> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$traduction = [ | |
'contact-us' => 'Contactez us by phone', | |
]; | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$traduction = [ | |
'contact-us' => 'Contactez-nous par téléphone', | |
]; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment