Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/mod/l10n/messages.json
[ | [ | ||||
{ | { | ||||
"output": "mod-selector.pot", | "output": "mod-selector.pot", | ||||
"inputRoot": "..", | "inputRoot": "..", | ||||
"project": "Pyrogenesis - Mod Selector", | "project": "Pyrogenesis - Mod Selector", | ||||
"copyrightHolder": "Wildfire Games", | "copyrightHolder": "Wildfire Games", | ||||
"rules": [ | "rules": [ | ||||
{ | { | ||||
"extractor": "javascript", | "extractor": "javascript", | ||||
"filemasks": [ | "filemasks": [ | ||||
"gui/**.js" | "gui/**.js" | ||||
leper: This is incomplete. The xml one below might be too.
I suppose using a little more inclusive… | |||||
Not Done Inline ActionsWhy not just gui/**.js? Yes, the comment in the extractor is confusing, but they do what ** normally does, that is match/recurse over directories. leper: Why not just `gui/**.js`? Yes, the comment in the extractor is confusing, but they do what `**`… | |||||
], | ], | ||||
"options": { | "options": { | ||||
"format": "javascript-format", | "format": "javascript-format", | ||||
"keywords": { | "keywords": { | ||||
"translate": [1], | "translate": [1], | ||||
"translatePlural": [1, 2], | "translatePlural": [1, 2], | ||||
"translateWithContext": [[1], 2], | "translateWithContext": [[1], 2], | ||||
"translatePluralWithContext": [[1], 2, 3], | "translatePluralWithContext": [[1], 2, 3], | ||||
"markForTranslation": [1], | "markForTranslation": [1], | ||||
"markForTranslationWithContext": [[1], 2] | "markForTranslationWithContext": [[1], 2] | ||||
}, | }, | ||||
"commentTags": [ | "commentTags": [ | ||||
"Translation:" | "Translation:" | ||||
] | ] | ||||
} | } | ||||
}, | }, | ||||
{ | { | ||||
"extractor": "xml", | "extractor": "xml", | ||||
"filemasks": [ | "filemasks": [ | ||||
"gui/**.xml" | "gui/**.xml" | ||||
], | ], | ||||
"options": { | "options": { | ||||
"format": "none", | "format": "none", | ||||
"keywords": { | "keywords": { | ||||
Done Inline Actionsgui/**.xml leper: `gui/**.xml` | |||||
Not Done Inline ActionsI was clinging to the use of separate folders like we do in the public mod, but that is actually because of the separation into resources, that doesn't exist in the mod mod. Itms: I was clinging to the use of separate folders like we do in the public mod, but that is… | |||||
Not Done Inline ActionsYes, and that is mostly done to make it easier to translate certain parts of the game. Though I suspect even there it might be possible to make things easier there by using exclusion and inclusion masks. leper: Yes, and that is mostly done to make it easier to translate certain parts of the game. Though I… | |||||
"translatableAttribute": { | "translatableAttribute": { | ||||
"locationAttributes": ["id"] | "locationAttributes": ["id"] | ||||
}, | }, | ||||
"translate": {} | "translate": {} | ||||
} | } | ||||
} | } | ||||
}, | |||||
{ | |||||
"extractor": "txt", | |||||
"filemasks": [ | |||||
"gui/**.txt" | |||||
Done Inline ActionsThis seems very specific compared to the very liberal use of (recursive) wildcards above. leper: This seems very specific compared to the very liberal use of (recursive) wildcards above. | |||||
Not Done Inline ActionsI'll let you guess this one. leper: I'll let you guess this one. | |||||
], | |||||
"options": { | |||||
} | |||||
} | } | ||||
] | ] | ||||
} | } | ||||
] | ] |
Wildfire Games · Phabricator
This is incomplete. The xml one below might be too.
I suppose using a little more inclusive wildcards wouldn't hurt.