mirror of
https://github.com/mt-mods/playerfactions.git
synced 2025-04-13 10:00:23 +02:00
* Store hashes of passwords cleartext password storage is bad practice. * Depricate factions.get_password() returns nil after first run * loaded message * Properly use the configurable admin priv in output * Don't show password, since we can't anymore * remove code that is never reached * chown: reorder to first check if player has any factions at all There is no point in checking other params if this part fails. * chown: fix command signature password is required * proper admin priv listing in help for invite * wrap fixup code in do-block variable save_needed is not used for anything else * locale: many -> multiple * locale: remove unused entry * locale: ownership rephrasing * locale: tweak and add "No factions found." * locale: exists -> exist * locale: this -> that or better also fixed a french mistake: player doesn't own these -> player owns these * locale: reuse string for missing name besides, "nil" is a valid name. This way there is no confusion. * locale: reuse "missing player name" * locale: reuse "faction x doesn't exist" * locale: faction x already exists * locale: the player -> player x * locale: some more de-Frenching * add local is_admin stash commit... * disband: allow admin - permit admin to disband a faction without having any factions himself - permit admin to skip password check (he can supply any placeholder) - permit admin to disband his own single faction - don't call get_owner or valid_password if is admin - streamline duplicate code * list: check for true first instead of using negation - check for no factions first -> simpler code - whitespace: linebreak for easier reading * info: cleanup - whitespace linebreaks for easier reading and consistancy - update helptext signiture (also for disband) to reflect actual requirements and standard - loop members into table for consistant and easier to read code * player_info: cleanup - move depricated log entry to start of get_player_faction(), no point in skipping warning. - simplify get_player_factions() - whitespace linebreaks for easier reading and consistancy - loop members into table for consistant and easier to read code - simplify get_owned_factions() - make player_name param optional, default to caller (still need to check as caller name can be missing) - loop factions into table for consistant and easier to read code (also presumpted faster) * join: cleanup - don't call get_player_factions() unless needed - use get_player_factions() instead of depricated get_player_faction() - truth check of password in valid_password() for easier understanding of code - remove explicit nil check where not needed * leave: cleanup - update help text to standard syntax - remove unnecessary param count checks - simplify leave_faction() argument checking * kick: cleanup - simplify and reduce calls of core.get_player_privs() - update help text to standard syntax - streamline duplicate code - remove unnecessary param count checks - remove explicit nil check where not needed - don't call get_owner if is admin (until needed) * passwd: cleanup - update help text to standard syntax - streamline duplicate code - remove unnecessary param count checks - remove explicit nil check where not needed - don't call get_owner if is admin * chown: cleanup and tweak - update help text to standard syntax - streamline duplicate code - remove unnecessary param count checks - remove explicit nil check where not needed - updated locale to be neutral to admin or owner - don't call get_owner or valid_password if is admin - remove core.player_exists() call since target was checked when joined faction - abort early if no target or password provided * invite: cleanup and tweaks - reduced needed indents - remove explicit nil check where not needed - use get_player_factions() instead of depricated get_player_faction() and reduce calls of it - tweaked join_faction() - adds check if player already is in that faction * more tweaks - join: check if already member - leave: checks if user is in given faction at all - kick: early abort if no player provided - create: early abort if no faction or password are provided - create: use get_player_factions() instead of get_player_faction() - create: reduce explicit nil checks - disband: early abort if missing password - disband: reduce param-count-checks and use table.getn() - info: reduce explicit nil checks and use table.getn() - passwd: early abort if no password provided - in general remove explicit nil-checks where not needed * is_admin -> not_admin for slightly easier reading and shorter lines * fix translator missing argument * some facepalm fixes and tweaks of table.getn() for consistency, here # would work just as well. * set minimum server version to 5.9.0 * another facepalm moment * add mtt support * refactor handle_command for mtt It could've been done by only exposing handle_command, but this is cleaner for future maintenance as tasks are well separated. * bundle mtt related lines * needs fakelib, not areas areas will need this mod for testing * remove unused arguments * add owner to members on cleanup * rename chat to cc also no need to expose cc directly to mtt * register the actually set priv when it is missing * label data correctly * move settings higher up where they are expected to be * consistancy with variable names use faction_name, player_name, target_name, password etc. instead of a jumble of pw, fname, name, player_name etc. * reduce needles table-copy * fail to register same named factions * no-op depricated and useless get_password * some more checks in some API methods * whitespace and comments * pass translator to mtt * bugfix cc.disband inverted password check * standardize var name and reduce looping * add get_members() api-method and use it * player_info: count empty string as no player * player_info: switch if-else to avoid negation * unreachable comments * simpler check * add mtt-checks for front and backend commands * update french locale - informal tone - adds missing entries * add Spanish locale * add German locale * whitespace cleanup * add fakelib comment * provide alternative to table.pack() * add disband hook support * remove local f == factions
79 lines
4.8 KiB
Plaintext
79 lines
4.8 KiB
Plaintext
# textdomain: playerfactions
|
|
|
|
|
|
### init.lua ###
|
|
|
|
@1 has the @2 privilege so they can admin every faction.=@1 hat das @2-Privileg, sodass er jede Fraktion verwalten kann.
|
|
|
|
@1 is in the following factions: @2.=@1 ist in den folgenden Fraktionen: @2.
|
|
@1 is now a member of faction @2.=@1 ist jetzt Mitglied der Fraktion @2.
|
|
@1 isn't in faction @2.=@1 ist nicht in der Fraktion @2.
|
|
Add player to a faction, you need @1 privs=Füge einen Spieler zu einer Fraktion hinzu, du benötigst @1-Privilegien
|
|
Allow the use of all playerfactions commands=Erlaubt die Verwendung aller Fraktionsbefehle
|
|
|
|
Change your faction's password or the password of the given faction=Ändere das Passwort deiner Fraktion oder das Passwort der angegebenen Fraktion
|
|
|
|
Create a new faction=Erstelle eine neue Fraktion
|
|
Disband your faction or the given faction=Löse deine Fraktion oder die angegebene Fraktion auf
|
|
Disbanded @1.=@1 aufgelöst.
|
|
Error kicking @1 from faction.=Fehler beim Rauswerfen von @1 aus der Fraktion.
|
|
Error adding @1 to @2.=Fehler beim Hinzufügen von @1 zu @2
|
|
Error joining faction.=Fehler beim Beitritt zur Fraktion.
|
|
Error leaving faction.=Fehler beim Verlassen der Fraktion.
|
|
Factions (@1): @2.=Fraktionen (@1): @2.
|
|
Failed to change password.=Passwort konnte nicht geändert werden.
|
|
Failed to transfer ownership.=Eigentum konnte nicht übertragen werden.
|
|
Join an existing faction=Trete einer bestehenden Fraktion bei
|
|
Joined @1.=Bist @1 beigetreten.
|
|
Kick someone from your faction or from the given faction=Jemanden aus deiner Fraktion oder der angegebenen Fraktion werfen
|
|
Kicked @1 from faction.=@1 aus Fraktion geworfen.
|
|
Leave your faction=Deine Fraktion verlassen
|
|
Left @1.=Hast @1 verlassen.
|
|
List available factions=Verfügbare Fraktionen auflisten
|
|
Missing faction name.=Fraktionsname fehlt.
|
|
Missing password.=Passwort fehlt.
|
|
Missing player name.=Spielername fehlt.
|
|
Name: @1@nOwner: @2@nMembers: @3=Name: @1@nBesitzer: @2@nMitglieder: @3
|
|
Ownership has been transferred to @1.=Eigentum wurde auf @1 übertragen.
|
|
Password has been updated.=Passwort wurde aktualisiert.
|
|
Permission denied: Wrong password.=Berechtigung verweigert: Falsches Passwort.
|
|
|
|
Permission denied: You are not the owner of that faction, and don't have the @1 privilege.=Berechtigung verweigert: Du bist nicht der Besitzer dieser Fraktion und hast nicht das @1-Privileg.
|
|
|
|
Permission denied: You can't use this command, @1 priv is needed.=Berechtigung verweigert: Du kannst diesen Befehl nicht verwenden, @1-Privileg ist erforderlich.
|
|
|
|
Registered @1.=@1 Registriert.
|
|
See information about a faction=Informationen zu einer Fraktion anzeigen
|
|
See information about a player=Informationen zu einem Spieler anzeigen
|
|
Faction @1 already exists.=Fraktion @1 existiert bereits.
|
|
Faction @1 doesn't exist.=Fraktion @1 existiert nicht.
|
|
|
|
The faction has more than @1 members, the members list can't be shown.=Die Fraktion hat mehr als @1 Mitglieder, die Mitgliederliste kann nicht angezeigt werden.
|
|
|
|
Player @1 doesn't exist.=Spieler @1 existiert nicht.
|
|
Player @1 is already in the faction @2.=Spieler @1 ist bereits in der Fraktion @2.
|
|
There are no factions yet.=Es gibt noch keine Fraktionen.
|
|
Player @1 doesn't exist or isn't in any faction.=Spieler @1 existiert nicht oder ist in keiner Fraktion.
|
|
@1 is not in the specified faction.=@1 ist nicht in der angegebenen Fraktion.
|
|
@1 doesn't own any factions.=@1 besitzt keine Fraktionen.
|
|
@1 is the owner of the following factions: @2.=@1 ist der Besitzer der folgenden Fraktionen: @2.
|
|
Transfer ownership of your faction=Eigentum deiner Fraktion übertragen
|
|
Unknown subcommand. Run '/help factions' for help.=Unbekannter Unterbefehl. Führe „/help factions“ aus, um Hilfe zu erhalten.
|
|
You are already in a faction.=Du bist bereits in einer Fraktion.
|
|
|
|
You are in multiple factions, you have to choose one of them: @1.=Du bist in mehreren Fraktionen, du musst eine davon auswählen: @1.
|
|
|
|
You are not in a faction.=Du bist in keiner Fraktion.
|
|
|
|
You are the owner of multiple factions, you have to choose one of them: @1.=Du bist der Besitzer mehrerer Fraktionen, du musst eine davon auswählen: @1.
|
|
|
|
You don't own any factions, you can't use this command.=Du besitzst keine Fraktionen, du kannst diesen Befehl nicht verwenden.
|
|
You don't own any factions.=Du besitzst keine Fraktionen.
|
|
|
|
You cannot kick the owner of a faction, use '/factions chown <player> <password> [<faction>]' to change the ownership.=Du kannst den Besitzer einer Fraktion nicht rauswerfen, verwende „/factions chown <Spieler> <Passwort> [<Fraktion>]“, um den Besitzer zu ändern.
|
|
|
|
You cannot leave your own faction, change owner or disband it.=Du kannst deine eigene Fraktion nicht verlassen, wechsle den Besitzer oder löse die Fraktion auf.
|
|
No factions found.=Keine Fraktionen gefunden.
|
|
You aren't part of faction @1.=Du bist nicht Teil der Fraktion @1.
|
|
You are already in faction @1.=Du bist bereits in der Fraktion @1.
|