Comments (11)
I can understand you perfectly. The Simplified Chinese client has not been translated. That being said, there is NO support for it yet, so things WILL break.
Please attach the file here on github by either pasting it in or dragging it into the window here.
from kiwiiteminfo.
I uploaded the Simplified Chinese translation file in the package containing a ZHCN directory.
zhCN.zip
To use this zhCN localization file properly, you need to modify some of the code in Tooltip. lua, which I'll post below for your reference.
--zhCN
local tt_armor = text:match("%d+[" .. L("TOOLTIP_PRY_ARMOR") .. "]+", 1)
local tt_block = text:match("%d+[" .. L("TOOLTIP_PRY_BLOCK") .. "]+", 1)
local tt_dps = text:match("[" .. L("TOOLTIP_PRY_DPS") .. "]+%d+%.%d+", 1)
local tt_damage = text:match("%d+%s%-%s%d+[" .. L("TOOLTIP_PRY_DAMAGE") .. "]+", 1)
if(tt_dps and tt_dps:find(L"TOOLTIP_PRY_DPS")) then local l = string.split(" ", text) --zhCN local l, n = string.gsub(tt_dps, L"TOOLTIP_PRY_DPS", "(") -- l = l:sub(2) dps = tt_dps and tt_dps:find(L"TOOLTIP_PRY_DPS") and (dps + tonumber(l)) or dps end if(tt_damage and tt_damage:find(L"TOOLTIP_PRY_DAMAGE")) then local l, _, _, r = string.split("- ", text) --zhCN r = string.gsub(r, L"TOOLTIP_PRY_DAMAGE", "") -- min_dmg = tonumber(l) max_dmg = tonumber(r) end
Finally, I have a suggestion. can you turn on aci by default? without a GUI setup interface, many players are not good at using the command line to change feature Settings. Or, consider making a simple GUI setup interface? Thank you.
from kiwiiteminfo.
Your request should belong on issue #5
I assume the reason for this alteration is due to where the numbers are located? I will look at some chinese tooltips of items to affirm this.
from kiwiiteminfo.
https://cn.classic.wowhead.com/item=2870/%E9%93%B6%E9%B3%9E%E8%83%B8%E7%94%B2
These examples aren't zhCN are they? None of the strings you put in for TOOLTIP__ match anything I could find.
In game, could you run /dump GetLocale()
to affirm this is zhCN?
from kiwiiteminfo.
Your request should belong on issue #5
I assume the reason for this alteration is due to where the numbers are located? I will look at some chinese tooltips of items to affirm this.
Yes. Numbers and characters are located differently in the Simplified Chinese client than in the English client. I will provide some pictures of tooltip for your reference later.
https://cn.classic.wowhead.com/item=2870/%E9%93%B6%E9%B3%9E%E8%83%B8%E7%94%B2
These examples aren't zhCN are they? None of the strings you put in for TOOLTIP____ match anything I could find.
In game, could you run
/dump GetLocale()
to affirm this is zhCN?
Yes, I can confirm it is zhCN.
Sorry, I cannot open wowhead.com for the moment. In the web databases, the display format of the item attribute is different from the Chinese client, such as space and location.
from kiwiiteminfo.
Ok great. Once I can verify what I am looking at I can develop a more intuitive way for Tooltip.lua to handle numbers on the left etc. Rather than making it specific cases via if statements or such, as the CODE isn't worried about the localization. For example, a variable in the locale file determining such a thing.
This is the last thing on my list for the release version of v2.2.4
from kiwiiteminfo.
As shown in the picture:
left:
1308点护甲(->Armor)
25格挡(->Block)
+13 耐力(->Stamina)
+7 精神(->Spirit)
right:
94 - 142伤害(->Damage)
(每秒伤害34.7)(->DPS) with Brackets in full-width format
iLvl should have been displayed in the upper right corner, but it wasn't.
from kiwiiteminfo.
I will take a look and compare it and conjure something. Portgues also has similar issue. I am not sure why ilvl isn't shown, as this has nothing to do with locale. Perhaps you have it disabled? Check /kiwiii vars
from kiwiiteminfo.
It's enabled, by default setting.
https://www.wowinterface.com/downloads/info25188-NDuiClassic.html
It's my UI AddOns just you have seen. maybe it caused? but i didn't get any error messages.
I'll try using ADD_NEWLINE() when i have time to see the result.
from kiwiiteminfo.
If its just a skin it won't matter. I edit GameTooltipTextRight1 line to set it.
from kiwiiteminfo.
Can you affirm that the formats are correct? I removed some of the %s
's that would cause incompat.
Should I make something happen to prevent the number 250?
from kiwiiteminfo.
Related Issues (20)
- Export command strings to locale HOT 1
- Translate frFR.lua strings HOT 16
- Translate itIT.lua strings HOT 1
- Translate koKR.lua strings HOT 1
- Translate ruRU.lua strings HOT 1
- Translate zhTW.lua strings HOT 2
- How should the translation links look in README*.md? HOT 3
- Translations need commands translated HOT 2
- Salvage denied translation PRs that pushed to wrong branch but was forgotten
- Create Wiki to Debut Functionality and Provide Documentation
- Most of all README*.md need translated/fully translated
- Display RAW Contribution on Selected Piece of Equipment
- README*.md needs new images
- How do y'all feel about me replacing the Character Frame name?
- Display stat effectiveness to aid in choosing item
- Lua Error in 2.3.4 HOT 4
- Complete the translation in the zhcn.lua file HOT 3
- Error message when mouse over aux's search results. HOT 2
- Random Error HOT 3
- Bug with item compare HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kiwiiteminfo.