Doubling and renaming flags does not change any behavior. You can use "es" for menu and "catalan" for lang by now. Which use case will be fixed with your suggestion to use "es-lang" for lang and "ca-dic" for other options? Last but not least: Isn't "ca" somewhat arbitrary for Catalan language? Let's assume Calabria has its own language and wants to uses "ca" as well.
I don't speak about doubling resources. I'm speaking about following standards codes. Please, read ISO 639-1 languages codes and ISO 3166-1 country codes.
As you see, "ca" ISO language code is assigned to Catalan, and "ca" country code is assigned to Canada. So, we have two lists, codes for languages and codes for countries.
I claim the right to use "ca" code for Catalan in Scrabble3D when we are talking about languages, or language standard set profiles.
So, I see two possible aproaches:
1st double resources and adapt code of Scrabble3D, modify "CountriID to resourcename" and create a new "LangID to resource" function.
2nd, keep resources uniques and adapt code to "LangID to resourcename".
About 2nd aproach, I write a pseudocode. I think it's clear enough, but I write again the general idea.
A.- Keep all flag resources together, a single copy of each flag. Just rename "collision" languages codes (catalonia -> ca-lang) B.- Code a new "LangID to resourcename" function. This function must use "xx-lang" resource if exists. Otherwise, it uses "xx" resource (as CountryID to resourcename do it now).
I know it's a minor issue for you. But keeping standards is very important.
Zitat von Bussinchen im Beitrag #19Please, let's keep the language flags anyway! Pleeeeeeeeeaaaaaaaase!!!!
+1, please, keep flags at Scrabble3D, :))))
We can use catalonia instead ca language code for now. But please, Scotty, improve "LanguageID to resourcename mapping in the future. I think a copy of current "CountryID to resourcename" function and a little hacking giving priority to "xx-lang.jpg" resources will be enough.
Wir hoffen, dass dir unser Forum gefällt und du dich hier genauso wohlfühlst wie wir.
Um dir und den anderen Mitgliedern das Bestmögliche bieten zu können, würden wir das Forum gern werbefrei gestalten und mit tollen neuen Extras ergänzen.
Wenn du uns dabei unterstützen möchtest, kannst du mit Hilfe einer kleinen Spende dazu beitragen,
diese Änderungen zu finanzieren.