Making WordPress.org


Ignore:
Timestamp:
09/11/2015 07:21:33 AM (11 years ago)
Author:
dd32
Message:

Translate: On the Waiting tab, display the full project hierarchy of names. Since there's no context as to what the parent is, a Plugins project would simply display 'Development (trunk)' instead of (for example) 'Beta Tester - Development (trunk)'.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/translate.wordpress.org/includes/gp-plugins/wporg-log-warnings-to-slack.php

    r1871 r1873  
    9191                $project = GP::$project->get( $original->project_id );
    9292
    93                 $project_name = $project->name;
    94                 do {
    95                         $parent_project = GP::$project->get( $project->parent_project_id );
    96                         $project_name = $parent_project->name . ' - ' . $project_name;
    97                 } while ( $parent_project && $parent_project->parent_project_id );
     93                $project_name = $sub_project->name;
     94                $parent_project_id = $project->parent_project_id;
     95                while ( $parent_project_id ) {
     96                        $parent_project = GP::$project->get( $parent_project_id );
     97                        $parent_project_id = $parent_project->parent_project_id;
     98                        $project_name = "{$parent_project->name} - {$project_name}";
     99                }
    98100
    99101                $project_url = gp_url_join( gp_url_public_root(), 'projects', $project->path, $set->locale, '/', $set->slug ) . '?filters[warnings]=yes&sort[by]=translation_date_added';
Note: See TracChangeset for help on using the changeset viewer.