diff options
| author | bors <bors@rust-lang.org> | 2023-03-12 03:51:21 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-03-12 03:51:21 +0000 |
| commit | 501ad021b9a4fb2cd6a39e0302d22f169f6166b0 (patch) | |
| tree | bffad5946cf9907e2b53f2df5b8af997deb153ab /compiler/rustc_query_system/src/dep_graph/mod.rs | |
| parent | 9455a5591b1435dfc9a88b2922d0dfc155d9614f (diff) | |
| parent | 7e2ecb3cd84eae18e838624feeb2e5cf46b9cc57 (diff) | |
| download | rust-501ad021b9a4fb2cd6a39e0302d22f169f6166b0.tar.gz rust-501ad021b9a4fb2cd6a39e0302d22f169f6166b0.zip | |
Auto merge of #108682 - est31:simplify_dirs, r=davidtwco
Simplify message paths This makes it easier to open the messages file. Right now I have to first click on the `locales` dir to open it, and then on the `en-US.ftl` file. `Cargo.toml` and `build.rs` files are also in the top level, and I think there should not be more than one file, so a directory isn't really needed. The [chosen strategy for pontoon adoption](https://rust-lang.zulipchat.com/#narrow/stream/336883-i18n/topic/pontoon.20and.20next.20steps) is out of tree. Even if this descision is changed in the future, the `messages.ftl` approach is also compatible with non-english translations living in-tree, as long as the non-english translations don't live in the `compiler/rustc_foo/` directories but in different ones. That would also be helpful for grepability purposes. The commit was the result of automated changes: ``` for p in compiler/rustc_*; do mv $p/locales/en-US.ftl $p/messages.ftl; rmdir $p/locales; done for p in compiler/rustc_*; do sed -i "s#\.\./locales/en-US.ftl#../messages.ftl#" $p/src/lib.rs; done ``` r? `@davidtwco`
Diffstat (limited to 'compiler/rustc_query_system/src/dep_graph/mod.rs')
0 files changed, 0 insertions, 0 deletions
