Started renaming crate
Changing from ki18n-rs to ki18n. Might need more changes after publishing.
This commit is contained in:
parent
04aefc80ff
commit
3bf93509a3
|
@ -1,8 +1,8 @@
|
|||
[package]
|
||||
name = "ki18n-rs"
|
||||
name = "ki18n"
|
||||
description = "A crate to use KF5I18n from rust."
|
||||
author = ["Ayush Singh <ayushdevel1325@gmail.com>"]
|
||||
version = "1.0.3"
|
||||
version = "1.0.4"
|
||||
edition = "2018"
|
||||
links = "KF5I18n"
|
||||
license = "MIT"
|
||||
|
|
|
@ -24,7 +24,7 @@ impl KLocalizedContext {
|
|||
/// Initialize KLocalizedContext from Engine.
|
||||
/// #Example
|
||||
/// ```
|
||||
/// use ki18n_rs::klocalizedcontext::KLocalizedContext;
|
||||
/// use ki18n::klocalizedcontext::KLocalizedContext;
|
||||
/// use qmetaobject::prelude::*;
|
||||
///
|
||||
/// let engine = QmlEngine::new();
|
||||
|
@ -50,7 +50,7 @@ impl KLocalizedContext {
|
|||
/// Set Translation Domain for current KLocalizedContext.
|
||||
/// # Example
|
||||
/// ```
|
||||
/// use ki18n_rs::klocalizedcontext::KLocalizedContext;
|
||||
/// use ki18n::klocalizedcontext::KLocalizedContext;
|
||||
/// use qmetaobject::prelude::*;
|
||||
///
|
||||
/// let engine = QmlEngine::new();
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use cpp::{cpp, cpp_class};
|
||||
use qmetaobject::QByteArray;
|
||||
use qmetaobject::{QByteArray, QString, QStringList};
|
||||
use std::ffi::CStr;
|
||||
|
||||
cpp! {{
|
||||
|
@ -19,7 +19,7 @@ impl KLocalizedString {
|
|||
/// # Example
|
||||
/// ```
|
||||
/// use std::ffi::CString;
|
||||
/// use ki18n_rs::prelude::KLocalizedString;
|
||||
/// use ki18n::prelude::KLocalizedString;
|
||||
///
|
||||
/// let domain = CString::new("Application_Domain").unwrap();
|
||||
/// KLocalizedString::set_application_domain(&domain);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use ki18n_rs::klocalizedcontext::KLocalizedContext;
|
||||
use ki18n::klocalizedcontext::KLocalizedContext;
|
||||
use qmetaobject::prelude::*;
|
||||
mod common;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use ki18n_rs::klocalizedstring::KLocalizedString;
|
||||
use ki18n::klocalizedstring::KLocalizedString;
|
||||
use std::ffi::CString;
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Reference in a new issue