Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: create document that explains defining translate-able content (#52) #53

Merged
merged 1 commit into from
Oct 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"buildFlags": ["-tags=tools"]
},
"cSpell.words": [
"astrolib",
"avfs",
"beezledub",
"bodyclose",
Expand Down Expand Up @@ -68,6 +69,7 @@
"shogo",
"sidewalk",
"snivilised",
"Sprintf",
"staticcheck",
"struct",
"structcheck",
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ To maintain localisation of the application, the user must take care to implemen

+ define template struct (__xxxTemplData__) in __src/i18n/messages.go__ and corresponding __Message()__ method. All messages are defined here in the same location, simplifying the message extraction process as all extractable strings occur at the same place. Please see [go-i18n](https://github.com/nicksnyder/go-i18n) for all translation/pluralisation options and other regional sensitive content.

For more detailed workflow instructions relating to i18n, please see [i18n README](./resources/doc/i18n-README.md)
For more detailed workflow instructions relating to i18n, please see [i18n README](./resources/doc/i18n-README.md). For details on how defining translate-able content can be achieved consistently, see [Defining Content](./resources/doc/DEFINING-CONTENT.md)
2 changes: 1 addition & 1 deletion messages.error.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ type PathNotFoundTemplData struct {
func (td PathNotFoundTemplData) Message() *i18n.Message {
return &i18n.Message{
ID: "path-not-found.error",
Description: "Directory or file path is does not exist",
Description: "Directory or file path does not exist",
Other: "{{.Name}} path not found ({{.Path}})",
}
}
Expand Down
File renamed without changes.
Loading
Loading