aboutsummaryrefslogtreecommitdiffstats
path: root/include/language.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-05-24 20:49:23 -0700
committerredmatrix <git@macgirvin.com>2016-05-24 20:49:23 -0700
commit80f2ba640ec528bd43db243122a69e765703b7c0 (patch)
treef1029b2b3143a501734bd49f00fbc95912044602 /include/language.php
parentf9a295a23627cf272e14559b8a11e3780de43ea1 (diff)
downloadvolse-hubzilla-80f2ba640ec528bd43db243122a69e765703b7c0.tar.gz
volse-hubzilla-80f2ba640ec528bd43db243122a69e765703b7c0.tar.bz2
volse-hubzilla-80f2ba640ec528bd43db243122a69e765703b7c0.zip
code cleanup
Diffstat (limited to 'include/language.php')
-rw-r--r--include/language.php6
1 files changed, 0 insertions, 6 deletions
diff --git a/include/language.php b/include/language.php
index 14139e90c..238c23028 100644
--- a/include/language.php
+++ b/include/language.php
@@ -82,13 +82,11 @@ function get_best_language() {
if($arr['preferred'] !== 'unset')
return $arr['preferred'];
- $a = get_app();
return ((isset(App::$config['system']['language'])) ? App::$config['system']['language'] : 'en');
}
function push_lang($language) {
- global $a;
App::$langsave = App::$language;
@@ -104,7 +102,6 @@ function push_lang($language) {
}
function pop_lang() {
- global $a;
if(App::$language === App::$langsave)
return;
@@ -124,7 +121,6 @@ function pop_lang() {
* @param boolean $install (optional) default false
*/
function load_translation_table($lang, $install = false) {
- global $a;
App::$strings = array();
@@ -170,7 +166,6 @@ function load_translation_table($lang, $install = false) {
*
*/
function t($s, $ctx = '') {
- global $a;
$cs = $ctx ? '__ctx:' . $ctx . '__ ' . $s : $s;
if (x(App::$strings, $cs)) {
@@ -205,7 +200,6 @@ function translate_projectname($s) {
* @return string
*/
function tt($singular, $plural, $count, $ctx = ''){
- $a = get_app();
$cs = $ctx ? "__ctx:" . $ctx . "__ " . $singular : $singular;
if (x(App::$strings,$cs)) {