Skip to content

Conversation

@theMimolet
Copy link
Contributor

Hi !

I was wondering to myself if it was possible to add translations to the motd.
So I tested a bit, and here you go ! 👍

It's still a draft PR because I still need to fully translate it in french (ofc) and I'm not sure about my changes in env.sh.

Any feedback is welcome ! 😄
(Of course, if it works out here, it will also be added to Bazzite and Aurora)

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces translation support for the MOTD, starting with French. The implementation involves determining the system language and loading the appropriate template and tips files. The changes look good overall, but I found a critical issue in env.sh where a relative path is used to find the list of available languages. This will cause the language detection to always fall back to English. I've left a specific comment with a suggested fix to address this.

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant