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
```shell
sudo apt install libkf5i18n-dev
```rust
## Arch Linux
```
### Arch Linux
```shell
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.
## Example
```rust
```no-run
use cstr::cstr;
use qmetaobject::prelude::*;
use ki18n::klocalizedcontext::KLocalizedContext;
@ -70,4 +71,4 @@ fn main() {
"#.into());
engine.exec();
}
```
```rust

View file

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