Add warning to generated file

This commit is contained in:
John Firebaugh
2013-04-03 16:12:29 -07:00
parent 67fcb1d7c2
commit f897504443
2 changed files with 20 additions and 1 deletions
+10
View File
@@ -1,3 +1,13 @@
/*
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
THIS FILE IS GENERATED BY `make translations`. Don't make changes to it.
Instead, edit the English strings in data/core.yaml or data/presets.yaml, or
contribute translations on https://www.transifex.com/projects/p/id-editor/.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
*/
locale.en = {
"modes": {
"add_area": {
+10 -1
View File
@@ -27,7 +27,16 @@ var sourceCore = yaml.load(fs.readFileSync('./data/core.yaml', 'utf8')),
asyncMap(resources, getResource, function(err, locales) {
if (err) return console.log(err);
var out = '';
var out = '/*\n' +
' !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n' +
'\n' +
' THIS FILE IS GENERATED BY `make translations`. Don\'t make changes to it.\n' +
'\n' +
' Instead, edit the English strings in data/core.yaml or data/presets.yaml, or\n' +
' contribute translations on https://www.transifex.com/projects/p/id-editor/.\n' +
'\n' +
' !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n' +
' */\n';
var locale = _.merge(sourceCore, sourcePresets);
locales.forEach(function(l) {
locale = _.merge(locale, l);