CC-1960: Internationalize Airtime / Support translations

- created locale table
- create locale model
- set default locale in pref table
This commit is contained in:
denise 2012-11-29 18:21:03 -05:00
parent 81c9b4d862
commit 2f0c6b702a
13 changed files with 1891 additions and 13 deletions

View file

@ -0,0 +1,17 @@
<?php
class Application_Model_Locale
{
public static function getLocales()
{
$con = Propel::getConnection();
$sql = "SELECT * FROM cc_locale";
$res = $con->query($sql)->fetchAll();
$out = array();
foreach ($res as $r) {
$out[$r["locale_code"]] = $r["locale_lang"];
}
return $out;
}
}