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

@ -18,11 +18,12 @@ fashion. I am currently interested in KDE frameworks that are usable with QML.
## Requirements
This crate requires KF5I18n to be installed or at least present in the system.
### Ubuntu
``` shell
```shell
sudo apt install libkf5i18n-dev
```rust
## Arch Linux
``` shell
```
### 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

@ -14,11 +14,12 @@
//! # Requirements
//! This crate requires KF5I18n to be installed or at least present in the system.
//! ## Ubuntu
//! ``` shell
//! ```shell
//! sudo apt install libkf5i18n-dev
//! ```
//!
//! ## Arch Linux
//! ``` shell
//! ```shell
//! sudo pacman -S ki18n
//! ```
//!