l10n: convert the md files to fluent#8054
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.
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.
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.
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.
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.
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.
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.
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.
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.
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