-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #481 from str4d/release-0.10.0
Release 0.10.0
- Loading branch information
Showing
18 changed files
with
75 additions
and
20 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# How to contribute to `rage` | ||
|
||
## Localization | ||
|
||
Locale files are stored in the `age/i18n/` and `rage/i18n/` directories. Check | ||
there to see if your locale already exists! | ||
|
||
We use [Fluent](https://projectfluent.org/) for localization; check that website | ||
for details about the format. In general, strings look like this: | ||
|
||
```fluent | ||
some-unique-identifier = Translate the content on this side of the '=' symbol. | ||
another-unique-identifier = | ||
This is a multiline string that can contain one or more paragraphs. Like | ||
above, the 'another-unique-identifier =' part is not translated, but this | ||
text is. | ||
Individual paragraphs should be line-wrapped at roughly the same number of | ||
characters as the corresponding English text, so that it looks roughly the | ||
same. Remember that {-terms} and {$variables} won't necessarily be the same | ||
length once filled in. | ||
``` | ||
|
||
To update strings for an existing locale `your-locale`: | ||
- Compare `age/i18n/en-US/age.ftl` with `age/i18n/your-locale/age.ftl`, and copy | ||
over any missing strings (look for unique identifiers that don't appear in the | ||
file for `your-locale`). | ||
- Compare `rage/i18n/en-US/age.ftl` with `rage/i18n/your-locale/age.ftl`, and | ||
copy over any missing strings. | ||
- Edit `age/i18n/your-locale/age.ftl` and `rage/i18n/your-locale/age.ftl` to | ||
replace the English text with the appropriate translations for your locale. | ||
|
||
To translate strings into a new locale `your-locale`: | ||
- Create the directories `age/i18n/your-locale/` and `rage/i18n/your-locale/`. | ||
- Copy `age/i18n/en-US/age.ftl` to `age/i18n/your-locale/age.ftl`. | ||
- Copy `rage/i18n/en-US/age.ftl` to `rage/i18n/your-locale/age.ftl`. | ||
- Edit `age/i18n/your-locale/age.ftl` and `rage/i18n/your-locale/age.ftl` to | ||
replace the English text with the appropriate translations for your locale. | ||
|
||
To test locally, use `cargo run --bin BINARY_NAME -- ARGUMENTS`. If you don't | ||
have `your-locale` enabled globally, set the `LANG` environment variable to | ||
force it: | ||
``` | ||
$ LANG=your-locale cargo run --bin rage -- --help | ||
$ LANG=your-locale cargo run --bin rage -- ARGUMENTS | ||
$ LANG=your-locale cargo run --bin rage-keygen -- --help | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
bin.name = "rage-keygen" | ||
args = "--version" | ||
stdout = """ | ||
rage-keygen 0.9.2 | ||
rage-keygen 0.10.0 | ||
""" | ||
stderr = "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
bin.name = "rage-mount" | ||
args = "--version" | ||
stdout = """ | ||
rage-mount 0.9.2 | ||
rage-mount 0.10.0 | ||
""" | ||
stderr = "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
bin.name = "rage" | ||
args = "--version" | ||
stdout = """ | ||
rage 0.9.2 | ||
rage 0.10.0 | ||
""" | ||
stderr = "" |