-
Notifications
You must be signed in to change notification settings - Fork 229
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #77 from SanjaySunil/dev
v3.0.0 updates.
- Loading branch information
Showing
66 changed files
with
10,432 additions
and
2,491 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
root = true | ||
|
||
[*] | ||
indent_style = tab | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
# insert_final_newline = true | ||
insert_final_newline = true | ||
indent_style = space | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
assets/libs* | ||
assets/js/discord.12.1.1.min.js* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"commonjs": true, | ||
"es2021": true, | ||
"node": true | ||
}, | ||
"extends": [ | ||
"google" | ||
], | ||
"parserOptions": { | ||
"ecmaVersion": 12 | ||
}, | ||
"rules": { | ||
"require-jsdoc": 0, | ||
"max-len": 0, | ||
"no-invalid-this": 0, | ||
"no-unused-vars": 0, | ||
"prefer-const": 0 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* text=auto eol=lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,135 @@ | ||
# How to translate BetterDiscordPanel | ||
# How to translate BetterDiscordPanel | ||
|
||
## 1. Fork the Repository | ||
### Fork the Repository | ||
|
||
![fork](../assets/images/contribution/fork.png) | ||
|
||
## 2. Add your language | ||
## BetterDiscordPanel | ||
|
||
### 1. Open the translation file [locales.js](https://github.com/SanjaySunil/BetterDiscordPanel/blob/master/assets/js/locales.js) | ||
Open the `locales.js` file containing all the translations of the panel. | ||
|
||
### 2. Translate | ||
Copy this into the translation file, and start translating. | ||
|
||
```js | ||
langCode: { | ||
langCode: "en", | ||
language: "English", | ||
// ========================= PANEL ========================= | ||
status: { | ||
loading: "Loading ...", | ||
}, | ||
headings: { | ||
profile: "Discord Bot", | ||
guildName: "Chats", | ||
settings: "Settings" | ||
}, | ||
"sub-headings": { | ||
about: "About", | ||
tools: "Tools", | ||
info: "Info", | ||
}, | ||
navbar: { | ||
profileNav: "Profile", | ||
chatNav: "Chat", | ||
lastMessagesNav: "Last Messages", | ||
infoNav: "Chat / Server Info", | ||
settingsNav: "Settings", | ||
lightDark: "Light / Dark Mode", | ||
logoutTitle: "Logout", | ||
}, | ||
text: { | ||
channelNameLabel: "Chat", | ||
fileSent: "sent some file(s)", | ||
attachmentTxt: "Attachments", | ||
privateMessages: "DM", | ||
profileSection: { | ||
name: "Name", | ||
discrim: "Discrim", | ||
id: "ID", | ||
guilds: "Guilds", | ||
createdAt: "Created At" | ||
}, | ||
settingsSection: { | ||
createBotInvite: "Create Bot Invite", | ||
eval: "EVAL", | ||
languages: "Languages", | ||
}, | ||
}, | ||
buttons: { | ||
clearLastMessages: "Clear Last Messages", | ||
editToken: "Logout", | ||
refreshChat: "Refresh chat", | ||
send: "Send", | ||
leave: "Leave server", | ||
invite: "Invite", | ||
}, | ||
// ========================= DISCORD ========================= | ||
infos: { | ||
owner: "Owner", | ||
members: "Members", | ||
vChannels: "Channels (voice)", | ||
tChannels: "Channels (text)", | ||
roles: "Roles", | ||
channels: "Channels", | ||
emojis: "Emojis", | ||
}, | ||
errors: { | ||
error: "ERROR", | ||
dm: "ERROR : DM", | ||
emptyMsg: "Empty Message!", | ||
missingPermissions: "Missing Permissions!", | ||
}, | ||
token: { | ||
confirmation: "Are you sure you want to logout?", | ||
invalid: "Token is Invalid. Please try again.", | ||
}, | ||
messageType: { | ||
serverJoin: "joined the server.", | ||
pin: "pinned a message.", | ||
channelNews: "added a remote channel news.", | ||
boost: "boosted the server.", | ||
}, | ||
fileType: { | ||
unknown: "unknown", | ||
img: "image", | ||
doc: "document", | ||
pdf: "pdf", | ||
video: "video", | ||
audio: "audio", | ||
}, | ||
}, | ||
``` | ||
|
||
### 3. Upload Changes | ||
|
||
![uploadchanges](../assets/images/contribution/upload.png) | ||
|
||
### 4. Make a pull request | ||
|
||
![pull-request](../assets/images/contribution/create_pull.png) | ||
|
||
## Control Panel (BetterDiscordPanel.cmd) | ||
|
||
### 1. Add your language | ||
Create a new folder in the `locales` directory and copy the template.json file. | ||
|
||
![addfolder](../assets/images/contribution/openlocales.png) | ||
|
||
## 3. Translate | ||
### 2. Translate | ||
Use the English Translation file to help you translate the phrases required for the language. | ||
|
||
![translation](../assets/images/contribution/translate.png) | ||
|
||
## 4. Upload Changes | ||
### 3. Upload Changes | ||
|
||
![uploadchanges](../assets/images/contribution/upload.png) | ||
|
||
## 5. Make a pull request | ||
### 4. Make a pull request | ||
|
||
![pull-request](../assets/images/contribution/create_pull.png) | ||
|
||
*** | ||
|
||
## If you encounter any problems, please email sanjaysunil@protonmail.com or message me on [Discord](https://discordapp.com/users/732336924559278181). | ||
#### If you encounter any problems, please create a new issue. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: npm | ||
directory: "/electron" | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
open-pull-requests-limit: 10 | ||
target-branch: dev | ||
target-branch: master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
// Add code here that requires Node |
Oops, something went wrong.