/**
  * Get the repo name used for VCS from the folder name used in Transvision
  *
  * @param  string $repo repository name
  * @return string Name of the VCS or unchanged $repo by default
  */
 public static function VCSRepoName($repo)
 {
     // Desktop
     if (in_array($repo, Project::getDesktopRepositories())) {
         $repo = strtoupper($repo == 'central' ? 'trunk' : $repo) . '_L10N';
     }
     // Gaia
     if (substr($repo, 0, 4) == 'gaia') {
         $repo = strtoupper($repo);
     }
     return $repo;
 }
Example #2
0
<?php

namespace Transvision;

/* Global variables used across the project */
// Repositories
$repos = Project::getRepositories();
$repos_nice_names = Project::getRepositoriesNames();
$gaia_repos = Project::getGaiaRepositories();
$desktop_repos = Project::getDesktopRepositories();
// Search forms
$form_search_options = ['case_sensitive', 'whole_word', 'perfect_match', 't2t', 'repo', 'search_type'];
$form_checkboxes = array_diff($form_search_options, ['repo', 'search_type']);