diff --git a/Cargo.toml b/Cargo.toml index b95514d..4fb6d24 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,8 +1,8 @@ [package] -name = "ki18n-rs" +name = "ki18n" description = "A crate to use KF5I18n from rust." author = ["Ayush Singh "] -version = "1.0.3" +version = "1.0.4" edition = "2018" links = "KF5I18n" license = "MIT" diff --git a/src/klocalizedcontext.rs b/src/klocalizedcontext.rs index e1b46f8..7454de2 100644 --- a/src/klocalizedcontext.rs +++ b/src/klocalizedcontext.rs @@ -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(); diff --git a/src/klocalizedstring.rs b/src/klocalizedstring.rs index c08396f..0a1ccb0 100644 --- a/src/klocalizedstring.rs +++ b/src/klocalizedstring.rs @@ -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); diff --git a/tests/klocalizedcontext_tests.rs b/tests/klocalizedcontext_tests.rs index 7467a92..277a358 100644 --- a/tests/klocalizedcontext_tests.rs +++ b/tests/klocalizedcontext_tests.rs @@ -1,4 +1,4 @@ -use ki18n_rs::klocalizedcontext::KLocalizedContext; +use ki18n::klocalizedcontext::KLocalizedContext; use qmetaobject::prelude::*; mod common; diff --git a/tests/klocalizedstring_tests.rs b/tests/klocalizedstring_tests.rs index cae9fb8..eccd210 100644 --- a/tests/klocalizedstring_tests.rs +++ b/tests/klocalizedstring_tests.rs @@ -1,4 +1,4 @@ -use ki18n_rs::klocalizedstring::KLocalizedString; +use ki18n::klocalizedstring::KLocalizedString; use std::ffi::CString; #[test]