Discussion
Loading...

Post

Log in
  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Terence Eden
Terence Eden
@Edent@mastodon.social  ·  activity timestamp 2 days ago

🆕 blog! “Should HTML's code blocks be translated?”

I was recently prompted to test my blog's layout when rendered in right-to-left text. Running a website through an automatic translator into a language like Arabic or Hebrew will show you any weird little layout glitches which might occur.

But mechanical translation is a bit of an unthinking brute. In this example, I had a…

👀 Read more: https://shkspr.mobi/blog/2026/01/should-htmls-blocks-be-translated/
⸻
#code #HTML #languages

  • Copy link
  • Flag this post
  • Block
Gina Peter Banyard
Gina Peter Banyard
@Girgias@phpc.social replied  ·  activity timestamp 2 days ago

@Edent oh this is quite interesting. As this is one of my main frustration with the PHP docs at the moment.

I usually try to get people to not write any comments in the code block and have them show the output and add a paragraph if needed. As I don't really expect our translators to translate the examples (although some do which leads to inconsistencies)

  • Copy link
  • Flag this comment
  • Block

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.1-beta.35 no JS en
Automatic federation enabled
Log in
  • Explore
  • About
  • Members
  • Code of Conduct