{"id":21023441,"url":"https://github.com/quasarapp/qtnativetr","last_synced_at":"2026-04-28T14:05:03.275Z","repository":{"id":83043173,"uuid":"486226742","full_name":"QuasarApp/QtNativeTr","owner":"QuasarApp","description":"This is library that contains all native qt translation files","archived":false,"fork":false,"pushed_at":"2022-05-17T07:37:24.000Z","size":82,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-12-31T00:29:10.001Z","etag":null,"topics":["qt","translations"],"latest_commit_sha":null,"homepage":"https://quasarapp.ddns.net:3031/docs/QuasarApp/QtNativeTr/latest/","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/QuasarApp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-27T14:29:40.000Z","updated_at":"2022-05-21T20:43:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"7d651e57-c163-424f-8947-a09323e27341","html_url":"https://github.com/QuasarApp/QtNativeTr","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":"QuasarApp/CMakeProject","purl":"pkg:github/QuasarApp/QtNativeTr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuasarApp%2FQtNativeTr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuasarApp%2FQtNativeTr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuasarApp%2FQtNativeTr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuasarApp%2FQtNativeTr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/QuasarApp","download_url":"https://codeload.github.com/QuasarApp/QtNativeTr/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuasarApp%2FQtNativeTr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32383791,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T11:25:28.583Z","status":"ssl_error","status_checked_at":"2026-04-28T11:25:05.435Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["qt","translations"],"created_at":"2024-11-19T11:18:10.493Z","updated_at":"2026-04-28T14:05:03.257Z","avatar_url":"https://github.com/QuasarApp.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Qt Native Translations library\n\nThis is a simple cmake script that generate and build C++ library with all qm translations file of qt.\nThis is may need to static qt builds and builds for mobile devices like a Android or ios.\n\n\n## Build and Incude\n\n* cd yourRepo\n* git submodule add https://github.com/QuasarApp/QtNativeTr # add the repository of QtNativeTr into your repo like submodule\n* git submodule update --init --recursive\n* Include in your CMakeLists.txt file the main CMakeLists.txt file of QtNativeTr library\n    ``` cmake\n    add_subdirectory(QtNativeTr)\n    ```\n* link the QtNativeTr library to your target\n    ```cmake\n    target_link_libraries(yourLib PUBLIC QtNativeTr)\n    ```\n* rebuild yuor project\n\n## Usage \n\nSimple include resource to your project looks like this:\n\n``` cpp\n#include \u003cQtNativeTr.h\u003e\n\nint main () {\n\n    // init all included resources\n    QtNativeTr::init();\n    \n    return 0;\n}\n\n```\n\nAll qm files availabel to the **:/QtNativeTr/languages/** path.\nFor example:\n* :/QtNativeTr/tr/assistant_cs.qm\n\nIf you want to add dynamic loading for qt translation you can user [QuasarAppLib::Locales](https://quasarapp.ddns.net:3031/docs/QuasarApp/QuasarAppLib/latest/classQuasarAppUtils_1_1Locales.html) class.\n\n### Exmaple of use with QuasarAppLib::Locales\n\n```cpp\n#include \u003cQtNativeTr.h\u003e\n#include \u003cquasarapp.h\u003e\n\nint main () {\n\n    // init all included resources\n    QtNativeTr::init();\n    QuasarAppUtils::Locales::init(QLocale::system(), {\":/QtNativeTr/languages/\"});\n    \n    return 0;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquasarapp%2Fqtnativetr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquasarapp%2Fqtnativetr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquasarapp%2Fqtnativetr/lists"}