-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
l10n: convert the md files to fluent #8054
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
the script to convert md => fluent: and a second script to update a bunch of the code |
|
GNU testsuite comparison: |
|
GNU testsuite comparison: |
|
GNU testsuite comparison: |
| @@ -143,6 +143,25 @@ pub fn disable_rust_signal_handlers() -> Result<(), Errno> { | |||
| Ok(()) | |||
| } | |||
|
|
|||
| pub fn get_canonical_util_name(util_name: &str) -> &str { | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, it is duplicated code but i don't know how to fix it yet
|
GNU testsuite comparison: |
| const ABOUT: &str = help_about!("env.md"); | ||
| const USAGE: &str = help_usage!("env.md"); | ||
| const AFTER_HELP: &str = help_section!("after help", "env.md"); | ||
| use uucore::locale::get_message; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would move the import to the other imports.
src/uu/hashsum/src/hashsum.rs
Outdated
| const NAME: &str = "hashsum"; | ||
| const ABOUT: &str = help_about!("hashsum.md"); | ||
| const USAGE: &str = help_usage!("hashsum.md"); | ||
| use uucore::locale::get_message; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would move the import to the other imports.
src/uu/id/src/id.rs
Outdated
| const ABOUT: &str = help_about!("id.md"); | ||
| const USAGE: &str = help_usage!("id.md"); | ||
| const AFTER_HELP: &str = help_section!("after help", "id.md"); | ||
| use uucore::locale::get_message; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would move the import to the other imports.
src/uu/ln/src/ln.rs
Outdated
| const ABOUT: &str = help_about!("ln.md"); | ||
| const USAGE: &str = help_usage!("ln.md"); | ||
| const AFTER_HELP: &str = help_section!("after help", "ln.md"); | ||
| use uucore::locale::get_message; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would move the import to the other imports.
src/uu/mkdir/src/mkdir.rs
Outdated
| const ABOUT: &str = help_about!("mkdir.md"); | ||
| const USAGE: &str = help_usage!("mkdir.md"); | ||
| const AFTER_HELP: &str = help_section!("after help", "mkdir.md"); | ||
| use uucore::locale::get_message; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would move the import to the other imports.
src/uu/mv/src/mv.rs
Outdated
| const ABOUT: &str = help_about!("mv.md"); | ||
| const USAGE: &str = help_usage!("mv.md"); | ||
| const AFTER_HELP: &str = help_section!("after help", "mv.md"); | ||
| use uucore::locale::get_message; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would move the import to the other imports.
src/uu/nice/src/nice.rs
Outdated
|
|
||
| const ABOUT: &str = help_about!("nice.md"); | ||
| const USAGE: &str = help_usage!("nice.md"); | ||
| use uucore::locale::get_message; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would move the import to the other imports.
src/uu/nproc/src/nproc.rs
Outdated
|
|
||
| const ABOUT: &str = help_about!("nproc.md"); | ||
| const USAGE: &str = help_usage!("nproc.md"); | ||
| use uucore::locale::get_message; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would move the import to the other imports.
…sable translations
|
GNU testsuite comparison: |
|
Good work :) |
it requires many changes to make it more robust