Permalink
Browse files

added custom metadata to some i18n bundles.

  • Loading branch information...
1 parent b72d314 commit 9055eccf32c73ed88122e9f7cc7d5d11e6ef4987 @toolness committed Dec 3, 2012
Showing with 10 additions and 6 deletions.
  1. +2 −2 build-i18n.js
  2. +1 −2 js/fc/nls/css-property-docs.js
  3. +6 −0 js/fc/nls/hacktionary.js
  4. +1 −2 js/fc/nls/html-element-docs.js
View
@@ -15,11 +15,11 @@ NLS_PATHS.forEach(function(path) {
var match = filename.match(/^(.*)\.js$/);
if (match) {
var moduleName = path + '/' + match[1];
- var bundle = requirejs('i18n!' + moduleName);
+ var bundle = requirejs(moduleName);
bundles[moduleName] = bundle;
}
});
});
-console.log(bundles);
+require('sys').puts(JSON.stringify(bundles, null, 2));

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -1,10 +1,16 @@
"use strict";
define({
+ description: 'Miscellaneous context-sensitive help strings and URLs.',
root: {
"css-selector-docs": "This is a CSS selector. It describes the kinds of HTML elements that a CSS rule's style will be applied to.",
"mdn_url_html": "https://developer.mozilla.org/en/HTML/Element/",
"mdn_url_css": "https://developer.mozilla.org/en/CSS/",
"mdn_url_css_selectors": "https://developer.mozilla.org/en/CSS/Getting_Started/Selectors"
+ },
+ metadata: {
+ "mdn_url_html": {
+ help: "Base URL for HTML element help in MDN, used to dynamically generate links to MDN pages for HTML elements. This URL may be localizable."
+ }
}
});

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit 9055ecc

Please sign in to comment.