From 02ca99dc8e4dff0df3b7a240d73b150fb9ac14c2 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sat, 2 Oct 2021 04:57:55 +0300 Subject: [PATCH 46/46] Alien nations: Improve coding style See osdn #42949 Signed-off-by: Marko Lindqvist --- data/alien/nation/adventurers.ruleset | 14 +++++--------- data/alien/nation/galacticsound.ruleset | 14 +++++--------- data/alien/nation/jw.ruleset | 14 +++++--------- data/alien/nation/kindergarden.ruleset | 14 +++++--------- data/alien/nation/lunatics.ruleset | 10 +++++----- data/alien/nation/madmen.ruleset | 4 ++-- data/alien/nation/mathclub.ruleset | 14 +++++--------- data/alien/nation/secretsociety.ruleset | 14 +++++--------- data/alien/nation/teamgladiators.ruleset | 14 +++++--------- 9 files changed, 42 insertions(+), 70 deletions(-) diff --git a/data/alien/nation/adventurers.ruleset b/data/alien/nation/adventurers.ruleset index da1b2a8df0..007197b32b 100644 --- a/data/alien/nation/adventurers.ruleset +++ b/data/alien/nation/adventurers.ruleset @@ -1,8 +1,8 @@ [nation_adventurers] -translation_domain="freeciv" +translation_domain = "freeciv" -name = _("Adventurers") +name = _("Adventurers") plural = _("?plural:Adventurers") legend = _("Without any destination, they were just traveling around, looking \ for trouble.\n\n\ @@ -23,17 +23,13 @@ color.r = 124 color.g = 252 color.b = 0 -init_techs="" -init_buildings="" -init_units="" +init_techs = "" +init_buildings = "" +init_units = "" trait_expansionist_min = 150 trait_expansionist_max = 150 -; /* <-- avoid gettext warnings -; -; */ - cities = "Lost Temple", "Black Forest", "Dark Alley", "Alien Planet", "Hostile Moon", "Strange Nebula", "Broken Ship", "Deadly Encounter", diff --git a/data/alien/nation/galacticsound.ruleset b/data/alien/nation/galacticsound.ruleset index c84986c0d8..0f9d7e64cb 100644 --- a/data/alien/nation/galacticsound.ruleset +++ b/data/alien/nation/galacticsound.ruleset @@ -1,8 +1,8 @@ [nation_galactic_sound] -translation_domain="freeciv" +translation_domain = "freeciv" -name = _("Galactic Sound") +name = _("Galactic Sound") plural = _("?plural:Fans") legend = _("Shipful of music fans originally heading to big concert happening.\n\n\ * Three unhappy citizens in each city becomes content") @@ -21,13 +21,9 @@ color.r = 255 color.g = 165 color.b = 0 -init_techs="" -init_buildings="" -init_units="" - -; /* <-- avoid gettext warnings -; -; */ +init_techs = "" +init_buildings = "" +init_units = "" cities = "Rock", "Metal", "Gem", "Classic", "Galactic", "Blues", diff --git a/data/alien/nation/jw.ruleset b/data/alien/nation/jw.ruleset index c0fe1321cd..5009c797db 100644 --- a/data/alien/nation/jw.ruleset +++ b/data/alien/nation/jw.ruleset @@ -1,8 +1,8 @@ [nation_jw] -translation_domain="freeciv" +translation_domain = "freeciv" -name = _("J&W Corporation") +name = _("J&W Corporation") plural = _("?plural:JeeWees") ; /* xgettext:no-c-format */ legend = _("J&W Corporation ship was heading to establish another \ @@ -19,9 +19,9 @@ flag = "jw" flag_alt = "russia" style = "Human" -init_techs="" -init_buildings="" -init_units="" +init_techs = "" +init_buildings = "" +init_units = "" color.r = 255 color.g = 255 @@ -32,10 +32,6 @@ trait_trader_max = 300 trait_expansionist_min = 70 trait_expansionist_max = 70 -; /* <-- avoid gettext warnings -; -; */ - cities = "Marketing", "Production", "Development", "Sales", "Support", "Recruiting", "Espionage", "Finances", "Taxes", "Bugfixing", diff --git a/data/alien/nation/kindergarden.ruleset b/data/alien/nation/kindergarden.ruleset index b18e8369cb..8614631c32 100644 --- a/data/alien/nation/kindergarden.ruleset +++ b/data/alien/nation/kindergarden.ruleset @@ -1,8 +1,8 @@ [nation_kindergarden] -translation_domain="freeciv" +translation_domain = "freeciv" -name = _("Kindergarden") +name = _("Kindergarden") plural = _("?plural:Children") ; /* xgettext:no-c-format */ legend = _("Deneb 7 ended vacation of children and their parents. Everyone \ @@ -23,19 +23,15 @@ color.r = 255 color.g = 0 color.b = 255 -init_techs="" -init_buildings="" -init_units="" +init_techs = "" +init_buildings = "" +init_units = "" trait_expansionist_min = 250 trait_expansionist_max = 250 trait_trader_min = 30 trait_trader_max = 30 -; /* <-- avoid gettext warnings -; -; */ - cities = "Toy", "Hakka", "Spaceship", "Doll", "Lego", "Nailgame", "Puzzle", "Ball", "Book", "Slimerium", "Balloon", "Cradle", "Riddlematic", diff --git a/data/alien/nation/lunatics.ruleset b/data/alien/nation/lunatics.ruleset index 33b4c4a9f6..929c3cb6cd 100644 --- a/data/alien/nation/lunatics.ruleset +++ b/data/alien/nation/lunatics.ruleset @@ -1,8 +1,8 @@ [nation_lunatic] -translation_domain="freeciv" +translation_domain = "freeciv" -name = _("Lunatic") +name = _("Lunatic") plural = _("?plural:Lunatics") groups = "Barbarian" legend = _("Something drove them crazy, made them escape the society to seas.") @@ -20,9 +20,9 @@ color.r = 139 color.g = 0 color.b = 0 -init_techs="" -init_buildings="" -init_units="" +init_techs = "" +init_buildings = "" +init_units = "" cities = "Bottom of the Sea" diff --git a/data/alien/nation/madmen.ruleset b/data/alien/nation/madmen.ruleset index c88b092075..b59d0240e5 100644 --- a/data/alien/nation/madmen.ruleset +++ b/data/alien/nation/madmen.ruleset @@ -1,8 +1,8 @@ [nation_madmen] -translation_domain="freeciv" +translation_domain = "freeciv" -name = _("Madmen") +name = _("Madmen") plural = _("?plural:Madmen") groups = "Barbarian" legend = _("They have escaped society, and attack it for no sane reason.") diff --git a/data/alien/nation/mathclub.ruleset b/data/alien/nation/mathclub.ruleset index 297f5c8036..3d428bc761 100644 --- a/data/alien/nation/mathclub.ruleset +++ b/data/alien/nation/mathclub.ruleset @@ -1,8 +1,8 @@ [nation_math_club] -translation_domain="freeciv" +translation_domain = "freeciv" -name = _("Math Club") +name = _("Math Club") plural = _("?plural:Mathematicians") ; /* xgettext:no-c-format */ legend = _("Math Club was traveling home from Math Competition when Deneb 7 \ @@ -23,13 +23,9 @@ color.r = 0 color.g = 255 color.b = 255 -init_techs="" -init_buildings="" -init_units="" - -; /* <-- avoid gettext warnings -; -; */ +init_techs = "" +init_buildings = "" +init_units = "" cities = "Alpha", "Beta", "Gamma", "Delta", "Epsilon", "Zeta", "Eta", diff --git a/data/alien/nation/secretsociety.ruleset b/data/alien/nation/secretsociety.ruleset index 075f51baa0..fe2615f087 100644 --- a/data/alien/nation/secretsociety.ruleset +++ b/data/alien/nation/secretsociety.ruleset @@ -1,8 +1,8 @@ [nation_secret_society] -translation_domain="freeciv" +translation_domain = "freeciv" -name = _("Secret Society") +name = _("Secret Society") plural = _("?plural:Billionaries") ; /* xgettext:no-c-format */ legend = _("They are the truly rich of whom nobody knows anything since \ @@ -25,19 +25,15 @@ color.r = 211 color.g = 211 color.b = 211 -init_techs="" -init_buildings="" -init_units="" +init_techs = "" +init_buildings = "" +init_units = "" trait_trader_min = 150 trait_trader_max = 150 trait_expansionist_min = 35 trait_expansionist_max = 35 -; /* <-- avoid gettext warnings -; -; */ - cities = "Euro", "Dollar", "Yen", "Pound", "Ruble", "Peso", "Dinar", "Lira", "Real", "Rand", "Dong", "Zloty", "Krona", "Markka", "Forint", diff --git a/data/alien/nation/teamgladiators.ruleset b/data/alien/nation/teamgladiators.ruleset index 3ffc12ce67..3f9a0b9ba2 100644 --- a/data/alien/nation/teamgladiators.ruleset +++ b/data/alien/nation/teamgladiators.ruleset @@ -1,8 +1,8 @@ [nation_team_gladiators] -translation_domain="freeciv" +translation_domain = "freeciv" -name = _("Team Gladiators") +name = _("Team Gladiators") plural = _("?plural:Athletes") legend = _("Spaceball is sport of massive teams. Team Gladiators ship contained \ enough players to start entire planetary faction.\n\n\ @@ -23,19 +23,15 @@ color.r = 255 color.g = 0 color.b = 0 -init_techs="" -init_buildings="" -init_units="" +init_techs = "" +init_buildings = "" +init_units = "" trait_trader_min = 35 trait_trader_max = 35 trait_expansionist_min = 40 trait_expansionist_max = 40 -; /* <-- avoid gettext warnings -; -; */ - cities = "Spaceball", "Diving", "Tennis", "Hunting", "Racing", "Soccer", "Gliding", "Civing", "Riding", "Springing", -- 2.33.0