website annotate lib/i18n-info.php @ rev 1089
i18n.php: add scripts to auto-generate table
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Jul 27 13:59:05 2012 +0000 (2012-07-27) |
parents | |
children |
rev | line source |
---|---|
al@1089 | 1 <?php |
al@1089 | 2 |
al@1089 | 3 // Build table with i18n info on the SliTaz projects |
al@1089 | 4 function get_info() { |
al@1089 | 5 $infofile = '/var/cache/slitaz/website/i18n.html'; |
al@1089 | 6 if ( ! file_exists("$infofile")) { |
al@1089 | 7 echo "Can't show info!\nSorry..."; |
al@1089 | 8 } |
al@1089 | 9 else { |
al@1089 | 10 $content = file_get_contents("$infofile"); |
al@1089 | 11 echo "$content"; |
al@1089 | 12 } |
al@1089 | 13 } |
al@1089 | 14 |
al@1089 | 15 ?> |