Ayush Singh
a276f87e5b
Fixed README.
2022-02-04 13:58:27 +05:30
Ayush Singh
16c65fc226
Fixed ki18n. Was broken previously.
...
No longer returning KLocalizedContex when initializing from QQmlEngine.
Unique Pointer was causing errors.
2022-02-04 13:56:36 +05:30
Ayush Singh
a63078b951
Made pointers const when possible.
...
Also fixed some bugs. Some QStringList were being passed as reference
even though they should be passed by value.
2022-01-31 17:44:11 +05:30
Ayush Singh
c831f48002
Fixed Bug in init_from_engine.
...
Earlier it was registering the KLocalizedContextHolder with a different
KLocalizedContext than the context object.
2022-01-24 12:21:00 +05:30
Ayush Singh
9608434d01
Fixed README.
2022-01-10 23:05:47 +05:30
Ayush Singh
d591023d69
Update README
...
Want to trigger doc.rs build again.
2022-01-10 18:51:39 +05:30
Ayush Singh
cf195191ee
Publishing new version of crate.
2022-01-04 19:30:48 +05:30
Ayush Singh
f04b01d5c8
Fixed Tests.
2022-01-04 19:28:00 +05:30
Ayush Singh
afc034d924
Using cargo readme to generate README.
2022-01-04 19:16:38 +05:30
Ayush Singh
4a5a093961
Fix for Github Action.
...
Added dependency for `kf5-config`
2022-01-04 13:21:37 +05:30
Ayush Singh
22b73b75fc
Removed Copyright from build.rs.
...
I think I accidently copied it when I was copying the build.rs.
2022-01-04 00:46:29 +05:30
Ayush Singh
58b3c81f66
Using kde_frameworks crate now.
2022-01-04 00:44:27 +05:30
Ayush Singh
22e4048f3a
Migrated Rust edition from 2018 to 2021.
...
Also update the crate version since I will be publishing the new version
now.
2022-01-01 20:39:01 +05:30
Ayush Singh
3ed2893739
Added Methods for klocalizedtranslator.
2022-01-01 20:35:14 +05:30
Ayush Singh
47c519e109
Added Comments for klocalizedtranslator.
2022-01-01 20:21:40 +05:30
Ayush Singh
a5ca07bad8
Added klocalizedtranslator.
2022-01-01 14:21:33 +05:30
Ayush Singh
cba1951df6
Changed Categories.
2021-12-23 17:52:05 +05:30
Ayush Singh
8aa4bc7513
Publishing New Crate version.
2021-12-23 17:46:55 +05:30
Ayush Singh
1b8354d05b
Made qmetaobject optional dep.
2021-12-23 17:35:16 +05:30
Ayush Singh
bb82d5fdfc
Added methods to KLocalizedString.
...
Not added tests yet since dunno how to use some of the methods.
2021-12-23 16:07:20 +05:30
Ayush Singh
b237f0e4ff
Removing KCountry for now.
...
Cannot find the package providing KCountry.h in Ubuntu. It is present
with the normal KI18n in Arch Linux so no idea what to do.
2021-12-23 15:14:45 +05:30
Ayush Singh
d328024062
Fix Github Actions.
...
Seems KF5LocaleData is not present in libkf5i18n-dev.
2021-12-16 00:37:22 +05:30
Ayush Singh
10f1b9ab50
Now Linking and Including KF5I18nLocaleData.
...
Required for KCountry.
2021-12-16 00:11:39 +05:30
Ayush Singh
2cdd13d145
Added Methods for KLocalizedString
2021-12-15 22:24:45 +05:30
Ayush Singh
4c2f78d2bb
Added Methods for KLocalizedString.
2021-12-15 21:55:23 +05:30
Ayush Singh
736d5c5a26
Fixed README and docs.
2021-12-14 22:08:19 +05:30
Ayush Singh
0cdfdce567
Updated Readme with new links.
...
Also fixed some examples.
2021-12-14 22:05:29 +05:30
Ayush Singh
3bf93509a3
Started renaming crate
...
Changing from ki18n-rs to ki18n.
Might need more changes after publishing.
2021-12-14 21:55:31 +05:30
Ayush Singh
04aefc80ff
Improved README.
2021-12-14 21:46:12 +05:30
Ayush Singh
7aba3e4bad
Publishing New Version.
2021-12-14 18:30:53 +05:30
Ayush Singh
57fefcc945
Improved Documentation
...
Added some doc tests as examples.
2021-12-14 18:28:10 +05:30
Ayush Singh
cb934ff6dc
Added KLocalizedString Wrapper.
...
Only added applicationDomain related methods.
2021-12-14 18:15:49 +05:30
Ayush Singh
5cf6a34302
Improved Github Action
...
Removed dependencies that don't seem useful
Also copied a lot of stuff from qmetaobject Github Action so that this
action might be used for windows and macos testing.
2021-12-01 21:51:21 +05:30
Ayush Singh
e7d20f21ad
Updated README.
2021-12-01 19:39:36 +05:30
Ayush Singh
85a102431f
Publishing new version
...
Also merged new deps to docs.rs so docs should work now.
2021-12-01 17:40:58 +05:30
Ayush Singh
38ebb314b8
Refactored KLocalizedContext
...
Extracted everything from lib.rs
Also extracted all doc tests to integration tests.
2021-12-01 17:34:45 +05:30
Ayush Singh
0470f05c07
Can now specify Include and Lib path.
...
Using KF5_I18n_INCLUDE_PATH and KF5_I18n_LIBREARY_PATH.
Maybe can improve default detection later.
2021-12-01 07:32:07 +05:30
Ayush Singh
06b13ab5ad
Removing macros from qmethobject.
...
Didn't really help much.
2021-12-01 06:54:07 +05:30
Ayush Singh
b8f1cbaed7
Trying out qmetaobject-rs method for docs.
2021-11-13 09:42:03 +05:30
Ayush Singh
ce6adf77ca
Enabled docs-only feature in cpp_build
...
Can now generate docs inside container. Dunno if it works in actual
crates.io though.
2021-11-13 09:13:02 +05:30
Ayush Singh
d61d5bae1f
Trying to fix docs in docs.rs.
2021-11-13 08:56:39 +05:30
Ayush Singh
73e070aa27
Publishing New version.
...
Bumping version to 1.0.0 since Crates.io is not generating docs for some reason.
2021-11-12 23:16:47 +05:30
Ayush Singh
9a6768a314
Added more methods for KLocalizedContext.
...
Methods added:
1. setTranslationDomain()
2. translationDomain()
2021-11-12 19:27:08 +05:30
Ayush Singh
c1ed08b8ee
Publishing new version.
2021-11-09 20:24:43 +05:30
Ayush Singh
6f74d864e3
init_from_engine now returns the object.
...
Also added method to get the underlying c++ object. Not sure how well it
actually works since not much of KLocalizedContext is actually supposed
to be used from C++.
2021-11-07 12:17:33 +05:30
Ayush Singh
dd88341c4d
Added license in Cargo.toml
...
Doesn't seem like license-file option is working in crates.io.
2021-11-07 12:03:23 +05:30
Ayush Singh
06152cce66
Final commit before publish.
2021-11-01 21:42:24 +05:30
Ayush Singh
dc8417ba09
Fix Display in github action
2021-11-01 21:35:16 +05:30
Ayush Singh
3137771cbf
Ignored the Example in main page.
2021-11-01 21:27:49 +05:30
Ayush Singh
9608d9fd8e
Using Qt include path for QtCore.
...
Would like to avoid having to add Qtcore folder to include seperately
but don't have any solution yet.
2021-11-01 21:21:56 +05:30