translations

This commit is contained in:
Vasil Kolev 2014-10-07 16:17:21 +03:00 committed by Openfest
parent 3d699d9852
commit 8d43ac211b
3 changed files with 16 additions and 6 deletions

View File

@ -9,19 +9,19 @@
</p> </p>
</div> </div>
<div class="col4"> <div class="col4">
<h3>Програма</h3> <h3><?php pll_e('Програма')?></h3>
<p> <p>
<?php wp_nav_menu(array('theme_location' => 'footer-schedule', 'items_wrap' => '%3$s<br/>' )); ?> <?php wp_nav_menu(array('theme_location' => 'footer-schedule', 'items_wrap' => '%3$s<br/>' )); ?>
</p> </p>
</div> </div>
<div class="col4"> <div class="col4">
<h3>Други</h3> <h3><?php pll_e('Други')?></h3>
<p> <p>
<?php wp_nav_menu(array('theme_location' => 'footer-others', 'items_wrap' => '%3$s<br/>' )); ?> <?php wp_nav_menu(array('theme_location' => 'footer-others', 'items_wrap' => '%3$s<br/>' )); ?>
</p> </p>
</div> </div>
<div class="col4"> <div class="col4">
<h3>Последвайте ни в:</h3> <h3><?php pll_e('Последвайте ни в:')?></h3>
<p> <p>
<?php wp_nav_menu(array('theme_location' => 'footer-followus', 'items_wrap' => '%3$s<br/>' )); ?> <?php wp_nav_menu(array('theme_location' => 'footer-followus', 'items_wrap' => '%3$s<br/>' )); ?>
</p> </p>

View File

@ -63,7 +63,7 @@ function sh_latest_posts($atts){
# Create shortcode for sponsors # Create shortcode for sponsors
function sponsors_shortcode() { function sponsors_shortcode() {
$result= '<h3>Спонсори</h3>'; $result= '<h3>'.pll__('Спонсори').'</h3>';
$sponsors_args = array( 'post_type' => 'sponsors', 'orderby' => 'rand' ); $sponsors_args = array( 'post_type' => 'sponsors', 'orderby' => 'rand' );
@ -90,7 +90,7 @@ function sponsors_shortcode() {
# Create shortcode for transport methods # Create shortcode for transport methods
function transport_shortcode() { function transport_shortcode() {
$result= '<section class="content"><h3>Място: Интерпред, София, България</h3>'; $result= '<section class="content"><h3>'.pll__('Място').': '.pll__('Интерпред, София, България').'</h3>';
$transport_args = array( 'post_type' => 'transportation' ); $transport_args = array( 'post_type' => 'transportation' );
$transport = new WP_Query( $transport_args ); $transport = new WP_Query( $transport_args );
@ -219,5 +219,15 @@ function transportation_posttype() {
} }
add_action( 'init', 'transportation_posttype' ); add_action( 'init', 'transportation_posttype' );
pll_register_string('Schedule','Програма');
pll_register_string('Others','Други');
pll_register_string('follow','Последвайте ни в:');
pll_register_string('venue','Интерпред, София, България');
pll_register_string('venue_w','Място');
pll_register_string('sponsors_w','Спонсори');
pll_register_string('time','1-ви и 2-ри ноември 2014 г.');
?> ?>

View File

@ -3,7 +3,7 @@ if ($wp->query_vars['pagename']!='home' && $wp->query_vars['pagename']!='home-2'
?> ?>
<div class="col-right"> <div class="col-right">
<h3>1-и и 2-и Ноември, 2014г. <br /> Интерпред, София, България</h3> <h3><?php pll_e('1-ви и 2-ри ноември 2014 г.');?> <br /> <?php pll_e('Интерпред, София, България');?></h3>
<div class="separator"></div> <div class="separator"></div>
<?php echo do_shortcode( '[sponsors]' ); ?> <?php echo do_shortcode( '[sponsors]' ); ?>
<div class="separator"></div> <div class="separator"></div>