CyR1en / Minecordbot

A powerful way to bridge Minecraft and Discord.
https://minecordbot.cyr1en.com
GNU General Public License v3.0
20 stars 15 forks source link

[Request] Bot Messages translatable. #70

Closed TheIntelloBox closed 6 years ago

TheIntelloBox commented 6 years ago

Hello,

Bot messages like : "Response | mar. janv. 9, 2018 at 5:55 PM" or "Listing" could be translated. It would be nice to have it in the lang.yml.

Thanks. ^^

CyR1en commented 6 years ago

The only thing that the .yml localization files can translate on that footer is the left side. Date time is handled by discord, and it depends on the language that you have on your discord setting.

But I will add an ability to update the footer messages (the left side). I call this message Response Levels. Here are the response levels

        LEVEL_1 {
            public Color getColor() {
                return new Color(92, 184, 92);
            }

            public String getFooter() {
                return "Success";
            }
        }, LEVEL_2 {
            public Color getColor() {
                return new Color(243, 119, 54);
            }

            public String getFooter() {
                return "Warning";
            }
        }, LEVEL_3 {
            public Color getColor() {
                return new Color(188, 75, 79);
            }

            public String getFooter() {
                return "Error";
            }
        }, DEFAULT {
            public Color getColor() {
                return null;
            }

            public String getFooter() {
                return "Response";
            }
        };
TheIntelloBox commented 6 years ago

Fantastic.