Making WordPress.org


Ignore:
Timestamp:
05/22/2020 10:29:39 AM (5 years ago)
Author:
ocean90
Message:

Translate: Retrieve the specific GlotPress locale for locale variants.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/stats-plugin-themes-overview.php

    r9618 r9903  
    55$breadcrumb   = array();
    66$breadcrumb[] = gp_link_get( '/', __( 'Locales' ) );
    7 $breadcrumb[] = gp_link_get( gp_url_join( '/locale', $gp_locale->slug, $locale_slug ), esc_html( $gp_locale->english_name ) );
     7$breadcrumb[] = gp_link_get( gp_url_join( '/locale', $gp_locale->slug ), esc_html( $gp_locale->english_name ) );
    88$breadcrumb[] = trim( ucwords( $view ), 's' ) . ' translation status overview';
    99gp_breadcrumb( $breadcrumb );
     
    3636            <?php
    3737            foreach ( $items as $slug => $details ) {
    38                 $project_link = gp_url( gp_url_join( 'locale', $gp_locale->slug, $locale_slug, $details->project->path ) );
     38                $project_link = gp_url( gp_url_join( 'locale', $gp_locale->slug, $details->project->path ) );
    3939                // Themes get a shortcut..
    4040                if ( 'themes' == $view ) {
    41                     $project_link = gp_url( gp_url_join( 'projects', $details->project->path, $gp_locale->slug, $locale_slug ) );
     41                    $project_link = gp_url( gp_url_join( 'projects', $details->project->path, $gp_locale->slug ) );
    4242                }
    4343
Note: See TracChangeset for help on using the changeset viewer.