About Cockpit's Multilingual #20688
Unanswered
zhaojing1987
asked this question in
Q&A
Replies: 1 comment
-
You can change the language in the "Session" menu at the top right. That setting will be stored as a cookie in your browser, that's about as "similar to a configuration file" as you can get with a browser application.
I suppose you mean on your custom cockpit page? That's certainly not what we do for the "official" cockpit pages, msgids are English there. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to know if there is a way to set the default language in cockpit, which is similar to a configuration file, such as zh_CN. I don't seem to find a way. Cockpit seems to automatically select the default language based on the browser.
![image](https://private-user-images.githubusercontent.com/7624828/344851332-2ca430dd-4978-45f8-b8c1-c3b8703a3642.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5NzUwOTEsIm5iZiI6MTczODk3NDc5MSwicGF0aCI6Ii83NjI0ODI4LzM0NDg1MTMzMi0yY2E0MzBkZC00OTc4LTQ1ZjgtYjhjMS1jM2I4NzAzYTM2NDIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDhUMDAzMzExWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MDlkYWI2MDY1NDY4MmViODQ4MDMzYTZmNzVmNzYwZWUzM2FiZTQwMTg0ZjBmZDg2NjE3MmY4NDI5MWFiNTlmMCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.eT1Hyj3Lo8QxinYF7G3i3t6kwcNwnlOLLFlSMLz4DIg)
![image](https://private-user-images.githubusercontent.com/7624828/344851365-eb1c9c78-0ed9-41f5-b8cc-9f83023e0c40.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5NzUwOTEsIm5iZiI6MTczODk3NDc5MSwicGF0aCI6Ii83NjI0ODI4LzM0NDg1MTM2NS1lYjFjOWM3OC0wZWQ5LTQxZjUtYjhjYy05ZjgzMDIzZTBjNDAucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDhUMDAzMzExWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MTZmMjNlYmE4NDY0NTZjMjVmM2VlNjBlOWNjMDdiMWU3MDMzMzRjMTdhNTVkNzA5MTljNDliY2Q3OWJmN2I1NSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.JOGFFSHDvOKsy6SfxM44MwpoNI7TsRApjyNHcaJhoPI)
My problem now is that my msgid is similar to a variable. I translated it into en_US and zh_CN, but when I set the browser language to a language other than these two, it shows msgid, which is not what I need. I know there is a problem with this method, but it seems difficult to modify it now. Is there any solution?
Beta Was this translation helpful? Give feedback.
All reactions