Skip to content

Commit

Permalink
French language support (#543)
Browse files Browse the repository at this point in the history
* Clean up lang files

* French language support

* Re-add deleted messages

* Prepopulate French localisation

Co-authored-by: TylerS1066 <[email protected]>
  • Loading branch information
HumorousFool and TylerS1066 authored Sep 23, 2022
1 parent b7176c2 commit 89776cc
Show file tree
Hide file tree
Showing 6 changed files with 160 additions and 69 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ public void onEnable() {
Settings.Debug = getConfig().getBoolean("Debug", false);
Settings.DisableSpillProtection = getConfig().getBoolean("DisableSpillProtection", false);
Settings.DisableIceForm = getConfig().getBoolean("DisableIceForm", true);
String[] localisations = {"en", "cz", "nl"};

String[] localisations = {"en", "cz", "nl", "fr"};
for(String s : localisations) {
if(!new File(getDataFolder()
+ "/localisation/movecraftlang_" + s + ".properties").exists()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public boolean onCommand(CommandSender commandSender, Command command, String s,
if(!(commandSender instanceof Player)) {
commandSender.sendMessage(MOVECRAFT_COMMAND_PREFIX
+ I18nSupport.getInternationalisedString(
"Player- Error - You do not have a craft to release!"));
"Player - Error - You do not have a craft to release!"));
return true;
}
Player player = (Player) commandSender;
Expand All @@ -42,7 +42,7 @@ public boolean onCommand(CommandSender commandSender, Command command, String s,
if (pCraft == null) {
player.sendMessage(MOVECRAFT_COMMAND_PREFIX
+ I18nSupport.getInternationalisedString(
"Player- Error - You do not have a craft to release!"));
"Player - Error - You do not have a craft to release!"));
return true;
}
CraftManager.getInstance().release(pCraft, CraftReleaseEvent.Reason.PLAYER, false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,53 +38,30 @@ Detection\ -\ Failed\ -\ Already\ commanding\ a\ craft=Uz jeden stroj ridis\!
Detection\ -\ Failed\ Craft\ is\ already\ being\ controlled=Stroj uz je nekym ovladan\!
Detection\ -\ Successfully\ piloted\ craft=Uspesne ridis stroj\!
Rotation\ -\ Craft\ is\ obstructed=Stroj uvizl
Rotation\ -\ Craft\ Collision=Kolize stroje
Translation\ -\ Failed\ Craft\ hit\ height\ limit=Stroj dosahl limitu vysky.
Translation\ -\ Failed\ Craft\ is\ obstructed=Stroj se nemuze pohnout, protoze jeho cesta je ucpana\!
Translation\ -\ Failed\ Craft\ out\ of\ fuel=Stroji doslo palivo\!
Translation\ -\ Failed\ Craft\ hit\ minimum\ height\ limit=Stroj dosahl minimalniho limitu vysky
Translation\ -\ Failed\ Craft\ over\ water=Tento stroj se nemuze pohybovat nad vodou\!
Translation\ -\ Craft\ collision=Kolize stroje
Internal\ -\ Error\ -\ Proccessor\ thread\ encountered\ an\ error=Async uloha vygenerovala vyjimku.
Internal\ -\ Error\ -\ Processor\ thread\ encountered\ an\ error=Async uloha vygenerovala vyjimku.
Startup\ -\ Number\ of\ craft\ files\ loaded=Nacteno %d souboru stroju
Startup\ -\ Error\ parsing\ CraftType\ file=Chyba pri parsovani souboru TypStroje z adresare: %s
Startup\ -\ Error\ -\ Reload\ error=Movecraft je nekompatibilni s prikazem reload. Movecraft se vypnul a bude restartovan az s restartem serveru.
Startup\ -\ Error\ -\ Disable\ warning\ for\ reload=Pokud chcete pouzit prikaz reload a Movecraft, muzete tuto kontrolu vypnout v config.yml nastavenim 'safeReload: false'
Startup\ -\ Enabled\ message=[V %S] byl nacten.
Item\ -\ Storage\ Crate\ name=Prepravni bedna
Player-\ Craft\ has\ been\ released=Pustil jsi rizeni sveho stroje\!
Player-\ Craft\ is\ sinking=Vas stroj je prilis poskozen a potapi se\! Opustit palubu\!
Player-\ Error\ -\ You\ do\ not\ have\ a\ craft\ to\ release!=Nemas zadny stroj, ktery by jsi mohl opustit\!
Player\ -\ Error\ -\ Already\ piloting\ craft=Uz jeden stroj ridis\!
MCStats\ -\ \:(\ -\ Admin\ has\ opted\ out=Vybrali jste odhlaseni od odesilani dat na mcstats.org. Vyvojar Movecraftu by byl velmi vdecny za vase data.
MCStats\ -\ Thank\ you\ message=Statistiky byly uspesne odeslany na mcstats.org. Dekujeme za vasi podporu.
MCStats\ -\ Error\ -\ Unable\ to\ upload\ stats=Nemohu odeslat statistiky na mcstats.org. Prosim, zkontrolujte sve pripojeni k siti.
Player\ -\ Craft\ is\ sinking=Vas stroj je prilis poskozen a potapi se\! OPUSTIT PALUBU\!
Player\ -\ Error\ -\ You\ do\ not\ have\ a\ craft\ to\ release!=Nemas zadny stroj, ktery by jsi mohl opustit\!
Release\ -\ Player\ has\ left\ craft=Opustil jsi svuj stroj\! Mas 15 vterin na navrat do stroje, jinak automaticky pustis ovladani.
Release\ -\ Craft\ has\ been\ released\ message=Pustil jsi ovladani sveho stroje.
Release\ -\ Craft\ has\ been\ released=Pustil jsi ovladani sveho stroje.
Release\ -\ Player\ has\ released\ a\ craft\ console=Hrac %s prestal ridit stroj typu %s o velikosti %d, na pozici: %d x, %d z
Detection\ -\ Success\ -\ Log\ Output=Hrac %s ridi stroj typu %s o velikosti %d, na pozici: %d x, %d z
Not\ enough\ flyblock=Neodstatek bloku nezbytnych pro pohyb
Too\ much\ flyblock=Prilis mnoho bloku nezbytnych pro pohyb
#Detection\ -\ Failed\ -\ Not\ enough\ flyblock=Detekce selhala\! Prilis malo bloku ID %s. Je potreba: %.2f procent. Nyni ma %.2f procent
#Detection\ -\ Failed\ -\ Too\ much\ flyblock=Detekce selhala\! Prilis mnoho bloku ID %s. Maximum je: %.2f procent. Nyni ma %.2f procent
Detection\ -\ ERROR\:\ Double\ chest\ found=Detekce selhala\! ERROR \: Nalezena dvojita truhlice
Detection\ -\ Not\ enough\ flyblock=Neodstatek bloku nezbytnych pro pohyb
Detection\ -\ Too\ much\ flyblock=Prilis mnoho bloku nezbytnych pro pohyb
Detection\ -\ Failed\ -\ Water\ contact\ required\ but\ not\ found=Detekce selahala\: Je vyzadovan kontakt s vodou, ale nebyl detekovan
Parent\ Craft\ is\ busy=Hlavni stroj je zaneprazdnen
Detection\ -\ Parent\ Craft\ is\ busy=Hlavni stroj je zaneprazdnen
Insufficient\ Permissions=Nedostatecne opraveneni
ERROR\:\ Remote\ Sign\ must\ be\ a\ part\ of\ a\ piloted\ craft\!=CHYBA\: Vzdalena cedule musi byt soucasti rizeneho stroje\!
ERROR\:\ Remote\ Signs\ not\ allowed\ on\ this\ craft\!=CHYBA\: Vzdalene cedule nejsou povoleny na tomto stroji\!
ERROR\:\ Could\ not\ find\ target\ sign\!=CHYBA\: Nemohu najit cilovou ceduli\!
Entering\ Direct\ Control\ Mode=Mod primeho rizeni zapnut
Leaving\ Direct\ Control\ Mode=Mod primeho rizeni vypnut
Craft\ is\ too\ big\ to\ check\ its\ borders\.\ Make\ sure\ this\ area\ is\ safe\ to\ release\ your\ craft\ in\.=Stroj je prilis velky pro detekci svych okraju. Ujistete se, ze je oblast bezpecna pro vypnuti stroje.
You\ have\ left\ your\ craft\.\ You\ may\ return\ to\ your\ craft\ by\ typing\ \/manoverboard\ any\ time\ before\ the\ timeout\ expires=Opustil jsi svuj stroj. Pokud jsi ze sveho stroje vypadl, muzes napsat /manoverboard pro navrat, drive nez vyprsi casovy limit.
WARNING\!\ There\ are\ blocks\ near\ your\ craft\ that\ may\ merge\ with\ the\ \craft\ "=VAROVANI\! Pobliz tveho stroje jsou bloky, ktere se mohou sloucit se strojem.
Repair\ functionality\ is\ disabled\ or\ WorldEdit\ was\ not\ detected=Funce opravovani je zakazana nebo nebyl detekovan WorldEdit
You\ must\ be\ piloting\ a\ craft=Musis ridit nejaky stroj
Could\ not\ save\ file=Nemohu ulozit soubor
State\ saved=Stav ulozen
REPAIR\ STATE\ NOT\ FOUND=STAV PRO OPRAVU NEBYL NALEZEN
Repairs\ underway=Probihaji opravy
Repairs\ complete\.\ You\ may\ now\ pilot\ the\ craft=Opravy dokonceny. Nyni muzes ridit stroj
You\ do\ not\ have\ enough\ money=Nemas dostatek penez
Need\ more\ of\ material=Je potreba vice materialu
Remote\ Sign\ -\ Must\ be\ a\ part\ of\ a\ piloted\ craft=Vzdalena cedule musi byt soucasti rizeneho stroje\!
Remote\ Sign\ -\ Not\ allowed\ on\ this\ craft=Vzdalene cedule nejsou povoleny na tomto stroji\!
Remote\ Sign\ -\ Could\ not\ find\ target\ sign=Nemohu najit cilovou ceduli\!
Direct\ Control\ -\ Entering=Mod primeho rizeni zapnut
Direct\ Control\ -\ Leaving=Mod primeho rizeni vypnut
Manoverboard\ -\ Craft\ May\ Merge=VAROVANI\! Pobliz tveho stroje jsou bloky, ktere se mohou sloucit se strojem.
You\ must\ be\ piloting\ a\ craft=Musis ridit nejaky stroj
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@

None=None

Damage=DAMAGE
Region\ Damaged=REGION DAMAGED\!
Contacts=Contacts
Contacts\ -\ Must\ Be\ Player=Only Players may get Contacts.
Contact=Contact
Expand All @@ -35,7 +33,7 @@ Contact/Subcraft\ Rotate\ -\ North=north
Craft\ Report=Craft Report
Craft\ Report\ -\ None\ Found=No crafts found.
Cruise\ -\ Must\ Be\ Player=Only Players may cruise.
Cruise\ -\ Craft\ Type\ Cannot\ Cruise=This craft type cannot cruise.
Cruise\ -\ Craft\ Cannot\ Cruise=This craft cannot cruise.
Detection\ -\ Parent\ Craft\ is\ busy=Parent Craft is busy
Detection\ -\ Craft\ too\ small=Detection Failed\! The craft was too small. Minimum for this type is %d
Detection\ -\ Craft\ too\ large=Detection Failed\! The craft was too large. Maximum for this type is %d
Expand All @@ -44,15 +42,13 @@ Detection\ -\ Forbidden\ sign\ string\ found=Detection Failed\! Forbidden sign s
Detection\ -\ Failed\ -\ Already\ commanding\ a\ craft=You are already commanding a craft\!
Detection\ -\ Failed\ Craft\ is\ already\ being\ controlled=The craft is already being controlled\!
Detection\ -\ Successfully\ piloted\ craft=Succesfully piloted craft\!
Detection\ -\ NULL\ Player\ Detection\ Failed=NULL Player craft detection failed
Detection\ -\ Success\ -\ Log\ Output=Player %s piloted a craft of type %s with size %d at location\: %d x, %d z
Detection\ -\ Not\ enough\ flyblock=Not enough flyblock
Detection\ -\ Too\ much\ flyblock=Too much flyblock
Detection\ -\ Not\ enough\ detectionblock=Not enough detectionblock
Detection\ -\ Too\ much\ detectionblock=Too much detectionblock
Detection\ -\ Not\ Registered\ Pilot=Not one of the registered pilots on this craft
Detection\ -\ Craft\ Type\ Cannot\ Be\ Named=Crafts of this type cannot be named
Detection\ -\ ERROR\:\ Double\ chest\ found=Detection failed\! ERROR \: Double chest found
Detection\ -\ Failed\ -\ Water\ contact\ required\ but\ not\ found=Detection failed\: Water contact required but not found
Detection\ -\ Must\ Be\ Subcraft=Craft\ must\ be\ part\ of\ another\ craft
Gearshift\ -\ Gear\ changed=Gear of craft changed.
Expand All @@ -76,10 +72,8 @@ Pilot\ -\ Invalid\ Craft\ Type=Invalid Craft Type
Player\ -\ Not\ Found=That player could not be found.
Player\ -\ Not\ Piloting=That player is not piloting a craft.
Player\ -\ Craft\ is\ sinking=Your craft has taken too much damage and is sinking\! ABANDON SHIP\!
Player-\ Error\ -\ You\ do\ not\ have\ a\ craft\ to\ release!=You do not have a craft to release\!
Player\ -\ Block\ part\ of\ piloted\ craft=BLOCK IS PART OF A PILOTED CRAFT
Player\ -\ Error\ -\ You\ do\ not\ have\ a\ craft\ to\ release!=You do not have a craft to release\!
Release\ -\ Craft\ has\ been\ released=Your craft has been released\!
Release\ -\ Craft\ has\ been\ released\ message=You have released your craft.
Release\ -\ Player\ has\ released\ a\ craft\ console=Player %s has released a craft of type %s with size %d at coordinates \: %d x , %d z
Release\ -\ Null\ Craft\ Release\ Console=NULL Player has released a craft of type %s with size %d at coordinates \: %d x , %d z
Release\ -\ Empty\ Craft\ Release\ Console=Empty craft released
Expand All @@ -102,9 +96,9 @@ Rotation\ -\ Farthest\ Extent\ Facing=The farthest extent now faces
Rotation\ -\ Must\ Be\ Player=Only Players may rotate a craft.
Rotation\ -\ Specify\ Direction=You need to supply a direction.
Rotation\ -\ Invalid\ Direction=Invalid direction, use 'Left' or 'Right'.
Rotation\ -\ NULL\ Player\ Rotation\ Failed=NULL Player rotation failed
Rotation\ -\ Turning\ Too\ Quickly=You're turning too quickly\!
Rotation\ -\ Already\ Rotating=You are already rotating
Internal\ -\ Error\ -\ Processor\ thread\ encountered\ an\ error=Async task threw an exception.
Scuttle\ -\ Must\ Be\ Online=Player supplied must be online.
Scuttle\ -\ Must\ Be\ Player=You must be a player to scuttle your craft.
Scuttle\ -\ Craft\ Already\ Sinking=The craft is already sinking\!
Expand Down Expand Up @@ -136,8 +130,6 @@ Translation\ -\ Failed\ Craft\ out\ of\ fuel=The craft is out of fuel\!
Translation\ -\ Failed\ Craft\ hit\ minimum\ height\ limit=Craft has hit the minimum height limit
Translation\ -\ Failed\ Craft\ over\ block=This craft cannot move over %s\!



Insufficient\ Permissions=Insufficient Permissions
Invalid\ Coordinates=Invalid Coordinates
Movecraft=Movecraft
Expand Down
Loading

0 comments on commit 89776cc

Please sign in to comment.