Fixed README.

This commit is contained in:
Ayush Singh 2022-02-04 13:58:27 +05:30
parent 16c65fc226
commit a276f87e5b
2 changed files with 10 additions and 8 deletions

View file

@ -20,8 +20,9 @@ This crate requires KF5I18n to be installed or at least present in the system.
### Ubuntu ### Ubuntu
```shell ```shell
sudo apt install libkf5i18n-dev sudo apt install libkf5i18n-dev
```rust ```
## Arch Linux
### Arch Linux
```shell ```shell
sudo pacman -S ki18n sudo pacman -S ki18n
``` ```
@ -34,7 +35,7 @@ The crate searches from KF5I18n using either the environment variables (`KF_VERS
- `qmetaobject` : Enables some methods that require qmetaobject. Most people will need this. - `qmetaobject` : Enables some methods that require qmetaobject. Most people will need this.
## Example ## Example
```rust ```no-run
use cstr::cstr; use cstr::cstr;
use qmetaobject::prelude::*; use qmetaobject::prelude::*;
use ki18n::klocalizedcontext::KLocalizedContext; use ki18n::klocalizedcontext::KLocalizedContext;
@ -70,4 +71,4 @@ fn main() {
"#.into()); "#.into());
engine.exec(); engine.exec();
} }
``` ```rust

View file

@ -17,6 +17,7 @@
//! ```shell //! ```shell
//! sudo apt install libkf5i18n-dev //! sudo apt install libkf5i18n-dev
//! ``` //! ```
//!
//! ## Arch Linux //! ## Arch Linux
//! ```shell //! ```shell
//! sudo pacman -S ki18n //! sudo pacman -S ki18n