Skip to content

Commit 95e5d96

Browse files
authored
Merge branch 'develop' into claude/add-reset-compare-view-Shz6L
2 parents 8849305 + 7cc4f9b commit 95e5d96

82 files changed

Lines changed: 3460 additions & 775 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,6 @@
6464
> [!WARNING]
6565
> **Linux** only tested on **Debian 12** on both **X11** & **Wayland**.
6666
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-
7167
## How to Use
7268

7369
**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
8480

8581
> [!TIP]
8682
> * 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.
8884
8985
For **Windows** users:
9086

@@ -148,6 +144,16 @@ For **Linux** users:
148144
* Maybe you need to set environment variable `AVALONIA_SCREEN_SCALE_FACTORS`. See https://github.com/AvaloniaUI/Avalonia/wiki/Configuring-X11-per-monitor-DPI.
149145
* If you can NOT type accented characters, such as `ê`, `ó`, try to set the environment variable `AVALONIA_IM_MODULE` to `none`.
150146

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+
151157
## OpenAI
152158

153159
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.
234240

235241
[![Contributors](https://contrib.rocks/image?repo=sourcegit-scm/sourcegit&columns=20)](https://github.com/sourcegit-scm/sourcegit/graphs/contributors)
236242

243+
## Translation Status
244+
245+
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+
237264
## Third-Party Components
238265

239266
For detailed license information, see [THIRD-PARTY-LICENSES.md](THIRD-PARTY-LICENSES.md).

THIRD-PARTY-LICENSES.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ The project uses the following third-party libraries or assets
77
### AvaloniaUI
88

99
- **Source**: https://github.com/AvaloniaUI/Avalonia
10-
- **Version**: 11.3.9
10+
- **Version**: 11.3.11
1111
- **License**: MIT License
1212
- **License Link**: https://github.com/AvaloniaUI/Avalonia/blob/master/licence.md
1313

1414
### AvaloniaEdit
1515

1616
- **Source**: https://github.com/AvaloniaUI/AvaloniaEdit
17-
- **Version**: 11.3.0
17+
- **Version**: 11.4.0-rc1
1818
- **License**: MIT License
1919
- **License Link**: https://github.com/AvaloniaUI/AvaloniaEdit/blob/master/LICENSE
2020

@@ -28,7 +28,7 @@ The project uses the following third-party libraries or assets
2828
### TextMateSharp
2929

3030
- **Source**: https://github.com/danipen/TextMateSharp
31-
- **Version**: 1.0.70
31+
- **Version**: 2.0.2
3232
- **License**: MIT License
3333
- **License Link**: https://github.com/danipen/TextMateSharp/blob/master/LICENSE.md
3434

0 commit comments

Comments
 (0)