rename card-templates.ftl

This commit is contained in:
Damien Elmes 2020-02-14 19:30:58 +10:00
parent 0cc1938657
commit b8e516b47c
2 changed files with 5 additions and 2 deletions

View file

@ -1,6 +1,8 @@
front-side-problem = Front template has a problem: front-side-problem = Front template has a problem:
back-side-problem = Back template has a problem: back-side-problem = Back template has a problem:
## Error messages
no-closing-brackets = no-closing-brackets =
Missing '{$missing}' in '{$tag}' Missing '{$missing}' in '{$tag}'
conditional-not-closed = conditional-not-closed =
@ -12,6 +14,7 @@ conditional-not-open =
no-such-field = no-such-field =
Found '{$found}', but there is no field called '{$field}' Found '{$found}', but there is no field called '{$field}'
# Label of link users can click on
more-info = More information more-info = More information
empty-front = The front of this card is blank. empty-front = The front of this card is blank.

View file

@ -65,7 +65,7 @@ fn data_for_fallback(file: TranslationFile) -> String {
match file { match file {
TranslationFile::Test => include_str!("../../tests/support/test.ftl"), TranslationFile::Test => include_str!("../../tests/support/test.ftl"),
TranslationFile::MediaCheck => include_str!("media-check.ftl"), TranslationFile::MediaCheck => include_str!("media-check.ftl"),
TranslationFile::CardTemplates => include_str!("card-templates.ftl"), TranslationFile::CardTemplates => include_str!("card-template-rendering.ftl"),
} }
.to_string() .to_string()
} }
@ -78,7 +78,7 @@ fn data_for_lang_and_file(
let path = locales.join(dialect_file_locale(dialect)).join(match file { let path = locales.join(dialect_file_locale(dialect)).join(match file {
TranslationFile::Test => "test.ftl", TranslationFile::Test => "test.ftl",
TranslationFile::MediaCheck => "media-check.ftl", TranslationFile::MediaCheck => "media-check.ftl",
TranslationFile::CardTemplates => "card-templates.ftl", TranslationFile::CardTemplates => "card-template-rendering.ftl",
}); });
fs::read_to_string(&path) fs::read_to_string(&path)
.map_err(|e| { .map_err(|e| {