Started renaming crate

Changing from ki18n-rs to ki18n.
Might need more changes after publishing.
This commit is contained in:
Ayush Singh 2021-12-14 21:55:31 +05:30
parent 04aefc80ff
commit 3bf93509a3
5 changed files with 8 additions and 8 deletions

View file

@ -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"

View file

@ -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();

View file

@ -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);

View file

@ -1,4 +1,4 @@
use ki18n_rs::klocalizedcontext::KLocalizedContext;
use ki18n::klocalizedcontext::KLocalizedContext;
use qmetaobject::prelude::*;
mod common;

View file

@ -1,4 +1,4 @@
use ki18n_rs::klocalizedstring::KLocalizedString;
use ki18n::klocalizedstring::KLocalizedString;
use std::ffi::CString;
#[test]