-
Notifications
You must be signed in to change notification settings - Fork 55
Translating Nitrokey App
jans23 edited this page Nov 6, 2017
·
6 revisions
- Install Linguist tool with its dependencies (with Qt Framework; will download about 300 MB)
sudo apt install qttools5-dev-tools
qttools5-dev-tools: /usr/lib/x86_64-linux-gnu/qt5/bin/linguist
- Run the Linguist tool from Applications menu. If it is not available there here is a path to binary from Ubuntu 17.04 - please paste it into the terminal:
./usr/lib/x86_64-linux-gnu/qt5/bin/linguist
In case the path would be changed by the Ubuntu maintainers please use the following commands to find current package and path:
sudo apt install apt-file
apt-file find bin/linguist
which should result in:
$ apt-file find bin/linguist
qt4-dev-tools: /usr/bin/linguist-qt4
qt4-dev-tools: /usr/lib/x86_64-linux-gnu/qt4/bin/linguist
qtchooser: /usr/bin/linguist
qttools5-dev-tools: /usr/lib/x86_64-linux-gnu/qt5/bin/linguist
- When finished the translation process one can remove the program with:
sudo apt remove qttools5-dev-tools # to remove Linguist
sudo apt autoremove # to remove unused dependencies from the OS
With Brew.sh
- Download and extract Nitrokey App: link
- Open terminal
- Paste this into the terminal (see brew's main page for detailed instructions):
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- Install Qt (will download 300MB):
brew install qt
Make a note of the downloaded version, e.g. here it is 5.9.2:
Summary
/usr/local/Cellar/qt/5.9.2: 9,021 files, 279.6MB
- Run Linguist - a translation support tool for Qt from the directory mentioned earlier (note the path may be different due to other version number of Qt framework):
/usr/local/Cellar/qt/5.9.2/libexec/Linguist.app/Contents/MacOS/Linguist
- When finished the translation process one can remove the program with:
brew uninstall qt
It is possible to download the Qt binaries directly from vendor's site. Please download and run Qt's Online installers from Download site (might require to register a free account on Qt's site). In the installer please choose only latest Qt version. If possible please choose only Tools section to avoid downloading too much data.
With Linguist application:
- Open translation file (
*.ts
) in Nitrokey App directory for given language - eg.i18n/nitrokey_en.ts
(here) - Translate the strings and mark them as finished
- Save and send the changed
*.ts
files in compressed archive tosupport AT nitrokey DOT com
or make a pull request to Github.
Detailed manual for Linguist (and the translation process as a whole) is available at Qt Framework's site and especially here.