Skip to content

i18n: add TRANSLATORS hints for footer template variables - #8003

Merged
vitormattos merged 1 commit into
LibreSign:mainfrom
lfals:feat/php-translation-hints-973
Aug 22, 2026
Merged

i18n: add TRANSLATORS hints for footer template variables#8003
vitormattos merged 1 commit into
LibreSign:mainfrom
lfals:feat/php-translation-hints-973

Conversation

@lfals

@lfals lfals commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Resolves: #973

📝 Summary

Adds // TRANSLATORS comments for footer template variable metadata and default PDF footer strings in TemplateVariables.php.

Hints give LibreSign context for translators (where the text appears, who sees it, and the signing/validation workflow) without changing any English source strings. This is a small first slice of #973 (max ~10 hints per PR).

Comments will appear in Transifex after the next extraction sync.

🧪 How to test

  1. Open lib/Handler/TemplateVariables.php and confirm each $this->l10n->t(...) in initializeVariablesMetadata() has a // TRANSLATORS comment on the line above.
  2. Confirm no English user-visible strings were changed (diff is comments only).
  3. Optional: open LibreSign → Settings → footer/signature template editor → Available template variables and confirm the UI still shows the same descriptions and defaults.

⚙️ API / Back‑end changes

  • Added PHP TRANSLATORS hints for footer template variable descriptions and default footer sentences used after signing

✅ Checklist

🤖 AI (if applicable)

  • The content of this PR was partially or fully generated using AI

Give translators LibreSign context for footer template metadata and
default PDF footer strings without changing source text.

Signed-off-by: Luis Amorim <luisfelipeamorim@hotmail.com>
@lfals
lfals force-pushed the feat/php-translation-hints-973 branch from c3dcb53 to ad6343a Compare August 21, 2026 23:02
@github-project-automation github-project-automation Bot moved this from 0. Backlog to 1. to do in Roadmap Aug 22, 2026
@vitormattos

Copy link
Copy Markdown
Member

/backport to stable34

@vitormattos

Copy link
Copy Markdown
Member

/backport to stable33

@vitormattos

Copy link
Copy Markdown
Member

/backport to stable32

@vitormattos
vitormattos merged commit 4ce4251 into LibreSign:main Aug 22, 2026
72 checks passed
@github-project-automation github-project-automation Bot moved this from 1. to do to 4. to release in Roadmap Aug 22, 2026
@lfals
lfals deleted the feat/php-translation-hints-973 branch August 25, 2026 14:26
@vitormattos vitormattos added this to the Next Major (35) milestone Aug 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 4. to release

Development

Successfully merging this pull request may close these issues.

Implement translation hints in PHP

2 participants