Update list of locales for Bugzilla, move logic to getBugzillaLocaleField

I realized that the list of locales with different names between mozilla.org and Mozilla Localizations is much longer than I thought.

So, moving the logic inside the class to avoid having a different array to maintain, adding an optional parameter. The only other user of that function is json/index.php, behavior is not changed since the default component is 'www'.

Also removing one warning from logs ($links is defined only for projects)