3 ms·
At least here in Brazil it's relatively common to mix English defaults and Portuguese variable names. So a Django class declaration would look something like:
by Carioca 9y ago
At least here in Brazil it's relatively common to mix English defaults and Portuguese variable names. So a Django class declaration would look something like:
class Pessoa(models.Model):
idade = models.IntegerField()
nome = models.CharField()
Then some things wind up having mixed-language variable names:
class PessoaForm(forms.ModelForm):
- scardine 9y agoPortuguese is rooted in Latin so it uses the Latin alphabet, the parent was concerned about other alphabets. Off course there are the accented characters but those are just transliterated to ASCII. Even when the language accepts unicode identifiers (like Python or Javascript) they are not transliterated to ASCII so "função" is not the same as "funcao". Everybody just sticks with ASCII for identifiers (occasionally people throw the Greek letter for pi or lambda in a formula but not on my watch). The only thing more awful than these "Portunglish" codebases are Brazilian projects trying to stick with English names only. These are often full of misleading translations - for example using "Budget" instead of "Quote" because in Brazilian Portuguese the word "Orçamento" means both. Very confusing.