Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7523783
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T02:54:11+00:00 2026-05-30T02:54:11+00:00

The built-in i18n message files for Yesod are very nice but I’ve noticed two

  • 0

The built-in i18n message files for Yesod are very nice but I’ve noticed two problems:

  1. It doesn’t seem to allow comments. These can be very helpful to give translators (or remind myself of) the context for a message. Is there a comment syntax that I missed?
  2. The < and > characters are HTML-escaped. This prevents adding simple bits of HTML such as <em> to a message. Other than coding messages up in .hs files is there a workaround to this?

Thanks for any suggestions!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T02:54:12+00:00Added an answer on May 30, 2026 at 2:54 am
    1. Comments are made by making lines starting with #.
    2. It might not be a good idea to force translators to deal with HTML tags if they aren’t familiar with them. Also, what if you want to change some implementation detail later, like deciding you want to replace <span class="foo">foo</span> with <em>foo</em>?

      Instead, I would suggest using some Markdown-like syntax with Something that needs to be *emphasized*.. You can then post-process the strings with the various Markdown libraries on Hackage.

      This is easy to do automatically if you avoid using the mkMessage TemplateHaskell function for generating your messages and instead make your own RenderMessage class implementation that uses a Markdown syntax processor. I don’t see a way of doing it while keeping the mkMessage invocation, but I know that @michael-snoyman, the creator of Yesod, might have hidden a hook in the API somewhere that allows this to happen, and he usually reads these questions on SO.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I built a website and then deploy it on the server. But when i
I built UI with MonoDevelop's Gtk# UI generator and found file chooser widget but
I'm using Rails built in I18n (Simple backend). I've set the default locale to
built a simple slide show for a little project really fast, but I can't
I've been happily using the built-in rails i18n support for translating strings to different
I am looking for an editor/comparator for i18n property files that would help me
Built a simple site, can't seem to figure out why this is happening: <script
I built an online news portal before which is working fine for me but
I built a very simple tab based app with 2 tabs, each tab tied
I built a webapp that works perfectly fine in my localhost (tomcat). But when

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.