$components_names
$components_names :
This array maps different subfolders name for Desktop products with their display name
Project class
This is data used across the project to remove them from global scope and make this data accessible from other classes.
getRepositoriesNames() : array
Get the list of repositories with their Display name.
The array has repo folder names as keys and Display names as value: ex: ['firefox_ios' => 'Firefox for iOS', 'mozilla_org' => 'mozilla.org']
list of local repositories and their Display names
getRepositoryLocales(string $repository, array $ignored = array()) : array
Get the list of locales available for a repository, exclude a subset if needed
string | $repository | ID of the repository |
array | $ignored | Array of excluded locales |
A sorted list of locales
getReferenceLocale(string $repository) : string
Return the reference locale for a repository We used to have en-GB as reference locale for mozilla.org Now all projects use en-US but we may need this method in the future
string | $repository | Name of the folder for the repository |
Name of the reference locale
getLocaleInContext(string $locale, string $context) : string
Return the correct locale code based on context For example: given "es", returns "es-ES" for Bugzilla.
string | $locale | Name of the current locale |
string | $context | The context we need to use this locale in |
Locale code to use in the requested context