Fixed README.
This commit is contained in:
parent
16c65fc226
commit
a276f87e5b
13
README.md
13
README.md
|
@ -18,11 +18,12 @@ fashion. I am currently interested in KDE frameworks that are usable with QML.
|
||||||
## Requirements
|
## Requirements
|
||||||
This crate requires KF5I18n to be installed or at least present in the system.
|
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
|
|
||||||
``` shell
|
### Arch Linux
|
||||||
|
```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
|
||||||
|
|
|
@ -14,11 +14,12 @@
|
||||||
//! # Requirements
|
//! # Requirements
|
||||||
//! This crate requires KF5I18n to be installed or at least present in the system.
|
//! 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
|
||||||
//! ```
|
//! ```
|
||||||
|
//!
|
||||||
//! ## Arch Linux
|
//! ## Arch Linux
|
||||||
//! ``` shell
|
//! ```shell
|
||||||
//! sudo pacman -S ki18n
|
//! sudo pacman -S ki18n
|
||||||
//! ```
|
//! ```
|
||||||
//!
|
//!
|
||||||
|
|
Loading…
Reference in a new issue