Closed cfm closed 11 months ago
Code-wise, everything looks great here! That said, I'm honestly not sure how I feel about linking to a .json file in the documentation, rather than listing the supported languages directly. I just feel like if I were installing SecureDrop for the first time, and had to load a separate link and scan through a .json file to see the list of supported languages, I would be slightly put-off by it.
I personally would be in favor of enumerating the languages by hand, but I'm not dead-set on that, and would welcome discussion and differing opinions.
Thanks for letting me provoke your opinion, @nathandyer. :-) Would you be comfortable with either of the alternatives (2) or (3) in https://github.com/freedomofpress/securedrop/issues/6917#issuecomment-1689091116?
@cfm I think both (2) and (3) are good options, with a slight preference for (2). From my understanding, the result for the end-user would be the same (essentially) with either of those options, which is my main concern. That said, option (2) feels like a slightly cleaner implementation from a technical perspective.
Great. Tomorrow I'll tack that onto freedomofpress/securedrop#6954 and then update the link here.
This was a good call, @nathandyer. b5f6073d31216096eef727770b40f40093501b2a has the change, and I've left comments on the diff here to demonstrate GitHub's automatic rendering of the i18n.rst
file.
b5f6073d31216096eef727770b40f40093501b2a works as expected after freedomofpress/securedrop#6954, so this is ready to go with your approval, @nathandyer.
Status
Ready for review
Description of Changes
Removes the
l10n.txt
include generated bysecuredrop
'si18n_tool.py update-docs
with a link tosecuredrop
'si18n.rst
, which is always authoritative for the set of languages we currently support and which GitHub will render automatically.Towards, but can be reviewed and merged independently of, freedomofpress/securedrop#6917.
Testing
Release
No special considerations.
Checklist (Optional)
make docs-lint
) passed locallymake docs-linkcheck
) passedmake docs
) docs at http://localhost:8000