Skip to content

Commit

Permalink
5643 replaced hardcoded language with lang vars
Browse files Browse the repository at this point in the history
  • Loading branch information
gregrgay committed Mar 6, 2016
1 parent 5c1f181 commit e0523d2
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion themes/mobile/include/header.tmpl.php
Expand Up @@ -236,7 +236,7 @@
<?php for ($i=0; $i<$num_pages; $i++): ?>
<?php if($i==0): ?>

<a id="subnavlist-link" class="content-expand" href="javascript:void(0);"> Topics in <?php echo $this->sub_level_pages[$i]['title']; ?></a>
<a id="subnavlist-link" class="content-expand" href="javascript:void(0);"><?php echo _AT('topics_in'); ?> <?php echo $this->sub_level_pages[$i]['title']; ?></a>
<?php endif; ?>
<?php endfor;?>
</div>
Expand Down
2 changes: 1 addition & 1 deletion themes/mobile/instructor/content/index.tmpl.php
Expand Up @@ -21,7 +21,7 @@

<form name="form" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<div class="table-surround">
<table class="data" summary="Parent topics and subtopics">
<table class="data" summary="<?php echo _AT('parent_and_sub_topics'); ?>">
<thead>
<tr>
<th scope="col">&nbsp;</th>
Expand Down
2 changes: 1 addition & 1 deletion themes/mobile/login.tmpl.php
Expand Up @@ -99,7 +99,7 @@ function encrypt_password() {
<?php
if($_config['allow_registration'] ==1){
?>
Don't have an account?
<p><?php echo _AT('registration_text'); ?></p>
<form action="registration.php" method="get">
<?php if (defined('AT_EMAIL_CONFIRMATION') && AT_EMAIL_CONFIRMATION): ?>
<p><?php echo _AT('confirm_account_text'); ?></p>
Expand Down
6 changes: 3 additions & 3 deletions themes/mobile/users/index.tmpl.php
Expand Up @@ -62,17 +62,17 @@
if(isset($this->all_news[$i]['thumb'])){
echo '<li><img src="'.$this->all_news[$i]['thumb'].'" alt="'.$this->all_news[$i]['alt'].'" title="'.$this->all_news[$i]['alt'].'"/> ' . $this->all_news[$i]['link'] .' <br />';
if($this->all_news[$i]['object']['course_id']){
echo '<span class="current_list_date_time">'.'Posted in&nbsp;'.'<a href="bounce.php?course='.$this->all_news[$i]['object']['course_id'].'">'.$this->all_news[$i]['course'].'</a>';
echo '<span class="current_list_date_time">'._AT('posted_in').'&nbsp;'.'<a href="bounce.php?course='.$this->all_news[$i]['object']['course_id'].'">'.$this->all_news[$i]['course'].'</a>';
}
echo '&nbsp;on&nbsp;'.AT_DATE('%F %j, %g:%i',$this->all_news[$i]['time']).'</span></li>';
echo '&nbsp;'._AT('on').'&nbsp;'.AT_DATE('%F %j, %g:%i',$this->all_news[$i]['time']).'</span></li>';
}
echo '</ul>';
}
}
if($perpage == count($this->all_news)){ ?>
<div id="show-pages"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?p=1"><?php echo _AT('show_pages'); ?></a></div>
<?php }else{ ?>
<div id="show-all"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?p=all"><?php echo "Show All"; ?></a></div>
<div id="show-all"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?p=all"><?php echo _AT('show_all'); ?></a></div>
<?php } ?>
<br /><br />
</div>
Expand Down
2 changes: 1 addition & 1 deletion themes/simplified_desktop/include/header.tmpl.php
Expand Up @@ -235,7 +235,7 @@
<?php for ($i=0; $i<$num_pages; $i++): ?>
<?php if($i==0): ?>

<!-- <a id="subnavlist-link" class="content-expand" href="javascript:void(0);"> Topics in <?php echo $this->sub_level_pages[$i]['title']; ?></a> -->
<!-- <a id="subnavlist-link" class="content-expand" href="javascript:void(0);"> <?php echo _AT('topics_in'); ?> <?php echo $this->sub_level_pages[$i]['title']; ?></a> -->
<?php endif; ?>
<?php endfor;?>
</div>
Expand Down
Expand Up @@ -21,7 +21,7 @@

<form name="form" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<div class="table-surround">
<table class="data" summary="Parent topics and subtopics">
<table class="data" summary="<?php echo _AT('parent_and_sub_topics'); ?>">
<thead>
<tr>
<th scope="col">&nbsp;</th>
Expand Down
6 changes: 3 additions & 3 deletions themes/simplified_desktop/users/index.tmpl.php
Expand Up @@ -63,17 +63,17 @@
if(isset($this->all_news[$i]['thumb'])){
echo '<li><img src="'.$this->all_news[$i]['thumb'].'" alt="'.$this->all_news[$i]['alt'].'" title="'.$this->all_news[$i]['alt'].'"/> ' . $this->all_news[$i]['link'] .' <br />';
if($this->all_news[$i]['object']['course_id']){
echo '<span class="current_list_date_time">'.'Posted in&nbsp;'.'<a href="bounce.php?course='.$this->all_news[$i]['object']['course_id'].'">'.$this->all_news[$i]['course'].'</a>';
echo '<span class="current_list_date_time">'._AT('posted_in').'&nbsp;'.'<a href="bounce.php?course='.$this->all_news[$i]['object']['course_id'].'">'.$this->all_news[$i]['course'].'</a>';
}
echo '&nbsp;on&nbsp;'.AT_DATE('%F %j, %g:%i',$this->all_news[$i]['time']).'</span></li>';
echo '&nbsp;'._AT('on').'&nbsp;'.AT_DATE('%F %j, %g:%i',$this->all_news[$i]['time']).'</span></li>';
}
echo '</ul>';
}
}
if($perpage == count($this->all_news)){ ?>
<div id="show-pages"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?p=1"><?php echo _AT('show_pages'); ?></a></div>
<?php }else{ ?>
<div id="show-all"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?p=all"><?php echo "Show All"; ?></a></div>
<div id="show-all"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?p=all"><?php echo _AT('show_all'); ?></a></div>
<?php } ?>
<br /><br />
</div>
Expand Down

0 comments on commit e0523d2

Please sign in to comment.