Skip to content

Commit

Permalink
feat: french locales & version checking
Browse files Browse the repository at this point in the history
  • Loading branch information
TonybynMp4 committed May 26, 2024
1 parent cf2d84b commit 5d39ce8
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fxmanifest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ fx_version 'cerulean'
game 'gta5'

repository 'https://github.com/Qbox-project/y_mechanic'
version '1.0.0'
version '1.0.1'

ox_lib 'locale'

Expand Down
2 changes: 1 addition & 1 deletion locales/en.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"notify": {
"error": {
"closest_vehicle": "Il n'y a aucun véhicule proche!",
"closest_vehicle": "No vehicle near you!",
"canceled": "Canceled!",
"inside_vehicle": "You can't do this inside a vehicle!",
"too_far": "You are too far away from the vehicle!",
Expand Down
38 changes: 38 additions & 0 deletions locales/fr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"notify": {
"error": {
"closest_vehicle": "Il n'y a aucun véhicule proche!",
"canceled": "Annulé!",
"inside_vehicle": "Vous ne pouvez pas faire cela dans un véhicle!",
"too_far": "Vous êtes trop loin!",
"too_far_engine": "Vous êtes trop loin du moteur!",
"not_advanced": "Votre kit n'est pas assez complet pour cette réparation!",
"not_mechanic": "Vous n'êtes pas mécanicien!",
"not_in_zone": "Vous ne pouvez pas faire ça ici!"
},
"success": {
"engine_repaired": "Moteur réparé!",
"body_repaired": "Carrosserie réparée!",
"vehicle_repaired": "Véhicule réparé!",
"cleaned": "Véhicule nettoyé!",
"tyres_changed": "Pneus changés!"
}
},
"text": {
"on_duty": "Dé/Activer le service",
"on_duty_button": "[E] Prendre son service",
"off_duty_button": "[E] Quitter son service"
},
"progress": {
"repair_vehicle": "Répare le véhicule..",
"repair_body": "Répare la carrosserie..",
"repair_engine": "Répare le moteur..",
"changing_tyres": "Change les pneus..",
"cleaning_vehicle": "Nettoie le véhicule.."
},
"command": {
"fix": {
"help": "Réparer le véhicule (Admins seulement)"
}
}
}
2 changes: 2 additions & 0 deletions server/main.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
lib.versionCheck('TonybynMp4/y_mechanic')

lib.addCommand("fix", {
help = locale('command.fix.help'),
params = {},
Expand Down

0 comments on commit 5d39ce8

Please sign in to comment.