You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
3. Create a branch who's name describe the changes you would like to do. Please be descriptive, do not use titles such as: `update-readme` or `fix-bug`
91
+
```bash
92
+
git switch --create descriptive-branch-name main
93
+
```
94
+
4. Perform the changes you like to do.
95
+
- If you want to add a new language to waytrogen, follow these steps:
96
+
1. Install `gettext`
97
+
98
+
On Arch Linux use:
99
+
```bash
100
+
sudo pacman -S gettext
101
+
```
102
+
On Ubuntu use:
103
+
```bash
104
+
sudo apt install gettext
105
+
```
106
+
On NixOS gettext is already installed.
107
+
108
+
2. Run `cd po`
109
+
2. Add the language code you would like to add using a language code from [here](https://www.gnu.org/software/gettext/manual/html_node/index.html) to the `LINGUAS` file. Keep the file ordered alphabetically.
110
+
4. Create the skeleton `po` file using the following command:
111
+
```bash
112
+
msginit -i waytrogen -o LL.po -l LL_CC.UTF8
113
+
```
114
+
Where `LL` is the language code used in the previous step and `CC` is the country code can be obtained [here](https://www.gnu.org/software/gettext/manual/html_node/Country-Codes.html)
115
+
116
+
5. Modify the skeleton `po` the sections where it says `msgstr ""`
117
+
- If you would like to do code changes, follow these steps:
118
+
1. Install `waytrogen` either from source or from your package manager. This is to install the required schemas. Skip this step if developing on NixOS.
On NixOS, add the following snippet to your `configuration.nix`
130
+
```nix
131
+
programs.direnv = {
132
+
enable = true;
133
+
nix-direnv.enable = true;
134
+
};
135
+
```
136
+
If the nix flake is not loading in properly, run `direnv allow` in the root of the repository to enable the flake.
137
+
138
+
3. Perform the changes you would like to do on `waytrogen`.
139
+
4. Compile and run `waytrogen` with the new changes using the following based on the distribution:
140
+
- If on `NixOS` simply run:
141
+
```bash
142
+
nix build && nix run
143
+
```
144
+
- On any other distribution, run:
145
+
```bash
146
+
cargo run --release
147
+
```
148
+
5. Repeat steps 3 and 4 until you are satisfied with your changes.
149
+
5. Run `cargo clippy` and make sure there are no suggestions.
150
+
6. Format the project using `cargo fmt --all`
151
+
7. Create a commit who's message describes your changes in slightly more detail.
152
+
8. Go to your fork and create a pull request for `nikolaizombie1:waytrogen` on the main branch. If needed, go into detail what do your changes do in the description of the pull request.
45
153
46
154
## Credits
47
155
Logo shape from [Inconify Tabler](https://icon-sets.iconify.design/tabler/) atom.
0 commit comments