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