mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-30 03:19:11 +08:00
MetaData Setting: Set these strings as translatable
This commit is contained in:
@ -49,6 +49,8 @@ settings:
|
||||
title: Title
|
||||
fromH1: Text Header 1
|
||||
fromYaml: From YAML 'title'
|
||||
exampleTitle: Pigeons
|
||||
exampleBody: I think they might be evil. Even more evil than penguins.
|
||||
privacy: Privacy Policy
|
||||
terms: Terms and Conditions
|
||||
experimental:
|
||||
|
@ -24,10 +24,9 @@ class _NoteMetadataSettingsScreenState
|
||||
Widget build(BuildContext context) {
|
||||
var textTheme = Theme.of(context).textTheme;
|
||||
|
||||
// FIXME: Translate these
|
||||
var note = Note(null, "fileName.md");
|
||||
note.title = "Pigeons";
|
||||
note.body = _buildBody();
|
||||
note.title = tr("settings.noteMetaData.exampleTitle");
|
||||
note.body = tr("settings.noteMetaData.exampleBody");
|
||||
note.created = DateTime.now().add(const Duration(days: -1));
|
||||
note.modified = DateTime.now();
|
||||
|
||||
@ -114,11 +113,6 @@ class _NoteMetadataSettingsScreenState
|
||||
body: SingleChildScrollView(child: body),
|
||||
);
|
||||
}
|
||||
|
||||
// FIXME: Add some random text
|
||||
String _buildBody() {
|
||||
return "I think they might be evil. Even more evil than penguins.";
|
||||
}
|
||||
}
|
||||
|
||||
class NoteOutputExample extends StatelessWidget {
|
||||
|
Reference in New Issue
Block a user