Created
July 21, 2015 15:20
-
-
Save d3v2a/9acce8e7714a5a014951 to your computer and use it in GitHub Desktop.
get diff in hesk language file
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 | |
//put this file in the root of language folder | |
define('IN_SCRIPT',1); | |
include 'en/text.php'; | |
$en_langs = $hesklang; | |
$hesklang = null; | |
include 'fr/text.php'; | |
print 'non trouvé dans en'; | |
$infr = array_diff_key($hesklang, $en_langs); | |
print '<pre>'; | |
foreach ($infr as $key => $value) { | |
print '\\\\'.htmlentities($value).'<br>'; | |
print '$hesklang[\''.$key.'\']=\'\';<br>'; | |
} | |
print '</pre>'; | |
print 'non trouvé dans fr'; | |
$inen = array_diff_key($en_langs, $hesklang); | |
print '<pre>'; | |
foreach ($inen as $key => $value) { | |
print '\\\\'.htmlentities($value).'<br>'; | |
print '$hesklang[\''.$key.'\']=\'\';<br>'; | |
} | |
print '</pre>'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment