-
Notifications
You must be signed in to change notification settings - Fork 10
YAML #22
Comments
We should also stop using escape codes and instead use the section symbol § or ampersand & followed by the specific integer for the desired colour |
@lukeeey using escape codes is more safer |
@DefinitlyEvil How? All we do is make a function in DP to replace the § or & (the latter being a sater option) with This allows for cleaner translation strings which makes it easier for other people to read, edit and contribute. We could litterally do it with this code: // *some function to read the text from the file*
text = text.replace("&" , "\u00a7"); So |
@lukeeey using |
@DefinitlyEvil Yeah ik i will make an example of a possible change in the For DragonProxy related APIs, do you think the URL could be For example |
Why not make it |
@ApocalypsjeNL I was planning on adding a CNAME to this repository, but i dont mind writing an entire API for DragonProxy |
@lukeeey hosting on Github is better, in case of our server going down. |
We can do some stuff on our server but languages can be on github at least. And we are gonna need the language repository online constantly since i will add a way to download languages from DragonProxy by doing something like
|
I think we should move to YAML for language files. This allows for a few things:
Syntax Highlighting
This can greatly improve readability in both an IDE and on Github itself.
Nested Keys
This also helps readability, and can reduce key name length. We could also iterate through each nested key if we wanted but im not sure where we would use that.
e.g.
error_cls_login_failed
could be changed toNow i think back on what i wrote and im pretty sure im contradicting myself but oh well lets decide together
The text was updated successfully, but these errors were encountered: