forked from mirrors/forgejo
This idea is perhaps a bit more far-fetched. It implements the ability in `lint-locale-usage` to basically fully handle "printf" invocations by transforming format strings to regexps when "%" wildcards are present. Currently, it doesn't cache the transformation from format string to compiled regex because this doesn't make a performance difference (yet), given that most of these wildcards are only hit once or twice. Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/12013 Reviewed-by: Gusted <gusted@noreply.codeberg.org>
17 lines
474 B
Text
17 lines
474 B
Text
# translation tooling test keys
|
|
meta.last_line
|
|
translation_meta.test
|
|
|
|
# models/admin/task.go: instances of $TranslatableMessage.Format
|
|
# this also gets instantiated as a Messenger once
|
|
repo.migrate.migrating_failed.error
|
|
|
|
# modules/setting/ui.go
|
|
themes.names.
|
|
|
|
# services/context/context.go
|
|
relativetime.
|
|
|
|
# templates/repo/settings/webhook/link_menu.tmpl, templates/webhook/new.tmpl: repo.settings.web_hook_name_
|
|
# tests/integration/repo_archive_text_test.go
|
|
repo.settings.
|