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
Copy file name to clipboardExpand all lines: README.md
+32-5Lines changed: 32 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,10 +64,6 @@
64
64
> [!WARNING]
65
65
> **Linux** only tested on **Debian 12** on both **X11** & **Wayland**.
66
66
67
-
## Translation Status
68
-
69
-
You can find the current translation status in [TRANSLATION.md](https://github.com/sourcegit-scm/sourcegit/blob/develop/TRANSLATION.md)
70
-
71
67
## How to Use
72
68
73
69
**To use this tool, you need to install Git(>=2.25.1) first.**
@@ -84,7 +80,7 @@ This software creates a folder `$"{System.Environment.SpecialFolder.ApplicationD
84
80
85
81
> [!TIP]
86
82
> * You can open this data storage directory from the main menu `Open Data Storage Directory`.
87
-
> * You can create a `data` folder next to the `SourceGit` executable to force this app to store data (user settings, downloaded avatars and crash logs) into it (Portable-Mode). Only works on Windows.
83
+
> * You can create a `data` folder next to the `SourceGit` executable to force this app to store data (user settings, downloaded avatars and crash logs) into it (Portable-Mode). Only works with Windows packages and Linux AppImages.
88
84
89
85
For **Windows** users:
90
86
@@ -148,6 +144,16 @@ For **Linux** users:
148
144
* Maybe you need to set environment variable `AVALONIA_SCREEN_SCALE_FACTORS`. See https://github.com/AvaloniaUI/Avalonia/wiki/Configuring-X11-per-monitor-DPI.
149
145
* If you can NOT type accented characters, such as `ê`, `ó`, try to set the environment variable `AVALONIA_IM_MODULE` to `none`.
150
146
147
+
## Commandline arguments
148
+
149
+
Users can also launcher `SourceGit` from commandline. Usage:
150
+
151
+
```
152
+
<SOURCEGIT_EXEC> <DIR> // Open repository in existing `SourceGit` instance or a new one
153
+
<SOURCEGIT_EXEC> --file-history <FILE_PATH> // Launch `SourceGit` to see the history of a file
154
+
<SOURCEGIT_EXEC> --blame <FILE_PATH> // Launch `SourceGit` to blame a file (HEAD version only)
155
+
```
156
+
151
157
## OpenAI
152
158
153
159
This software supports using OpenAI or other AI service that has an OpenAI compatible HTTP API to generate commit message. You need configurate the service in `Preference` window.
@@ -234,6 +240,27 @@ Thanks to all the people who contribute.
You can find the current translation status in [TRANSLATION.md](https://github.com/sourcegit-scm/sourcegit/blob/develop/TRANSLATION.md)
246
+
247
+
### Translate Utility Script
248
+
249
+
A script that assists with translations by reading the target language, comparing it with the base language, and going through missing keys one by one, so the translator can provide the translations interactively without needing to check each key manually.
250
+
251
+
#### Usage
252
+
253
+
Check for a given language (e.g., `pt_BR`) and optionally check for missing translations:
254
+
255
+
```bash
256
+
python translate_helper.py pt_BR [--check]
257
+
```
258
+
259
+
-`pt_BR` is the target language code (change as needed), it should correspond to a file named `pt_BR.axaml` in the `src/Resources/Locales/` directory, so you can replace it with any other language code you want to translate, e.g., `de_DE`, `es_ES`, etc.
260
+
-`--check` is an optional flag used to only check for missing keys without prompting for translations, useful for getting a list of missing translations.
261
+
262
+
The script will read the base language file (`en_US.axaml`) and the target language file (e.g., `pt_BR.axaml`), identify missing keys, and prompt you to provide translations for those keys. If the `--check` flag is used, it will only list the missing keys without prompting for translations.
263
+
237
264
## Third-Party Components
238
265
239
266
For detailed license information, see [THIRD-PARTY-LICENSES.md](THIRD-PARTY-LICENSES.md).
0 commit comments