-
Notifications
You must be signed in to change notification settings - Fork 11
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 #25 from Bollos00/dev
Upgrade to version 1.6.2
- Loading branch information
Showing
11 changed files
with
391 additions
and
167 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
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,46 @@ | ||
# Requirements | ||
|
||
In order to help translating LibreMines, it is necessary to have the [Qt Linguistic Tool](https://doc.qt.io/qt-5/qtlinguist-index.html) installed. | ||
|
||
On Arch Linux and its derivatives, it can be done by installing rhe package `qt5-tools` (or `qt6-tools` for Qt6): | ||
```sh | ||
sudo pacman -S qt5-tools | ||
``` | ||
|
||
On Ubuntu systems, it can be done with: | ||
```sh | ||
sudo apt install qttools5-dev | ||
``` | ||
|
||
# Updating and creating translation files | ||
|
||
In order to update translation files (TS format), on the main directory, run: | ||
```sh | ||
lupdate src -ts etc/translations/libremines_es.ts etc/translations/libremines_pt_BR.ts | ||
``` | ||
|
||
It will update the files `etc/translations/libremines_es.ts` (Spanish) and `etc/translations/libremines_pt_BR.ts` (Brazilian Portuguese) using the source directory `src`. | ||
|
||
To generate a TS file for a new language, just append it to the end of the command above. For example, to generate a TS file for French, run: | ||
```sh | ||
lupdate src -ts etc/translations/libremines_es.ts etc/translations/libremines_pt_BR.ts etc/translations/libremines_fr.ts | ||
``` | ||
|
||
The command above will generate the file `etc/translations/libremines_fr.ts`. | ||
|
||
# Translating the software | ||
|
||
You can use Qt Linguistic tool to translate the software. To do so, open Qt Linguistic and open the TS file you want to translate. | ||
|
||
# Generating QM files from the TS files | ||
|
||
Qt uses files of type QM to translate the application. While TS files are more human readable and easier to edit, QM files are non-human readable and faster to process. To generate the QM files, simply pass the option `UPDATE_TRANSLATIONS="YES"` on the cmake part on the [build process](https://github.com/Bollos00/LibreMines#building): | ||
|
||
```sh | ||
git clone https://github.com/Bollos00/LibreMines.git | ||
cd LibreMines | ||
mkdir build && cd build | ||
cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DUPDATE_TRANSLATIONS="YES" .. | ||
make | ||
|
||
``` |
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
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
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