The term "Mandarin" is borrowed directly from Portuguese. The Portuguese word mandarim, derived from the Sanskrit word mantrin "counselor or minister", was first used to refer to the Chinese bureaucratic officials. The Portuguese then translated guānhuà as "the language of the mandarins" or "the mandarin language".