Download
(27Kb)
Download
Updated: 05-09-23 01:02 AM
Pictures
File Info
Compatibility:
Embers of Neltharion (10.1.0)
Updated:05-09-23 01:02 AM
Created:07-09-16 05:41 AM
Downloads:4,782
Favorites:5
MD5:

gmDurability

Version: 1010-2023050901
by: gmarco, Wexen

gmDurability

A minimal LDB plugin that displays durability, sells your junks (grey items) and auto-repairs (with guild funds or not).

It shows in a broker display compatible the lowest durability and in its tooltip all the equipment durabilities.

Requires a data broker display like chocolate bar, bazooka, ninjapanel, stat block, titan panel, docking station, buttonbin and more.

If you are interested in helping translating, please visit forum:
http://www.wowinterface.com/download....html#comments

providing the following entries:

Lua Code:
  1. L["Right-Click"] = ""
  2. L["Left-Click"] = ""
  3. L["Middle-Click"] = ""
  4. L["%s: selling %s %s for %s"] = ""
  5. L["repair with guild funds"] = ""
  6. L["repair"] = ""
  7. L["no repair, need more money"] = ""
  8. L["Total %.1f - Equipped %.1f"] = ""
  9. L["Auto repair"] = ""
  10. L["Auto sell junk"] = ""
  11. L["Toggle auto repair"] = ""
  12. L["Toggle use of guild funds"] = ""
  13. L["Toggle auto sell"] = ""
  14. L["below"] = ""
  15. L["above"] = ""
  16. L["average equipped"] = ""


Examples in Italian:
Lua Code:
  1. L["Shift"] = "Maiuscola"
  2. L["Right-Click"] = "Tasto-Destro"
  3. L["Left-Click"] = "Tasto-Sinistro"
  4. L["Middle-Click"] = "Tasto-Centrale"
  5. L["%s: selling %s %s for %s"] = "%s: vendita %s %s per %s"
  6. L["repair with guild funds"] = "riparazione con fondi di gilda"
  7.  
  8. ... etc etc

Actually it supports for the following locale:
- enUS
- itIT
- zhTW and zhCN. Thanks to BNS
- frFR. Thanks to xandoria

1010-2023050901
- added ## IconTexture: Interface\AddOns\*\icon.tga
- bump TOC

1000-2022111701
- Put the container calls inside C_Container
- Fix some other parts of code

1000-2022110601
- added X-WoWI-ID and X-Curse-Project-ID keywords to let WowUp manage it
- bump toc

915-2021110401
- Used the latest LibQTip v.9.1.5-1-g4c6a3d8
- dump toc

915-2021110301
- Hotfix a libqtip error. (taken from xodiv inputs in curseforge pages).
- bump toc

900-2020101801
- update libqtip to the latest 442326b-alpha

900-2020101701
- Localization: frFR. Thanks to Xandoria.
- Used some globals instead of translations. Thanks to myrroddin.
L["Use guild funds"] => _G["GUILDCONTROL_OPTION15_TOOLTIP"]
L["Durability"] => _G["DURABILITY"]
L["Shift"] => _G["SHIFT_KEY"]
L["Right-Click"] not used yet as => _G["HELPFRAME_REPORT_PLAYER_RIGHT_CLICK"]

900-2020101401
- bump toc
- first fixes to work with 9.0.x
- update libqtip to the latest

830-2020041701
- changed the savedvar
- added the scale to the tooltip
- now items can be clicked
- added a help tooltip

830-2020040401
- rewritten using libqtip

830-2020031501
- bump toc

820-2019062801
- bump toc

810-2018122201
- bump toc for 8.1

801-2018072101
- bump toc for 8.0

720-2017052001
- Localization: zhTW and zhCN. Thanks to BNS.
- Revised localization strings to use global strings. Thanks to myrroddin

720-2017051801
- Added localization.
Thanks to phanx for her excellent (as usual) tutorial on addons localization.
https://phanx.net/addons/tutorials/localize
- Localization: itIT
- Modify the clicks to change options using a + Shift to prevents misclicks. (suggested by ceylina)

720-2017050701
- Fix typos

720-2017042301
- Fix a problem with keystones (null price when depleted but grey quality)

v720-2017032801
- bump toc

v1.0-2016113001
- fixed a slot count

v1.0-2016111101
- added the forgotten NeckSlot :)

v1.0-2016110601
- Revert to the old LibDataBroker libs
- fix the double Artifact ilvl display

v1.0-2016110101
- Major rewrite using LibQTip

v1.0-2016102901
- display ilv/name/quality of the equipped slot item

v1.0-2016102601
- bump toc

v1.0-2016070901
- changed name and references into gmDurability

v1.0-2015100301
- some code rewriting.
thanks to Phanx for the fixes and suggestions, you can check all of inputs here:
http://www.wowinterface.com/downloads/fileinfo.php?id=23599#comments

v1.0-2015062401
- bump toc for 6.2

v1.0-2015022501
- bump toc for 6.1

v1.0-2014121601
- Added itemlevel display

v1.0-2014110601
- Replace the custom formatted money function with "GetCoinTextureString(coins)".

v1.0-2014110501
- Added 3 lines of code to show the selling price of the greys items.

local _, itemCount = GetContainerItemInfo(bag, slot);
local _, _, _, _, _, _, _, _, _, _, vendorPrice = GetItemInfo(name)
print(string_format("%s: selling %4s %s for %s", prgname, itemCount, name, moneyformat(vendorPrice * itemCount)))

v1.0-2014110301
- Added the autorepair (with guild funds if possible)
- Added the autosell of grey items
- Register a global array MYDURABILITY to save the preferences

v1.0-2014101501
- bump toc for 6.0

v1.0-2013091001
- bump toc for 5.4

v1.0-2013052101
- bump toc for 5.3

v1.0-2013051601
-- Initial release
Optional Files (0)


Archived Files (4)
File Name
Version
Size
Author
Date
1000-2022111701
27kB
gmarco
11-16-22 11:43 PM
1000-2022110601
26kB
gmarco
11-06-22 01:58 AM
915-2021110401
26kB
gmarco
11-04-21 12:40 AM
915-2021110301
26kB
gmarco
11-03-21 02:27 PM


Post A Reply Comment Options
Unread 06-22-22, 01:31 AM  
Wizardling
A Kobold Labourer
 
Wizardling's Avatar
Premium Member

Forum posts: 0
File comments: 119
Uploads: 0
attempt to compare nil with number

Code:
10x gmDurability\core.lua:322: attempt to compare nil with number
[string "@gmDurability\core.lua"]:322: in function <gmDurability\core.lua:266>
[string "@gmDurability\core.lua"]:374: in function <gmDurability\core.lua:373>
[string "@Titan\LDBToTitan.lua"]:324: in function <Titan\LDBToTitan.lua:283>

Locals:
self = TitanPanelgmDurabilityButton {
 0 = <userdata>
 registry = <table> {
 }
 tooltip = <unnamed> {
 }
}
row = 5
col = 1
tooltip = <unnamed> {
 0 = <userdata>
 OnLeave = <function> defined @gmDurability\core.lua:259
 OnBackdropLoaded = <function> defined @Blizzard_Deprecated\Deprecated_9_1_5.lua:12
 GetBackdropColor = <function> defined @SharedXML\SharedTooltipTemplates.lua:191
 key = "gmDurabilitytip"
 SetBackdropBorderColor = <function> defined @SharedXML\SharedTooltipTemplates.lua:195
 scrollChild = <unnamed> {
 }
 ApplyBackdrop = <function> defined @Blizzard_Deprecated\Deprecated_9_1_5.lua:22
 SetBackdrop = <function> defined @Blizzard_Deprecated\Deprecated_9_1_5.lua:27
 ClearBackdrop = <function> defined @Blizzard_Deprecated\Deprecated_9_1_5.lua:34
 cell_margin_h = 6
 GetBackdropBorderColor = <function> defined @SharedXML\SharedTooltipTemplates.lua:199
 GetBackdrop = <function> defined @Blizzard_Deprecated\Deprecated_9_1_5.lua:19
 height = 40.111114
 SetBorderBlendMode = <function> defined @SharedXML\SharedTooltipTemplates.lua:203
 regularFont = GameTooltipText {
 }
 OnRelease = <function> defined @gmDurability\core.lua:254
 layoutType = "TooltipDefaultLayout"
 headerFont = GameTooltipHeaderText {
 }
 SetupTextureCoordinates = <function> defined @Blizzard_Deprecated\Deprecated_9_1_5.lua:16
 GetBackdropCoordValue = <function> defined @Blizzard_Deprecated\Deprecated_9_1_5.lua:15
 HasBackdropInfo = <function> defined @Blizzard_Deprecated\Deprecated_9_1_5.lua:18
 scrollFrame = <unnamed> {
 }
 GetEdgeSize = <function> defined @Blizzard_Deprecated\Deprecated_9_1_5.lua:14
 NineSlice = <unnamed> {
 }
 colspans = <table> {
 }
 TooltipBackdropOnLoad = <function> defined @SharedXML\SharedTooltipTemplates.lua:172
 width = 235.111119
 autoHideTimerFrame = <unnamed> {
 }
 lines = <table> {
 }
 cell_margin_v = 3
 labelProvider = <table> {
 }
 SetupPieceVisuals = <function> defined @Blizzard_Deprecated\Deprecated_9_1_5.lua:17
 SetBackdropColor = <function> defined @SharedXML\SharedTooltipTemplates.lua:187
 OnBackdropSizeChanged = <function> defined @Blizzard_Deprecated\Deprecated_9_1_5.lua:13
 columns = <table> {
 }
}
(for index) = 2
(for limit) = 16
(for step) = 1
idx = 2
tempdurability = 1
(*temporary) = nil
(*temporary) = 67.125000
(*temporary) = 2
(*temporary) = 68.125000
(*temporary) = 67.125000
(*temporary) = 68.125000
(*temporary) = 68.125000
(*temporary) = false
(*temporary) = "OnMouseDown"
(*temporary) = <function> defined @gmDurability\core.lua:223
(*temporary) = "attempt to compare nil with number"
arg = <table> {
 5 = <table> {
 }
}
LibQTip = <table> {
 activeTooltips = <table> {
 }
 LabelPrototype = <table> {
 }
 tooltipHeap = <table> {
 }
 cellPrototype = <table> {
 }
 tableHeap = <table> {
 }
 providerMetatable = <table> {
 }
 timerHeap = <table> {
 }
 providerPrototype = <table> {
 }
 onReleaseHandlers = <table> {
 }
 LabelProvider = <table> {
 }
 tipMetatable = <table> {
 }
 frameHeap = <table> {
 }
 IterateTooltips = <function> defined @gmDurability\libs\LibQTip-1.0.lua:162
 CreateCellProvider = <function> defined @gmDurability\libs\LibQTip-1.0.lua:280
 layoutCleaner = <unnamed> {
 }
 tipPrototype = <table> {
 }
 IsAcquired = <function> defined @gmDurability\libs\LibQTip-1.0.lua:154
 Release = <function> defined @gmDurability\libs\LibQTip-1.0.lua:143
 Acquire = <function> defined @gmDurability\libs\LibQTip-1.0.lua:118
 cellMetatable = <table> {
 }
 frameMetatable = <table> {
 }
}
ADDON = "gmDurability"
OnRelease = <function> defined @gmDurability\core.lua:254
OnLeave = <function> defined @gmDurability\core.lua:259
string_format = <function> defined =[C]:-1
L = <table> {
 Total %.1f - Equipped %.1f = "T
Last edited by Wizardling : 06-22-22 at 01:31 AM.
Report comment to moderator  
Reply With Quote
Unread 10-18-20, 12:21 AM  
gmarco
An Onyxian Warder
 
gmarco's Avatar
AddOn Author - Click to view AddOns

Forum posts: 362
File comments: 334
Uploads: 46
Re: From the bugsack

Originally Posted by markinat0r
Code:
2x gmDurability\core.lua:322: attempt to compare nil with number
[string "@gmDurability\core.lua"]:322: in function <gmDurability\core.lua:266>
[string "@gmDurability\core.lua"]:374: in function `OnEnter'
[string "@Bazooka\Bazooka-v2.9.6.lua"]:1583: in function `showTip'
[string "@Bazooka\Bazooka-v2.9.6.lua"]:1388: in function <Bazooka\Bazooka.lua:1379>

Locals:
self = BazookaPlugin_gmDurability {
 0 = <userdata>
 tooltip = <unnamed> {
 }
 bzkPlugin = <table> {
 }
}
row = 4
col = 2
tooltip = <unnamed> {
 0 = <userdata>
 lines = <table> {
 }
 OnRelease = <function> defined @gmDurability\core.lua:254
 OnLeave = <function> defined @gmDurability\core.lua:259
 headerFont = GameTooltipHeaderText {
 }
 autoHideTimerFrame = <unnamed> {
 }
 backdropInfo = <table> {
 }
 TopRightCorner = <unnamed> {
 }
 TopLeftCorner = <unnamed> {
 }
 RightEdge = <unnamed> {
 }
 scrollFrame = <unnamed> {
 }
 BottomLeftCorner = <unnamed> {
 }
 height = 26
 columns = <table> {
 }
 cell_margin_v = 3
 TopEdge = <unnamed> {
 }
 BottomEdge = <unnamed> {
 }
 regularFont = GameTooltipText {
 }
 width = 12
 cell_margin_h = 6
 colspans = <table> {
 }
 labelProvider = <table> {
 }
 key = "gmDurabilitytip"
 BottomRightCorner = <unnamed> {
 }
 scrollChild = <unnamed> {
 }
 LeftEdge = <unnamed> {
 }
 Center = <unnamed> {
 }
}
(for index) = 1
(for limit) = 16
(for step) = 1
idx = 1
tempdurability = 1
(*temporary) = nil
(*temporary) = 63.500000
(*temporary) = 2
(*temporary) = 63.500000
(*temporary) = 63.500000
(*temporary) = 63.784843
(*temporary) = 63.784843
(*temporary) = false
(*temporary) = nil
(*temporary) = 3
(*temporary) = "attempt to compare nil with number"
arg = <table> {
}
LibQTip = <table> {
 activeTooltips = <table> {
 }
 LabelPrototype = <table> {
 }
 tooltipHeap = <table> {
 }
 cellPrototype = <table> {
 }
 tableHeap = <table> {
 }
 providerMetatable = <table> {
 }
 timerHeap = <table> {
 }
 providerPrototype = <table> {
 }
 onReleaseHandlers = <table> {
 }
 LabelProvider = <table> {
 }
 tipMetatable = <table> {
 }
 frameHeap = <table> {
 }
 IterateTooltips = <function> defined @Rematch_TSMPetValues\Libs\LibQTip-1.0\LibQTip-1.0.lua:167
 CreateCellProvider = <function> defined @Rematch_TSMPetValues\Libs\LibQTip-1.0\LibQTip-1.0.lua:284
 layoutCleaner = <unnamed> {
 }
 tipPrototype = <table> {
 }
 IsAcquired = <function> defined @Rematch_TSMPetValues\Libs\LibQTip-1.0\LibQTip-1.0.lua:159
 Release = <function> defined @Rematch_TSMPetValues\Libs\LibQTip-1.0\LibQTip-1.0.lua:148
 Acquire = <function> defined @Rematch_TSMPetValues\Libs\LibQTip-1.0\LibQTip-1.0.lua:123
 cellMetatable = <table> {
 }
 frameMetatable = <table> {
 }
}
ADDON = "gmDurability"
OnRelease = <function> defined @gmDurability\core.lua:254
OnLeave = <function> defined @gmDurability\core.lua:259
string_format = <function> defined =[C]:-1
L = <table> {
 Total %.1f - Equipped %.1f = "Total %.1f - Equipped %.1f"
}
milv = nil
oilv = nil
ailv = nil
slots = <table> {
 1 = "HeadSlot"
 2 = "NeckSlot"
 3 = "ShoulderSlot"
 4 = "BackSlot"
 5 = "ChestSlot"
 6 = "WristSlot"
 7 = "HandsSlot"
 8 = "WaistSlot"
 9 = "LegsSlot"
 10 = "FeetSlot"
 11 = "Finger0Slot"
 12 = "Finger1Slot"
 13 = "Trinket0Slot"
 14 = "Trinket1Slot"
 15 = "MainHandSlot"
 16 = "SecondaryHandSlot"
}
colorperc = <function> defined @gmDurability\core.lua:82
durabilities = <table> {
 1 = "100"
 2 = "100"
 3 = "100"
 4 = "100"
 5 = "100"
 6 = "100"
 7 = "100"
 8 = "100"
 9 = "100"
 10 = "100"
 11 = "100"
 12 = "100"
 13 = "100"
 14 = "100"
 15 = "100"
 16 = "100"
}
GetDetailedItemLevel = nil
format_color = "|cff%02x%02x%02x%s"
unescape = <function> defined @gmDurability\core.lua:31
text_color = <table> {
 1 = <table> {
 }
 2 = <table> {
 }
 3 = <table> {
 }
 4 = <table> {
 }
 5 = <table> {
 }
}
Button_OnClick = <function> defined @gmDurability\core.lua:223
YesNo = <function> defined @gmDurability\core.lua:94
LeftButton = " |TTUTORIALFRAME\UI-TUTORIAL-FRAME:13:11:0:-1:512:512:12:66:230:307|t "
Hi,
thanks for the report but I am unable to reproduce it.

Here it works as expected:


I think it could be related to a bug of another addon using a different lib version.
Have you tried please to load only the databroker display (bazooka as I seen) and gmDurability and check if it happens ?

Btw I'll commit a new version with an updated libqtip that solve some incompatibility problems with mixed libs version.

Let me know please.

Thanks
__________________
This is Unix-Land. In quiet nights, you can hear the Windows machines reboot.
Report comment to moderator  
Reply With Quote
Unread 10-17-20, 08:38 PM  
markinat0r
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
From the bugsack

Code:
2x gmDurability\core.lua:322: attempt to compare nil with number
[string "@gmDurability\core.lua"]:322: in function <gmDurability\core.lua:266>
[string "@gmDurability\core.lua"]:374: in function `OnEnter'
[string "@Bazooka\Bazooka-v2.9.6.lua"]:1583: in function `showTip'
[string "@Bazooka\Bazooka-v2.9.6.lua"]:1388: in function <Bazooka\Bazooka.lua:1379>

Locals:
self = BazookaPlugin_gmDurability {
 0 = <userdata>
 tooltip = <unnamed> {
 }
 bzkPlugin = <table> {
 }
}
row = 4
col = 2
tooltip = <unnamed> {
 0 = <userdata>
 lines = <table> {
 }
 OnRelease = <function> defined @gmDurability\core.lua:254
 OnLeave = <function> defined @gmDurability\core.lua:259
 headerFont = GameTooltipHeaderText {
 }
 autoHideTimerFrame = <unnamed> {
 }
 backdropInfo = <table> {
 }
 TopRightCorner = <unnamed> {
 }
 TopLeftCorner = <unnamed> {
 }
 RightEdge = <unnamed> {
 }
 scrollFrame = <unnamed> {
 }
 BottomLeftCorner = <unnamed> {
 }
 height = 26
 columns = <table> {
 }
 cell_margin_v = 3
 TopEdge = <unnamed> {
 }
 BottomEdge = <unnamed> {
 }
 regularFont = GameTooltipText {
 }
 width = 12
 cell_margin_h = 6
 colspans = <table> {
 }
 labelProvider = <table> {
 }
 key = "gmDurabilitytip"
 BottomRightCorner = <unnamed> {
 }
 scrollChild = <unnamed> {
 }
 LeftEdge = <unnamed> {
 }
 Center = <unnamed> {
 }
}
(for index) = 1
(for limit) = 16
(for step) = 1
idx = 1
tempdurability = 1
(*temporary) = nil
(*temporary) = 63.500000
(*temporary) = 2
(*temporary) = 63.500000
(*temporary) = 63.500000
(*temporary) = 63.784843
(*temporary) = 63.784843
(*temporary) = false
(*temporary) = nil
(*temporary) = 3
(*temporary) = "attempt to compare nil with number"
arg = <table> {
}
LibQTip = <table> {
 activeTooltips = <table> {
 }
 LabelPrototype = <table> {
 }
 tooltipHeap = <table> {
 }
 cellPrototype = <table> {
 }
 tableHeap = <table> {
 }
 providerMetatable = <table> {
 }
 timerHeap = <table> {
 }
 providerPrototype = <table> {
 }
 onReleaseHandlers = <table> {
 }
 LabelProvider = <table> {
 }
 tipMetatable = <table> {
 }
 frameHeap = <table> {
 }
 IterateTooltips = <function> defined @Rematch_TSMPetValues\Libs\LibQTip-1.0\LibQTip-1.0.lua:167
 CreateCellProvider = <function> defined @Rematch_TSMPetValues\Libs\LibQTip-1.0\LibQTip-1.0.lua:284
 layoutCleaner = <unnamed> {
 }
 tipPrototype = <table> {
 }
 IsAcquired = <function> defined @Rematch_TSMPetValues\Libs\LibQTip-1.0\LibQTip-1.0.lua:159
 Release = <function> defined @Rematch_TSMPetValues\Libs\LibQTip-1.0\LibQTip-1.0.lua:148
 Acquire = <function> defined @Rematch_TSMPetValues\Libs\LibQTip-1.0\LibQTip-1.0.lua:123
 cellMetatable = <table> {
 }
 frameMetatable = <table> {
 }
}
ADDON = "gmDurability"
OnRelease = <function> defined @gmDurability\core.lua:254
OnLeave = <function> defined @gmDurability\core.lua:259
string_format = <function> defined =[C]:-1
L = <table> {
 Total %.1f - Equipped %.1f = "Total %.1f - Equipped %.1f"
}
milv = nil
oilv = nil
ailv = nil
slots = <table> {
 1 = "HeadSlot"
 2 = "NeckSlot"
 3 = "ShoulderSlot"
 4 = "BackSlot"
 5 = "ChestSlot"
 6 = "WristSlot"
 7 = "HandsSlot"
 8 = "WaistSlot"
 9 = "LegsSlot"
 10 = "FeetSlot"
 11 = "Finger0Slot"
 12 = "Finger1Slot"
 13 = "Trinket0Slot"
 14 = "Trinket1Slot"
 15 = "MainHandSlot"
 16 = "SecondaryHandSlot"
}
colorperc = <function> defined @gmDurability\core.lua:82
durabilities = <table> {
 1 = "100"
 2 = "100"
 3 = "100"
 4 = "100"
 5 = "100"
 6 = "100"
 7 = "100"
 8 = "100"
 9 = "100"
 10 = "100"
 11 = "100"
 12 = "100"
 13 = "100"
 14 = "100"
 15 = "100"
 16 = "100"
}
GetDetailedItemLevel = nil
format_color = "|cff%02x%02x%02x%s"
unescape = <function> defined @gmDurability\core.lua:31
text_color = <table> {
 1 = <table> {
 }
 2 = <table> {
 }
 3 = <table> {
 }
 4 = <table> {
 }
 5 = <table> {
 }
}
Button_OnClick = <function> defined @gmDurability\core.lua:223
YesNo = <function> defined @gmDurability\core.lua:94
LeftButton = " |TTUTORIALFRAME\UI-TUTORIAL-FRAME:13:11:0:-1:512:512:12:66:230:307|t "
Report comment to moderator  
Reply With Quote
Unread 10-17-20, 02:34 AM  
gmarco
An Onyxian Warder
 
gmarco's Avatar
AddOn Author - Click to view AddOns

Forum posts: 362
File comments: 334
Uploads: 46
Originally Posted by myrroddin
Originally Posted by gmarco
Thanks for your inputs.
I have changed the localization files and addon accordingly .

Really thanks again.
Much appreciated.
You are welcome. Here are a few more. When I need to use the global strings, I use the search in my browser, and try to match as closely as possible. Therefore, I search for "shift" with the quotes, and found two entries that might work. I'd pick the one that is closest, if not exactly, to my original intent.
  • SHIFT_KEY_TEXT = "Shift"
  • HELPFRAME_REPORT_PLAYER_RIGHT_CLICK = "Right-Click"
  • "repair -- no closing quote, 7 entries, with a single space after the word, some may interest you
  • GUILDCONTROL_OPTION15_TOOLTIP = "Use guild funds for repairs"
  • DURABILITY = "Durability"
You can also search for "repairs with no closing quote for yet more interesting phrases. I did not find anything for left click or middle click, but perhaps you will have more success.

Thanks so much,

I'll change the code to reflect this in the next update

Thanks.
__________________
This is Unix-Land. In quiet nights, you can hear the Windows machines reboot.
Report comment to moderator  
Reply With Quote
Unread 10-17-20, 02:34 AM  
gmarco
An Onyxian Warder
 
gmarco's Avatar
AddOn Author - Click to view AddOns

Forum posts: 362
File comments: 334
Uploads: 46
Re: French translation

Originally Posted by Xandoria
Please add these code lines for the French translation:


if LOCALE == "frFR" then
-- French translations by Xandoria
L["Shift"] = "Majuscule"
L["Right-Click"] = "Clic-droit"
L["Left-Click"] = "Clic-gauche"
L["Middle-Click"] = "Clic-bouton-central"
L["%s: selling %s %s for %s"] = "%s: vendu %s %s pour %s"
L["repair with guild funds"] = "réparation avec les fonds de la guilde"
L["repair"] = "réparation"
L["no repair, need more money"] = "pas de réparation, fonds insuffisants"
L["Total %.1f - Equipped %.1f"] = "Total %.1f - Equipé %.1f"
L["Auto repair"] = "Réparation automatique"
L["Use guild funds"] = "Utiliser les fonds de la guilde"
L["Auto sell junk"] = "Vente automatique des objets gris"
L["Toggle auto repair"] = "Modifier la réparation automatique"
L["Toggle use of guild funds"] = "Modifier l'utilisation des fonds de la guilde"
L["Toggle auto sell"] = "Modifier la vente automatique"
L["below"] = "inférieur"
L["above"] = "supérieur"
L["average equipped"] = "au niveau moyen d'équipement"
L["Durability"] = "Durabilité'"
L["DataBroker"] = "Data Broker"
return end
Thanks so much... I'll push asap.

Thanks.
__________________
This is Unix-Land. In quiet nights, you can hear the Windows machines reboot.
Report comment to moderator  
Reply With Quote
Unread 10-17-20, 01:32 AM  
Xandoria
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
French translation

Please add these code lines for the French translation:


if LOCALE == "frFR" then
-- French translations by Xandoria
L["Shift"] = "Majuscule"
L["Right-Click"] = "Clic-droit"
L["Left-Click"] = "Clic-gauche"
L["Middle-Click"] = "Clic-bouton-central"
L["%s: selling %s %s for %s"] = "%s: vendu %s %s pour %s"
L["repair with guild funds"] = "réparation avec les fonds de la guilde"
L["repair"] = "réparation"
L["no repair, need more money"] = "pas de réparation, fonds insuffisants"
L["Total %.1f - Equipped %.1f"] = "Total %.1f - Equipé %.1f"
L["Auto repair"] = "Réparation automatique"
L["Use guild funds"] = "Utiliser les fonds de la guilde"
L["Auto sell junk"] = "Vente automatique des objets gris"
L["Toggle auto repair"] = "Modifier la réparation automatique"
L["Toggle use of guild funds"] = "Modifier l'utilisation des fonds de la guilde"
L["Toggle auto sell"] = "Modifier la vente automatique"
L["below"] = "inférieur"
L["above"] = "supérieur"
L["average equipped"] = "au niveau moyen d'équipement"
L["Durability"] = "Durabilité'"
L["DataBroker"] = "Data Broker"
return end
Report comment to moderator  
Reply With Quote
Unread 05-22-17, 01:23 AM  
myrroddin
A Pyroguard Emberseer
 
myrroddin's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1240
File comments: 226
Uploads: 21
Originally Posted by gmarco
Thanks for your inputs.
I have changed the localization files and addon accordingly .

Really thanks again.
Much appreciated.
You are welcome. Here are a few more. When I need to use the global strings, I use the search in my browser, and try to match as closely as possible. Therefore, I search for "shift" with the quotes, and found two entries that might work. I'd pick the one that is closest, if not exactly, to my original intent.
  • SHIFT_KEY_TEXT = "Shift"
  • HELPFRAME_REPORT_PLAYER_RIGHT_CLICK = "Right-Click"
  • "repair -- no closing quote, 7 entries, with a single space after the word, some may interest you
  • GUILDCONTROL_OPTION15_TOOLTIP = "Use guild funds for repairs"
  • DURABILITY = "Durability"
You can also search for "repairs with no closing quote for yet more interesting phrases. I did not find anything for left click or middle click, but perhaps you will have more success.
Report comment to moderator  
Reply With Quote
Unread 05-20-17, 03:41 AM  
gmarco
An Onyxian Warder
 
gmarco's Avatar
AddOn Author - Click to view AddOns

Forum posts: 362
File comments: 334
Uploads: 46
Thanks for your inputs.
I have changed the localization files and addon accordingly .

Really thanks again.
Much appreciated.
__________________
This is Unix-Land. In quiet nights, you can hear the Windows machines reboot.
Report comment to moderator  
Reply With Quote
Unread 05-19-17, 06:21 PM  
myrroddin
A Pyroguard Emberseer
 
myrroddin's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1240
File comments: 226
Uploads: 21
Some of your translations are not necessary, and are already translated via the global strings. As examples: "Yes" and "No" are YES and NO, which the game will localize for you. Same with "Item Level" is the global string ITEM_UPGRADE_STAT_AVERAGE_ITEM_LEVEL. This will save you quite a lot of work.
Report comment to moderator  
Reply With Quote
Unread 05-18-17, 10:41 PM  
BNS
A Kobold Labourer
 
BNS's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 111
Uploads: 1
[quote=gmarco]
Originally Posted by BNS

Hi, first if all thanks for the translations.
Am I wrong or they seems equals to me may I use one for both of the languages ?

Something like:
Lua Code:
  1. if LOCALE == "zhTW" or LOCALE == "zhCN" then
  2.  
  3. -- one of your translations
  4.  
  5. end

or I have to put them in 2 distinct sections ?

Really thanks.
Put them in 2 distinct sections is better.
Report comment to moderator  
Reply With Quote
Unread 05-18-17, 12:40 PM  
gmarco
An Onyxian Warder
 
gmarco's Avatar
AddOn Author - Click to view AddOns

Forum posts: 362
File comments: 334
Uploads: 46
Originally Posted by BNS
zhTW:
L["Shift"] = "Shift"
L["Right-Click"] = "右鍵"
L["Left-Click"] = "左鍵"
L["Middle-Click"] = "中鍵"
L["YES"] = "是"
L["NO"] = "不"
L["%s: selling %s %s for %s"] = "%s:出售%s %s 獲得%s"
L["repair with guild funds"] = "修理使用公會資金"
L["repair"] = "修理"
L["no repair, need more money"] = "沒有修理,需要更多金錢"
L["Item Level: Total %.1f - Equipped %.1f"] = "物品等級:總計 %.1f - 已裝備 %.1f"
L["Auto repair"] = "自動修理"
L["Use guild funds"] = "使用公會資金"
L["Auto sell junk"] = "自動出售垃圾"
L["Toggle auto repair"] = "切換自動修理"
L["Toggle use of guild funds"] = "切換使用公會資金"
L["Toggle auto sell"] = "切換自動出售"
L["ItemLevel"] = "物品等級"
L["below"] = "以下"
L["above"] = "以上"
L["average equipped"] = "平均已裝備"
L["Durability"] = "耐久度"

zhCN:
L["Shift"] = "Shift"
L["Right-Click"] = "右键"
L["Left-Click"] = "左键"
L["Middle-Click"] = "中键"
L["YES"] = "是"
L["NO"] = "不"
L["%s: selling %s %s for %s"] = "%s:出售%s %s 获得%s"
L["repair with guild funds"] = "修理使用公会资金"
L["repair"] = "修理"
L["no repair, need more money"] = "没有修理,需要更多金钱"
L["Item Level: Total %.1f - Equipped %.1f"] = "物品等级:总计 %.1f - 已装备 %.1f"
L["Auto repair"] = "自动修理"
L["Use guild funds"] = "使用公会资金"
L["Auto sell junk"] = "自动出售垃圾"
L["Toggle auto repair"] = "切换自动修理"
L["Toggle use of guild funds"] = "切换使用公会资金"
L["Toggle auto sell"] = "切换自动出售"
L["ItemLevel"] = "物品等级"
L["below"] = "以下"
L["above"] = "以上"
L["average equipped"] = "平均已装备"
L["Durability"] = "耐久度"

Hi, first if all thanks for the translations.
Am I wrong or they seems equals to me may I use one for both of the languages ?

Something like:
Lua Code:
  1. if LOCALE == "zhTW" or LOCALE == "zhCN" then
  2.  
  3. -- one of your translations
  4.  
  5. end

or I have to put them in 2 distinct sections ?

Really thanks.
__________________
This is Unix-Land. In quiet nights, you can hear the Windows machines reboot.
Last edited by gmarco : 05-18-17 at 12:58 PM.
Report comment to moderator  
Reply With Quote
Unread 05-18-17, 03:00 AM  
BNS
A Kobold Labourer
 
BNS's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 111
Uploads: 1
zhTW:
L["Shift"] = "Shift"
L["Right-Click"] = "右鍵"
L["Left-Click"] = "左鍵"
L["Middle-Click"] = "中鍵"
L["YES"] = "是"
L["NO"] = "不"
L["%s: selling %s %s for %s"] = "%s:出售%s %s 獲得%s"
L["repair with guild funds"] = "修理使用公會資金"
L["repair"] = "修理"
L["no repair, need more money"] = "沒有修理,需要更多金錢"
L["Item Level: Total %.1f - Equipped %.1f"] = "物品等級:總計 %.1f - 已裝備 %.1f"
L["Auto repair"] = "自動修理"
L["Use guild funds"] = "使用公會資金"
L["Auto sell junk"] = "自動出售垃圾"
L["Toggle auto repair"] = "切換自動修理"
L["Toggle use of guild funds"] = "切換使用公會資金"
L["Toggle auto sell"] = "切換自動出售"
L["ItemLevel"] = "物品等級"
L["below"] = "以下"
L["above"] = "以上"
L["average equipped"] = "平均已裝備"
L["Durability"] = "耐久度"

zhCN:
L["Shift"] = "Shift"
L["Right-Click"] = "右键"
L["Left-Click"] = "左键"
L["Middle-Click"] = "中键"
L["YES"] = "是"
L["NO"] = "不"
L["%s: selling %s %s for %s"] = "%s:出售%s %s 获得%s"
L["repair with guild funds"] = "修理使用公会资金"
L["repair"] = "修理"
L["no repair, need more money"] = "没有修理,需要更多金钱"
L["Item Level: Total %.1f - Equipped %.1f"] = "物品等级:总计 %.1f - 已装备 %.1f"
L["Auto repair"] = "自动修理"
L["Use guild funds"] = "使用公会资金"
L["Auto sell junk"] = "自动出售垃圾"
L["Toggle auto repair"] = "切换自动修理"
L["Toggle use of guild funds"] = "切换使用公会资金"
L["Toggle auto sell"] = "切换自动出售"
L["ItemLevel"] = "物品等级"
L["below"] = "以下"
L["above"] = "以上"
L["average equipped"] = "平均已装备"
L["Durability"] = "耐久度"
Report comment to moderator  
Reply With Quote
Unread 05-17-17, 11:26 PM  
gmarco
An Onyxian Warder
 
gmarco's Avatar
AddOn Author - Click to view AddOns

Forum posts: 362
File comments: 334
Uploads: 46
Originally Posted by ceylina
Do you think you could change the modifiers that turn of auto repair, guild repair and sell junk to require a shift plus a click? I have accidentally clicked these so many times it would be great.

line 126-129 would just be changed like this to do the actual code

Code:
if      button == "LeftButton"   and IsShiftKeyDown()	then GMDURABILITY["AUTOREPAIR"] = 	not GMDURABILITY["AUTOREPAIR"] 					
elseif 	button == "MiddleButton" and IsShiftKeyDown()	then GMDURABILITY["GUILDREPAIR"] = 	not GMDURABILITY["GUILDREPAIR"] 					
elseif 	button == "RightButton"  and IsShiftKeyDown()	then GMDURABILITY["AUTOSELL"] = 	not GMDURABILITY["AUTOSELL"] 
end
of course localizations would need changing but the above is what I am using to not accidently click anymore
Hi, thanks for the suggestion.
I have committed a new version implementing this.

Thanks again.
__________________
This is Unix-Land. In quiet nights, you can hear the Windows machines reboot.
Report comment to moderator  
Reply With Quote
Unread 05-16-17, 09:22 PM  
ceylina
A Wyrmkin Dreamwalker

Forum posts: 50
File comments: 93
Uploads: 0
Do you think you could change the modifiers that turn of auto repair, guild repair and sell junk to require a shift plus a click? I have accidentally clicked these so many times it would be great.

line 126-129 would just be changed like this to do the actual code

Code:
if      button == "LeftButton"   and IsShiftKeyDown()	then GMDURABILITY["AUTOREPAIR"] = 	not GMDURABILITY["AUTOREPAIR"] 					
elseif 	button == "MiddleButton" and IsShiftKeyDown()	then GMDURABILITY["GUILDREPAIR"] = 	not GMDURABILITY["GUILDREPAIR"] 					
elseif 	button == "RightButton"  and IsShiftKeyDown()	then GMDURABILITY["AUTOSELL"] = 	not GMDURABILITY["AUTOSELL"] 
end
of course localizations would need changing but the above is what I am using to not accidently click anymore
Last edited by ceylina : 05-16-17 at 09:27 PM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: