Skip to content

Fix typos in translations of config value message#14289

Open
felixrindt wants to merge 1 commit intosphinx-doc:masterfrom
felixrindt:patch-1
Open

Fix typos in translations of config value message#14289
felixrindt wants to merge 1 commit intosphinx-doc:masterfrom
felixrindt:patch-1

Conversation

@felixrindt
Copy link

I don't know why this makes my (completely unrelated project's) build fail, but it does.

@jayaddison
Copy link
Contributor

@felixrindt looks good - please could you check for any other affected instances (in this locale and others)?

@felixrindt
Copy link
Author

felixrindt commented Feb 15, 2026

@felixrindt looks good - please could you check for any other affected instances (in this locale and others)?

Sure, sorry for not doing that in the first place. As I said, I don't know why my project suddenly complained (and only about this one line).
I cobbled together a script that actually found more typos. I'll amend to my commit.

Output of the script

Actually, my initial fix missed a typo in the attribute access as well ^^

Total .po files: 107
OK files: 105
Files with placeholder mismatches: 2
Bad files:
  ./sphinx/locale/fa/LC_MESSAGES/sphinx.po
  ./sphinx/locale/el/LC_MESSAGES/sphinx.po

Details for bad files:

 ./sphinx/locale/fa/LC_MESSAGES/sphinx.po
  msgid : The config value `{name}' has type `{current.__name__}', defaults to `{default.__name__}'.
  msgstr: مقدار پیکربندی '{name}' دارای نوع '{current.__name__}' است، حالت پیش‌فرض {permitted} است.
    tokens msgid : ['{name}', '{current.__name__}', '{default.__name__}']
    tokens msgstr: ['{name}', '{current.__name__}', '{permitted}']


 ./sphinx/locale/el/LC_MESSAGES/sphinx.po
  msgid : The config value `{name}' has type `{current.__name__}'; expected {permitted}.
  msgstr: Η τιμή παραμετροποίησης '{name}' έχει τύπο '{current__name__}'; αναμενόμενη {permitted}.
    tokens msgid : ['{name}', '{current.__name__}', '{permitted}']
    tokens msgstr: ['{name}', '{current__name__}', '{permitted}']

  msgid : The config value `{name}' has type `{current.__name__}', defaults to `{default.__name__}'.
  msgstr: Η τιμή παραμετροποίησης '{name}' έχει τύπο '{current__name__}', αρχικοποίηση σε '{default__name__}'.
    tokens msgid : ['{name}', '{current.__name__}', '{default.__name__}']
    tokens msgstr: ['{name}', '{current__name__}', '{default__name__}']

I don't know why this makes my build fail, but it does.
@felixrindt felixrindt changed the title Fix typo in Greek translation of config value message Fix typos in translations of config value message Feb 15, 2026
@AA-Turner
Copy link
Member

This should be done on Transifex, no?

Why does it make your build fail? What language are you using?

@felixrindt
Copy link
Author

felixrindt commented Feb 15, 2026

This should be done on Transifex, no?

I'm not familiar with Transifex and whether it can deal with changes commited directly.

Why does it make your build fail? What language are you using?

I was fiddling around with my django projects build-system, uv creating a venv inside my project folder. When I ran django-admin compilemessages, it tried to compile every po-file in site-packages. It then complained with this message:

[...]
Execution of msgfmt failed: /home/me/myproject/.venv/lib/python3.14/site-packages/sphinx/locale/el/LC_MESSAGES/sphinx.po:311: 'msgstr' is not a valid Python brace format string, unlike 'msgid'. Reason: The directive number 0 is unterminated.
/home/me/myproject/.venv/lib/python3.14/site-packages/sphinx/locale/el/LC_MESSAGES/sphinx.po:318: a format specification for argument 'current.__name__' doesn't exist in 'msgstr'
msgfmt: found 2 fatal errors
[...]

Version info

  • gettext says its v 1.0
  • django is 6.0.2
  • sphinx 8.2.3

I tried to pinpoint a version change but now I can't reproduce the error. 🤷

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants