Quantcast

Localize additional strings

James Whitehead II [05-27-09 - 10:50]
Localize additional strings
Filename
Localization.enUS.lua
TomTom.lua
diff --git a/Localization.enUS.lua b/Localization.enUS.lua
index 8be8578..86528a2 100644
--- a/Localization.enUS.lua
+++ b/Localization.enUS.lua
@@ -1,132 +1,6 @@
 --Localization.enUS.lua

 TomTomLocals = {
-	["%d yards"] = "%d yards",
-	["%s (%.2f, %.2f)"] = "%s (%.2f, %.2f)",
-	["%s yards away"] = "%s yards away",
-	["Accept waypoints from guild and party members"] = "Accept waypoints from guild and party members",
-	["Allow control-right clicking on map to create new waypoint"] = "Allow control-right clicking on map to create new waypoint",
-	["Alpha"] = "Alpha",
-	["Announce new waypoints when they are added"] = "Announce new waypoints when they are added",
-	["Are you sure you would like to remove ALL TomTom waypoints?"] = "Are you sure you would like to remove ALL TomTom waypoints?",
-	["Arrow colors"] = "Arrow colors",
-	["Arrow display"] = "Arrow display",
-	["Ask for confirmation on \"Remove All\""] = "Ask for confirmation on \"Remove All\"",
-	["Automatically set waypoint arrow"] = "Automatically set waypoint arrow",
-	["Background color"] = "Background color",
-	["Bad color"] = "Bad color",
-	["Block height"] = "Block height",
-	["Block width"] = "Block width",
-	["Border color"] = "Border color",
-	["Clear waypoint distance"] = "Clear waypoint distance",
-	["Clear waypoint from crazy arrow"] = "Clear waypoint from crazy arrow",
-	["Coordinate Accuracy"] = "Coordinate Accuracy",
-	["Coordinate Block"] = "Coordinate Block",
-	["Coordinates can be displayed as simple XX, YY coordinate, or as more precise XX.XX, YY.YY.  This setting allows you to control that precision"] = "Coordinates can be displayed as simple XX, YY coordinate, or as more precise XX.XX, YY.YY.  This setting allows you to control that precision",
-	["Create note modifier"] = "Create note modifier",
-	["Ctrl+Right Click To Add a Waypoint"] = "Ctrl+Right Click To Add a Waypoint",
-	["Cursor Coordinates"] = "Cursor Coordinates",
-	["Cursor coordinate accuracy"] = "Cursor coordinate accuracy",
-	["Disable all mouse input"] = "Disable all mouse input",
-	["Disables the crazy taxi arrow for mouse input, allowing all clicks to pass through"] = "Disables the crazy taxi arrow for mouse input, allowing all clicks to pass through",
-	["Display Settings"] = "Display Settings",
-	["Display waypoints from other zones"] = "Display waypoints from other zones",
-	["Enable coordinate block"] = "Enable coordinate block",
-	["Enable floating waypoint arrow"] = "Enable floating waypoint arrow",
-	["Enable minimap waypoints"] = "Enable minimap waypoints",
-	["Enable mouseover tooltips"] = "Enable mouseover tooltips",
-	["Enable showing cursor coordinates"] = "Enable showing cursor coordinates",
-	["Enable showing player coordinates"] = "Enable showing player coordinates",
-	["Enable the right-click contextual menu"] = "Enable the right-click contextual menu",
-	["Enable world map waypoints"] = "Enable world map waypoints",
-	["Enables a floating block that displays your current position in the current zone"] = "Enables a floating block that displays your current position in the current zone",
-	["Enables a menu when right-clicking on a waypoint allowing you to clear or remove waypoints"] = "Enables a menu when right-clicking on a waypoint allowing you to clear or remove waypoints",
-	["Enables a menu when right-clicking on the waypoint arrow allowing you to clear or remove waypoints"] = "Enables a menu when right-clicking on the waypoint arrow allowing you to clear or remove waypoints",
-	["Font size"] = "Font size",
-	["Found %d possible matches for zone %s.  Please be more specific"] = "Found %d possible matches for zone %s.  Please be more specific",
-	["Found multiple matches for zone '%s'.  Did you mean: %s"] = "Found multiple matches for zone '%s'.  Did you mean: %s",
-	["General Options"] = "General Options",
-	["Good color"] = "Good color",
-	["Lock coordinate block"] = "Lock coordinate block",
-	["Lock waypoint arrow"] = "Lock waypoint arrow",
-	["Locks the coordinate block so it can't be accidentally dragged to another location"] = "Locks the coordinate block so it can't be accidentally dragged to another location",
-	["Locks the waypoint arrow, so it can't be moved accidentally"] = "Locks the waypoint arrow, so it can't be moved accidentally",
-	["Middle color"] = "Middle color",
-	["Minimap"] = "Minimap",
-	["No"] = "No",
-	["Options profile"] = "Options profile",
-	["Options that alter the coordinate block"] = "Options that alter the coordinate block",
-	["Player Coordinates"] = "Player Coordinates",
-	["Player coordinate accuracy"] = "Player coordinate accuracy",
-	["Profile Options"] = "Profile Options",
-	["Prompt before accepting sent waypoints"] = "Prompt before accepting sent waypoints",
-	["Remove all waypoints"] = "Remove all waypoints",
-	["Remove all waypoints from this zone"] = "Remove all waypoints from this zone",
-	["Remove waypoint"] = "Remove waypoint",
-	["Reset Position"] = "Reset Position",
-	["Resets the position of the waypoint arrow if its been dragged off screen"] = "Resets the position of the waypoint arrow if its been dragged off screen",
-	["Save new waypoints until I remove them"] = "Save new waypoints until I remove them",
-	["Save profile for TomTom waypoints"] = "Save profile for TomTom waypoints",
-	["Save this waypoint between sessions"] = "Save this waypoint between sessions",
-	["Saved profile for TomTom options"] = "Saved profile for TomTom options",
-	["Scale"] = "Scale",
-	["Send to battleground"] = "Send to battleground",
-	["Send to guild"] = "Send to guild",
-	["Send to party"] = "Send to party",
-	["Send to raid"] = "Send to raid",
-	["Send waypoint to"] = "Send waypoint to",
-	["Set as waypoint arrow"] = "Set as waypoint arrow",
-	["Show estimated time to arrival"] = "Show estimated time to arrival",
-	["Shows an estimate of how long it will take you to reach the waypoint at your current speed"] = "Shows an estimate of how long it will take you to reach the waypoint at your current speed",
-	["The color to be displayed when you are halfway between the direction of the active waypoint and the completely wrong direction"] = "The color to be displayed when you are halfway between the direction of the active waypoint and the completely wrong direction",
-	["The color to be displayed when you are moving in the direction of the active waypoint"] = "The color to be displayed when you are moving in the direction of the active waypoint",
-	["The color to be displayed when you are moving in the opposite direction of the active waypoint"] = "The color to be displayed when you are moving in the opposite direction of the active waypoint",
-	["The display of the coordinate block can be customized by changing the options below."] = "The display of the coordinate block can be customized by changing the options below.",
-	["The floating waypoint arrow can change color depending on whether or nor you are facing your destination.  By default it will display green when you are facing it directly, and red when you are facing away from it.  These colors can be changed in this section.  Setting these options to the same color will cause the arrow to not change color at all"] = "The floating waypoint arrow can change color depending on whether or nor you are facing your destination.  By default it will display green when you are facing it directly, and red when you are facing away from it.  These colors can be changed in this section.  Setting these options to the same color will cause the arrow to not change color at all",
-	["There were no waypoints to remove in %s"] = "There were no waypoints to remove in %s",
-	["These options let you customize the size and opacity of the waypoint arrow, making it larger or partially transparent, as well as limiting the size of the title display."] = "These options let you customize the size and opacity of the waypoint arrow, making it larger or partially transparent, as well as limiting the size of the title display.",
-	["This option will not remove any waypoints that are currently set to persist, but only effects new waypoints that get set"] = "This option will not remove any waypoints that are currently set to persist, but only effects new waypoints that get set",
-	["This option will toggle whether or not you are asked to confirm removing all waypoints.  If enabled, a dialog box will appear, requiring you to confirm removing the waypoints"] = "This option will toggle whether or not you are asked to confirm removing all waypoints.  If enabled, a dialog box will appear, requiring you to confirm removing the waypoints",
-	["This setting allows you to change the opacity of the title text, making it transparent or opaque"] = "This setting allows you to change the opacity of the title text, making it transparent or opaque",
-	["This setting allows you to change the opacity of the waypoint arrow, making it transparent or opaque"] = "This setting allows you to change the opacity of the waypoint arrow, making it transparent or opaque",
-	["This setting allows you to change the scale of the waypoint arrow, making it larger or smaller"] = "This setting allows you to change the scale of the waypoint arrow, making it larger or smaller",
-	["This setting allows you to specify the maximum height of the title text.  Any titles that are longer than this height (in game pixels) will be truncated."] = "This setting allows you to specify the maximum height of the title text.  Any titles that are longer than this height (in game pixels) will be truncated.",
-	["This setting allows you to specify the maximum width of the title text.  Any titles that are longer than this width (in game pixels) will be wrapped to the next line."] = "This setting allows you to specify the maximum width of the title text.  Any titles that are longer than this width (in game pixels) will be wrapped to the next line.",
-	["This setting allows you to specify the scale of the title text."] = "This setting allows you to specify the scale of the title text.",
-	["This setting changes the modifier used by TomTom when right-clicking on the world map to create a waypoint"] = "This setting changes the modifier used by TomTom when right-clicking on the world map to create a waypoint",
-	["This setting will control the distance at which the waypoint arrow switches to a downwards arrow, indicating you have arrived at your destination"] = "This setting will control the distance at which the waypoint arrow switches to a downwards arrow, indicating you have arrived at your destination",
-	["Title Alpha"] = "Title Alpha",
-	["Title Height"] = "Title Height",
-	["Title Scale"] = "Title Scale",
-	["Title Width"] = "Title Width",
-	["TomTom"] = "TomTom",
-	["TomTom Waypoint Arrow"] = "TomTom Waypoint Arrow",
-	["TomTom can announce new waypoints to the default chat frame when they are added"] = "TomTom can announce new waypoints to the default chat frame when they are added",
-	["TomTom can display a tooltip containing information abouto waypoints, when they are moused over.  This setting toggles that functionality"] = "TomTom can display a tooltip containing information abouto waypoints, when they are moused over.  This setting toggles that functionality",
-	["TomTom can display multiple waypoint arrows on the minimap.  These options control the display of these waypoints"] = "TomTom can display multiple waypoint arrows on the minimap.  These options control the display of these waypoints",
-	["TomTom can display multiple waypoints on the world map.  These options control the display of these waypoints"] = "TomTom can display multiple waypoints on the world map.  These options control the display of these waypoints",
-	["TomTom can hide waypoints in other zones, this setting toggles that functionality"] = "TomTom can hide waypoints in other zones, this setting toggles that functionality",
-	["TomTom provides an arrow that can be placed anywhere on the screen.  Similar to the arrow in \"Crazy Taxi\" it will point you towards your next waypoint"] = "TomTom provides an arrow that can be placed anywhere on the screen.  Similar to the arrow in \"Crazy Taxi\" it will point you towards your next waypoint",
-	["TomTom provides you with a floating coordinate display that can be used to determine your current position.  These options can be used to enable or disable this display, or customize the block's display."] = "TomTom provides you with a floating coordinate display that can be used to determine your current position.  These options can be used to enable or disable this display, or customize the block's display.",
-	["TomTom waypoint"] = "TomTom waypoint",
-	["TomTom's saved variables are organized so you can have shared options across all your characters, while having different sets of waypoints for each.  These options sections allow you to change the saved variable configurations so you can set up per-character options, or even share waypoints between characters"] = "TomTom's saved variables are organized so you can have shared options across all your characters, while having different sets of waypoints for each.  These options sections allow you to change the saved variable configurations so you can set up per-character options, or even share waypoints between characters",
-	["Unknown distance"] = "Unknown distance",
-	["Waypoint Arrow"] = "Waypoint Arrow",
-	["Waypoint Options"] = "Waypoint Options",
-	["Waypoint communication"] = "Waypoint communication",
-	["Waypoint from %s"] = "Waypoint from %s",
-	["Waypoints can be automatically cleared when you reach them.  This slider allows you to customize the distance in yards that signals your \"arrival\" at the waypoint.  A setting of 0 turns off the auto-clearing feature\n\nChanging this setting only takes effect after reloading your interface."] = "Waypoints can be automatically cleared when you reach them.  This slider allows you to customize the distance in yards that signals your \"arrival\" at the waypoint.  A setting of 0 turns off the auto-clearing feature\n\nChanging this setting only takes effect after reloading your interface.",
-	["Waypoints profile"] = "Waypoints profile",
-	["When a new waypoint is added, TomTom can automatically set the new waypoint as the \"Crazy Arrow\" waypoint."] = "When a new waypoint is added, TomTom can automatically set the new waypoint as the \"Crazy Arrow\" waypoint.",
-	["World Map"] = "World Map",
-	["Yes"] = "Yes",
-	["\"Arrival Distance\""] = "\"Arrival Distance\"",
-	["|cffffff78/way <x> <y> [desc]|r - Adds a waypoint at x,y with descrtiption desc"] = "|cffffff78/way <x> <y> [desc]|r - Adds a waypoint at x,y with descrtiption desc",
-	["|cffffff78/way <zone> <x> <y> [desc]|r - Adds a waypoint at x,y in zone with description desc"] = "|cffffff78/way <zone> <x> <y> [desc]|r - Adds a waypoint at x,y in zone with description desc",
-	["|cffffff78/way reset <zone>|r - Resets all waypoints in zone"] = "|cffffff78/way reset <zone>|r - Resets all waypoints in zone",
-	["|cffffff78/way reset all|r - Resets all waypoints"] = "|cffffff78/way reset all|r - Resets all waypoints",
-	["|cffffff78TomTom |r/way |cffffff78Usage:|r"] = "|cffffff78TomTom |r/way |cffffff78Usage:|r",
-	["|cffffff78TomTom|r: Added '%s' (sent from %s) to zone %s"] = "|cffffff78TomTom|r: Added '%s' (sent from %s) to zone %s",
 }

 setmetatable(TomTomLocals, {__index=function(t,k) rawset(t, k, k); return k; end})
diff --git a/TomTom.lua b/TomTom.lua
index f71f8aa..6db2bf8 100755
--- a/TomTom.lua
+++ b/TomTom.lua
@@ -786,7 +786,7 @@ function TomTom:AddZWaypoint(c, z, x, y, desc, persistent, minimap, world, custo

 	if not silent and self.profile.general.announce then
 		local ctxt = RoundCoords(x/100, y/100, 2)
-        local msg = string.format("|cffffff78TomTom:|r Added a waypoint (%s%s%s) in %s", desc and desc or "", desc and " - " or "", ctxt, zone)
+        local msg = string.format(L["|cffffff78TomTom:|r Added a waypoint (%s%s%s) in %s"], desc and desc or "", desc and " - " or "", ctxt, zone)
 		ChatFrame1:AddMessage(msg)
 	end