All users were logged out of Bugzilla on October 13th, 2018

Please provide syntax highlighting for localization file samples - Mozilla | MDN

NEW
Unassigned

Status

--
enhancement
3 years ago
3 years ago

People

(Reporter: anaran, Unassigned)

Tracking

({in-triage})

Details

(URL)

(Reporter)

Description

3 years ago
See:

https://developer.mozilla.org/en-US/Add-ons/SDK/Tutorials/l10n#Placeholders

Details:

Placeholders

The l10n module supports placeholders, allowing you to insert a string which should not be localized into one which is. The following "en-US" and "fr-FR" ".properties" files include placeholders:

# en-US translations
hello_id= Hello %s!

# fr-FR translations
hello_id= Bonjour %s !

Problem:

The comment lines and localization placeholders don't stick out with the generic pre styling applied here.

It would be nice to get highlighting like Wikipedia does:

https://en.wikipedia.org/wiki/.properties#Format

http://mzl.la/1vxCDgA
Component: General → General
Product: Developer Documentation → Mozilla Developer Network
Severity: normal → enhancement
Keywords: in-triage
You need to log in before you can comment on or make changes to this bug.