From 712ecb04695e1a04c11d08899a5ae39a8110b163 Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Fri, 2 Jun 2023 15:49:02 +0200 Subject: [PATCH] Rename slint-extract-string -> slint-tr-extractor --- Cargo.toml | 2 +- examples/gallery/update_translations.sh | 2 +- tools/{extract-strings => tr-extractor}/Cargo.toml | 4 ++-- tools/{extract-strings => tr-extractor}/README.md | 0 tools/{extract-strings => tr-extractor}/generator.rs | 0 tools/{extract-strings => tr-extractor}/main.rs | 0 tools/{extract-strings => tr-extractor}/messages.rs | 0 7 files changed, 4 insertions(+), 4 deletions(-) rename tools/{extract-strings => tr-extractor}/Cargo.toml (91%) rename tools/{extract-strings => tr-extractor}/README.md (100%) rename tools/{extract-strings => tr-extractor}/generator.rs (100%) rename tools/{extract-strings => tr-extractor}/main.rs (100%) rename tools/{extract-strings => tr-extractor}/messages.rs (100%) diff --git a/Cargo.toml b/Cargo.toml index a4c7b1cf9c3a..6d84f1773618 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -55,7 +55,7 @@ members = [ 'tools/lsp', 'tools/updater', 'tools/viewer', - 'tools/extract-strings', + 'tools/tr-extractor', 'xtask', ] diff --git a/examples/gallery/update_translations.sh b/examples/gallery/update_translations.sh index 2afd77cdffbf..4224f1275690 100755 --- a/examples/gallery/update_translations.sh +++ b/examples/gallery/update_translations.sh @@ -2,7 +2,7 @@ # Run the script, translate, run the script again -find -name \*.slint | xargs cargo run -p slint-extract-strings -- -d gallery -o gallery.pot +find -name \*.slint | xargs cargo run -p slint-tr-extractor -- -d gallery -o gallery.pot for po in lang/*/LC_MESSAGES do msgmerge $po/gallery.po gallery.pot -o $po/gallery.po diff --git a/tools/extract-strings/Cargo.toml b/tools/tr-extractor/Cargo.toml similarity index 91% rename from tools/extract-strings/Cargo.toml rename to tools/tr-extractor/Cargo.toml index 0bffdb193b94..4326215115fb 100644 --- a/tools/extract-strings/Cargo.toml +++ b/tools/tr-extractor/Cargo.toml @@ -2,7 +2,7 @@ # SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-commercial [package] -name = "slint-extract-strings" +name = "slint-tr-extractor" version = "1.0.0" authors = ["Slint Developers "] edition = "2021" @@ -17,5 +17,5 @@ chrono = {version="0.4.24", default-features = false, features = ["clock"] } clap = { version = "4.0", features = ["derive", "wrap_help"] } [[bin]] -name = "slint-extract-strings" +name = "slint-tr-extractor" path = "main.rs" diff --git a/tools/extract-strings/README.md b/tools/tr-extractor/README.md similarity index 100% rename from tools/extract-strings/README.md rename to tools/tr-extractor/README.md diff --git a/tools/extract-strings/generator.rs b/tools/tr-extractor/generator.rs similarity index 100% rename from tools/extract-strings/generator.rs rename to tools/tr-extractor/generator.rs diff --git a/tools/extract-strings/main.rs b/tools/tr-extractor/main.rs similarity index 100% rename from tools/extract-strings/main.rs rename to tools/tr-extractor/main.rs diff --git a/tools/extract-strings/messages.rs b/tools/tr-extractor/messages.rs similarity index 100% rename from tools/extract-strings/messages.rs rename to tools/tr-extractor/messages.rs