forked from public/swade-fr-content
Prepare transation
This commit is contained in:
parent
774f2d5dd5
commit
7b8136d0c4
@ -42,7 +42,7 @@
|
||||
],
|
||||
"url": "https://gitlab.com/sasmira/swade-fr",
|
||||
"flags": {},
|
||||
"version": "0.19.0.1",
|
||||
"version": "0.19.0.2",
|
||||
"minimumCoreVersion": "0.7.9",
|
||||
"compatibleCoreVersion": "9",
|
||||
"scripts": [],
|
||||
|
@ -135,9 +135,33 @@ const subFolder = { 'Social Edges': 'Atouts sociaux', 'Background Edges': 'Atout
|
||||
'Catapults': 'Catapultes', 'Flamethrowers': 'Lance-flammes', 'Rocket Launchers & Torpedoes': 'Lance roquettes et torpilles',
|
||||
'Vehicular Weapons': 'Armes de véhicules' }
|
||||
|
||||
/* -------------------------------------------- */
|
||||
// Register world usage statistics
|
||||
function registerUsageCount( registerKey ) {
|
||||
if ( game.user.isGM ) {
|
||||
game.settings.register(registerKey, "world-key", {
|
||||
name: "Unique world key",
|
||||
scope: "world",
|
||||
config: false,
|
||||
type: String
|
||||
});
|
||||
|
||||
let worldKey = game.settings.get(registerKey, "world-key")
|
||||
if ( worldKey == undefined || worldKey == "" ) {
|
||||
worldKey = randomID(32)
|
||||
game.settings.set(registerKey, "world-key", worldKey )
|
||||
}
|
||||
// Simple API counter
|
||||
$.ajax(`https://jdr.lahiette.com/fvtt_appcount/count.php?name="${registerKey}"&worldKey="${worldKey}"&version="${game.release.generation}.${game.release.build}"&system="${game.system.id}"&systemversion="${game.system.data.version}"`)
|
||||
/* -------------------------------------------- */
|
||||
}
|
||||
}
|
||||
|
||||
/************************************************************************************/
|
||||
Hooks.once('ready', () => {
|
||||
|
||||
//FolderTranslate.translateFolders()
|
||||
registerUsageCount("swade-fr")
|
||||
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user