Skip to content

Commit

Permalink
Merge pull request #643 from SergeyBiryukov/651-locale-glossary-slug-…
Browse files Browse the repository at this point in the history
…default

641: Locale glossaries: Use current set slug instead of hardcoded 'default'
  • Loading branch information
toolstack committed Jan 24, 2017
2 parents 70c5316 + 8cea4d6 commit df7d51d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gp-templates/locale.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@

<h2><?php printf( __( 'Active Projects translated to %s', 'glotpress' ), esc_html( $locale->english_name ) ); ?>
<?php if ( $locale_glossary ) : ?>
<a href="<?php echo esc_url( gp_url_join( gp_url( '/languages' ), $locale->slug, 'default', 'glossary' ) ); ?>" class="glossary-link">Locale Glossary</a>
<a href="<?php echo esc_url( gp_url_join( gp_url( '/languages' ), $locale->slug, $current_set_slug, 'glossary' ) ); ?>" class="glossary-link"><?php _e( 'Locale Glossary', 'glotpress' ); ?></a>
<?php elseif ( $can_create_locale_glossary ) : ?>
<a href="<?php echo esc_url( gp_url_join( gp_url( '/languages' ), $locale->slug, 'default', 'glossary' ) ); ?>" class="glossary-link">Create Locale Glossary</a>
<a href="<?php echo esc_url( gp_url_join( gp_url( '/languages' ), $locale->slug, $current_set_slug, 'glossary' ) ); ?>" class="glossary-link"><?php _e( 'Create Locale Glossary', 'glotpress' ); ?></a>
<?php endif; ?>
</h2>

Expand Down

0 comments on commit df7d51d

Please sign in to comment.