I am new to JUCE, and I would like to know if there is a way to set the language for API names automatically for instance to use setColor vs. setColour.
I do believe you mean US vs. English API names
Rail
Correct. I am assuming then, that there is only one spelling that the API supports which is English. I was just wondering if any of the US users of JUCE have possibly requested this type of dual compatibility. The English spelling changes that I have noticed thus far are things like: color vs. colour, centered vs. centred, words with a āzā in US are spelled with an āsā such as initialize vs. initialise and so on. The forum spell checker for instance is complaining that these words are spelled incorrectly as I am typing this. 
I think we all quite enjoy annoying the americans a bit on the spelling thing ![]()
I guess if it bothers you then in your header you could add
using Color = Colour;
but I donāt think itād be worth having aliased method names (I donāt think you can use the āusingā directive to provide an alternative to a method name)
LOL at the spelling thing. You do right, and itās makes a nice change being English TBH. But please explain why the word ācenterā is everywhere? - is it the inevitable spelling creep?
There are lots of places in 3rd party code where itās used, but I donāt think there are many in our own code, are there?
I noticed it in the FlexBox code then did a search, when I realised what it said. I guess we all get used the American spelling, until⦠itās too late⦠
Well yes, FlexBox is a special case because itās a standard, so we used the same property names as the standard does.
Lol at this. Coding with JUCE makes me start thinking in a British accent.
both normalis* and normaliz* are used in the juce api. Would be cool if it was consistent.
(actually the āzā is mainly used in the dsp module, in methods parameters/private members, so that can be tweak without breaking changes)
VIsualStudio should have a petty spell checker for this kind of thing 
why not a mix of different API languages? As a contribution to international understandingā¦
Having an Umlaut in my wifeās name I can tell you there are bigger problems than normalise vs. normalize⦠that would be internationalisation 
(not implying anything juce-specific⦠so completely OT)
Literally just came up against some inconsistency that (as far as Iām aware) is a fairly recent addition:
juce::MathConstants
To be consistent with British English this should be MathsConstants, which was my first assumption as to how it would be spelled. Singular āMathā for Mathematics is an American English construct.
Seems that the u is there to distinguish words with French roots from those with Latin roots.
As for math(s), IMHO the difference is the perception of plural vs singular. The plural invokes the notion of more advanced studies, where the maths branch out to topics with little in common other than the base foundation. The singular invokes the notion of that base foundation, i.e. up to high school level. Therefore MathConstants makes sense since these would be fairly vanilla constants applicable to that base foundation.
Oh man, now Iām TRIGGERED!! my k̶i̶d̶s̶ children have been watching too much US T̶V̶ Television, and now they say āmathā all the time (when they mean āmathsā plural). I canāt take it any longer!!!
- Geofrey.
Thereās also juce::FFTFallback that should be called juce::FFTAutumnbackā¦
And juce::ProgressBar ā juce::ProgressPub
juce::Component::BailoutChecker ā juce::Component::BailoutDraught
I donāt think itās a complexity thing, itās just abbreviations from different points of the source word etymology.
I think the singular āmathematicā comes from the old French āmathematiqueā (which itself comes from Latin). That died out in the UK in the 1600ās so weāre left only with āmathematicsā.
In the UK we shorten that to āmathsā as itās a plural word.
Either the US started using āmathā when āmathematicā was still in circulation or they do a different abbreviation by simply truncating the word āmathematicsā to āmathā.
Oh this is great to see US citizens complain about having to use English. Take it as an opportunity to live like the rest of the world! Similarly, US citizens cannot handle delays in online chats and tend to blame the issue on the foreigner being so distant.
I think the JUICE project has different spellings.
