localized name and tooltip for charger and removed tags (yay decompiled code, \u00A7 is just a section sign...)

This commit is contained in:
Florian Nücke 2013-11-27 03:04:23 +01:00
parent d9ac883281
commit 9335c2c645
3 changed files with 27 additions and 37 deletions

View File

@ -3,6 +3,7 @@ oc:block.Adapter.name=Adapter
oc:block.Cable.name=Kabel oc:block.Cable.name=Kabel
oc:block.Capacitor.name=Kondensator oc:block.Capacitor.name=Kondensator
oc:block.Case.name=Gehäuse oc:block.Case.name=Gehäuse
oc:block.Charger.name=Ladestation
oc:block.DiskDrive.name=Diskettenlaufwerk oc:block.DiskDrive.name=Diskettenlaufwerk
oc:block.Keyboard.name=Tastatur oc:block.Keyboard.name=Tastatur
oc:block.PowerConverter.name=Leistungswandler oc:block.PowerConverter.name=Leistungswandler
@ -41,24 +42,25 @@ oc:text.Robot.Power=Energie
# Tooltips # Tooltips
oc:tooltip.Adapter=Erlaubt es Blöcke anzusteuern die keine Komponentenblöcke sind, wie etwa reguläre Minecraft Blöcke oder Blöcke anderer Mods. oc:tooltip.Adapter=Erlaubt es Blöcke anzusteuern die keine Komponentenblöcke sind, wie etwa reguläre Minecraft Blöcke oder Blöcke anderer Mods.
oc:tooltip.Analyzer=Erlaubt es Informationen über Blöcke anzuzeigen, wie zum Bleistift ihre [f]Adresse[7] und ihren [f]Komponentennamen[7].[nl] Erlaubt zudem den Fehler anzuzeigen der zu einem Computerabsturz geführt hat, falls der Computer nicht regulär heruntergefahren wurde. oc:tooltip.Analyzer=Erlaubt es Informationen über Blöcke anzuzeigen, wie zum Bleistift ihre §fAdresse§7 und ihren §fKomponentennamen§7.[nl] Erlaubt zudem den Fehler anzuzeigen der zu einem Computerabsturz geführt hat, falls der Computer nicht regulär heruntergefahren wurde.
oc:tooltip.Cable=Ein billiger Weg verschiedene Blöcke miteinander zu verbinden. oc:tooltip.Cable=Ein billiger Weg verschiedene Blöcke miteinander zu verbinden.
oc:tooltip.Capacitor=Speichert Energie für spätere Verwendung. Kann extrem schnell befüllt und entlehrt werden. oc:tooltip.Capacitor=Speichert Energie für spätere Verwendung. Kann extrem schnell befüllt und entlehrt werden.
oc:tooltip.Case=Das Computergehäuse ist der essentielle Grundbaustein für einen Computer. RAM, Erweiterungskarten und Festplatten können in einem Gehäuse installiert werden. oc:tooltip.Case=Das Computergehäuse ist der essentielle Grundbaustein für einen Computer. RAM, Erweiterungskarten und Festplatten können in einem Gehäuse installiert werden.
oc:tooltip.Charger=Lädt Roboter mit Energie aus Kondensatoren auf. Die Ladegeschwindigkeit hängt vom eingehenden §fRedstonesignal§7 ab, wobei kein Signal heißt "nicht laden", und ein Signal mit maximaler Stärke heißt "lade schnellstmöglich".
oc:tooltip.DiskDrive=Erlaubt es Disketten zu lesen und zu beschreiben. oc:tooltip.DiskDrive=Erlaubt es Disketten zu lesen und zu beschreiben.
oc:tooltip.DiskDrive.CC=ComputerCraft Disketten werden [a]unterstützt[7]. oc:tooltip.DiskDrive.CC=ComputerCraft Disketten werden §aunterstützt§7.
oc:tooltip.GraphicsCard=Erlaubt es den angezeigten Inhalt von Bildschirmen zu ändern.[nl] Höchstauflösung: [f]%sx%s[7].[nl] Maximale Farbtiefe: [f]%s[7].[nl] Operationen/Tick: [f]%s[7]. oc:tooltip.GraphicsCard=Erlaubt es den angezeigten Inhalt von Bildschirmen zu ändern.[nl] Höchstauflösung: §f%sx%s§7.[nl] Maximale Farbtiefe: §f%s§7.[nl] Operationen/Tick: §f%s§7.
oc:tooltip.Keyboard=Kann an Bildschirmen befestigt werden um auf ihnen zu tippen. oc:tooltip.Keyboard=Kann an Bildschirmen befestigt werden um auf ihnen zu tippen.
oc:tooltip.PowerConverter=Wandelt Strom anderer Mods in den internen Energietyp um. Umwandlungsverhältnisse: oc:tooltip.PowerConverter=Wandelt Strom anderer Mods in den internen Energietyp um. Umwandlungsverhältnisse:
oc:tooltip.PowerConverter.IC2=IndustrialCraft² EU: [a]%s:%s[7]. oc:tooltip.PowerConverter.IC2=IndustrialCraft² EU: §a%s:%s§7.
oc:tooltip.PowerConverter.BC=Buildcraft MJ: [a]%s:%s[7]. oc:tooltip.PowerConverter.BC=BuildCraft MJ: §a%s:%s§7.
oc:tooltip.PowerConverter.UE=Universal Electricity Joules: [a]%s:%s[7]. oc:tooltip.PowerConverter.UE=Universal Electricity Joules: §a%s:%s§7.
oc:tooltip.PowerDistributor=Verteilt Energie innerhalb eines Netwerks. Es wird ein Verteiler pro Netzwerk benötigt. Weitere Verteiler hinzuzufügen hat keine Auswirkungen. oc:tooltip.PowerDistributor=Verteilt Energie innerhalb eines Netwerks. Es wird ein Verteiler pro Netzwerk benötigt. Weitere Verteiler hinzuzufügen hat keine Auswirkungen.
oc:tooltip.RedstoneCard=Erlaubt das Lesen und Ausgeben von Redstonesignalen um den Computer oder Roboter herum. oc:tooltip.RedstoneCard=Erlaubt das Lesen und Ausgeben von Redstonesignalen um den Computer oder Roboter herum.
oc:tooltip.RedstoneCard.RedLogic=RedLogic wird [a]unterstützt[7]. oc:tooltip.RedstoneCard.RedLogic=RedLogic wird §aunterstützt§7.
oc:tooltip.RedstoneCard.RedNet=RedNet wird [a]unterstützt[7]. oc:tooltip.RedstoneCard.RedNet=RedNet wird §aunterstützt§7.
oc:tooltip.Robot=Im Gegensatz zu normalen Computern können sich [m]Turtles[r][7] Roboter in der Welt bewegen und ähnlich wie Spieler mit der Welt interagieren. Sie können jedoch [o]nicht[r][7] mit externen Komponenten interagieren! oc:tooltip.Robot=Im Gegensatz zu normalen Computern können sich §mTurtles§r§7 Roboter in der Welt bewegen und ähnlich wie Spieler mit der Welt interagieren. Sie können jedoch §onicht§r§7 mit externen Komponenten interagieren!
oc:tooltip.Router=Erlaubt es mehrere Netzwerke miteinander zu verbinden. Leitet ausschließlich Netzwerknachrichten weiter, Komponenten "hinter" dem Router sind nicht sichtbar. Nützlich um Netzwerke zu trennen, jedoch nach wie vor Kommunikation zwischen den Netzwerken zu erlauben, z.b. mittels Netzwerkkarten. oc:tooltip.Router=Erlaubt es mehrere Netzwerke miteinander zu verbinden. Leitet ausschließlich Netzwerknachrichten weiter, Komponenten "hinter" dem Router sind nicht sichtbar. Nützlich um Netzwerke zu trennen, jedoch nach wie vor Kommunikation zwischen den Netzwerken zu erlauben, z.b. mittels Netzwerkkarten.
oc:tooltip.Screen=Zeigt Text an, gesteuert von Grafikkarten in Computern.[nl] Höchstauflösung: [f]%sx%s[7].[nl] Maximale Farbtiefe: [f]%s[7]. oc:tooltip.Screen=Zeigt Text an, gesteuert von Grafikkarten in Computern.[nl] Höchstauflösung: §f%sx%s§7.[nl] Maximale Farbtiefe: §f%s§7.
oc:tooltip.TooLong=Shift gedrückt halten für mehr Infos. oc:tooltip.TooLong=Shift gedrückt halten für mehr Infos.
oc:tooltip.WirelessNetworkCard=Erlaubt das drahtlose Senden von Netzwerknachrichten, zusätzlich zu normalen. Drahtlose Nachrichten werden nur gesendet, wenn eine [f]Signalstärke[7] festgelegt wurde! oc:tooltip.WirelessNetworkCard=Erlaubt das drahtlose Senden von Netzwerknachrichten, zusätzlich zu normalen. Drahtlose Nachrichten werden nur gesendet, wenn eine §fSignalstärke§7 festgelegt wurde!

View File

@ -1,18 +1,5 @@
# This is the english master file for localizations. It will always be the most # This is the english master file for localizations. It will always be the most
# up-to-date version, so other localizations should be based on this one. # up-to-date version, so other localizations should be based on this one.
#
# Note that tooltips can be formatted using "tags".
# Available colors are:
# [b] = Aqua, [0] = Black, [9] = Blue, [3] = DarkAqua, [1] = DarkBlue,
# [8] = DarkGray, [2] = DarkGreen, [5] = DarkPurple, [4] = DarkRed,
# [6] = Gold, [7] = Gray, [a] = Green, [d] = LightPurple, [c] = Red,
# [f] = White and [e] = Yellow
#
# Available format specifiers are:
# [k] = Obfuscated, [l] = Bold, [m] = Strikethrough, [n] = Underline and
# [o] = Italic
#
# Use [r] to reset any formatting.
# Use [nl] to for a line break. # Use [nl] to for a line break.
# Blocks # Blocks
@ -20,6 +7,7 @@ oc:block.Adapter.name=Adapter
oc:block.Cable.name=Cable oc:block.Cable.name=Cable
oc:block.Capacitor.name=Capacitor oc:block.Capacitor.name=Capacitor
oc:block.Case.name=Case oc:block.Case.name=Case
oc:block.Charger.name=Charger
oc:block.DiskDrive.name=Disk Drive oc:block.DiskDrive.name=Disk Drive
oc:block.Keyboard.name=Keyboard oc:block.Keyboard.name=Keyboard
oc:block.PowerConverter.name=Power Converter oc:block.PowerConverter.name=Power Converter
@ -58,24 +46,25 @@ oc:text.Robot.Power=Power
# Tooltips # Tooltips
oc:tooltip.Adapter=Used to control non-component blocks, such as vanilla blocks or blocks from other mods. oc:tooltip.Adapter=Used to control non-component blocks, such as vanilla blocks or blocks from other mods.
oc:tooltip.Analyzer=Used to display information about blocks, such as their [f]address[7] and [f]component name[7].[nl] Also displays the error that caused a computer to crash if it did not shut down normally. oc:tooltip.Analyzer=Used to display information about blocks, such as their §faddress§7 and §fcomponent name§7.[nl] Also displays the error that caused a computer to crash if it did not shut down normally.
oc:tooltip.Cable=A cheap way of connecting blocks. oc:tooltip.Cable=A cheap way of connecting blocks.
oc:tooltip.Capacitor=Stores energy for later use. Can be filled and emptied very quickly. oc:tooltip.Capacitor=Stores energy for later use. Can be filled and emptied very quickly.
oc:tooltip.Case=The Computer Case is the basic building block for computers and houses the computer's RAM, extension cards and hard disks. oc:tooltip.Case=The Computer Case is the basic building block for computers and houses the computer's RAM, extension cards and hard disks.
oc:tooltip.Charger=Transfers energy from capacitors into adjacent robots. The transfer rate depends on the incoming §fredstone signal§7, where no signal means don't charge robots, and maximum strength means charge at full speed.
oc:tooltip.DiskDrive=Allows reading and writing floppies. oc:tooltip.DiskDrive=Allows reading and writing floppies.
oc:tooltip.DiskDrive.CC=ComputerCraft floppies are [a]supported[7]. oc:tooltip.DiskDrive.CC=ComputerCraft floppies are §asupported§7.
oc:tooltip.GraphicsCard=Used to change what's displayed on screens.[nl] Maximum resolution: [f]%sx%s[7].[nl] Maximum color depth: [f]%s[7].[nl] Operations/tick: [f]%s[7]. oc:tooltip.GraphicsCard=Used to change what's displayed on screens.[nl] Maximum resolution: §f%sx%s§7.[nl] Maximum color depth: §f%s§7.[nl] Operations/tick: §f%s§7.
oc:tooltip.Keyboard=Can be attached to screens to allow typing on them. oc:tooltip.Keyboard=Can be attached to screens to allow typing on them.
oc:tooltip.PowerConverter=Converts power from other mods to the internal energy type. Conversion rates: oc:tooltip.PowerConverter=Converts power from other mods to the internal energy type. Conversion rates:
oc:tooltip.PowerConverter.IC2=[f]IndustrialCraft² EU[7]: [a]%s:%s[7]. oc:tooltip.PowerConverter.IC2=§fIndustrialCraft² EU§7: §a%s:%s§7.
oc:tooltip.PowerConverter.BC=[f]Buildcraft MJ[7]: [a]%s:%s[7]. oc:tooltip.PowerConverter.BC=§fBuildCraft MJ§7: §a%s:%s§7.
oc:tooltip.PowerConverter.UE=[f]Universal Electricity Joules[7]: [a]%s:%s[7]. oc:tooltip.PowerConverter.UE=§fUniversal Electricity Joules§7: §a%s:%s§7.
oc:tooltip.PowerDistributor=Distributes energy inside the network. You will need one of these per network. Adding more than one has no effect. oc:tooltip.PowerDistributor=Distributes energy inside the network. You will need one of these per network. Adding more than one has no effect.
oc:tooltip.RedstoneCard=Allows reading and emitting redstone signals around the computer or robot. oc:tooltip.RedstoneCard=Allows reading and emitting redstone signals around the computer or robot.
oc:tooltip.RedstoneCard.RedLogic=RedLogic is [a]supported[7]. oc:tooltip.RedstoneCard.RedLogic=RedLogic is §asupported§7.
oc:tooltip.RedstoneCard.RedNet=RedNet is [a]supported[7]. oc:tooltip.RedstoneCard.RedNet=RedNet is §asupported§7.
oc:tooltip.Robot=Unlike computers, [m]turtles[r][7] robots can move around and interact with the world much like a player can. They can [o]not[r][7] interact with external components, however! oc:tooltip.Robot=Unlike computers, §mturtles§r§7 robots can move around and interact with the world much like a player can. They can §onot§r§7 interact with external components, however!
oc:tooltip.Router=Allows connecting different networks to each other. Only network messages will be passed along, components will not be visible through this. Use this to separate networks while still allowing communication using Network Cards, for example. oc:tooltip.Router=Allows connecting different networks to each other. Only network messages will be passed along, components will not be visible through this. Use this to separate networks while still allowing communication using Network Cards, for example.
oc:tooltip.Screen=Display text, controlled by a Graphics Card in a Computer.[nl] Maximum resolution: [f]%sx%s[7].[nl] Maximum color depth: [f]%s[7]. oc:tooltip.Screen=Display text, controlled by a Graphics Card in a Computer.[nl] Maximum resolution: §f%sx%s§7.[nl] Maximum color depth: §f%s§7.
oc:tooltip.TooLong=Hold shift for a detailed tooltip. oc:tooltip.TooLong=Hold shift for a detailed tooltip.
oc:tooltip.WirelessNetworkCard=Allows wireless sending of network messages in addition to normal ones. Make sure to set the [f]signal strength[7] or no wireless packet will be sent! oc:tooltip.WirelessNetworkCard=Allows wireless sending of network messages in addition to normal ones. Make sure to set the §fsignal strength§7 or no wireless packet will be sent!

View File

@ -18,11 +18,10 @@ object Tooltip {
else Seq(StatCollector.translateToLocal(Settings.namespace + "tooltip.TooLong")) else Seq(StatCollector.translateToLocal(Settings.namespace + "tooltip.TooLong"))
} }
else { else {
val regex = """(\[[0123456789abcdefklmnor]\])""".r
val nl = """\[nl\]""" val nl = """\[nl\]"""
val lines = mutable.ArrayBuffer.empty[String] val lines = mutable.ArrayBuffer.empty[String]
tooltip.split(nl).foreach(line => { tooltip.split(nl).foreach(line => {
val formatted = regex.replaceAllIn(line.trim, m => "§" + m.group(1).charAt(1)).stripLineEnd val formatted = line.trim.stripLineEnd
var start = 0 var start = 0
var end = 0 var end = 0
var count = 0 var count = 0