CC-1960: Internationalize Airtime / Support translations
- created locale table - create locale model - set default locale in pref table
This commit is contained in:
parent
81c9b4d862
commit
2f0c6b702a
13 changed files with 1891 additions and 13 deletions
17
airtime_mvc/application/models/Locale.php
Normal file
17
airtime_mvc/application/models/Locale.php
Normal 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;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue