Skip to content
This repository has been archived by the owner on Dec 20, 2021. It is now read-only.

Multi language labels #951

Merged
merged 19 commits into from
Nov 27, 2020
Merged

Conversation

gucio321
Copy link
Contributor

@gucio321 gucio321 commented Nov 25, 2020

Hi there,
Labels in Main Menu should now depends on string tables.
I don't say, that's a perfect solution of #944, but it works for now.
Let me know, is main_menu.go right place to put this "table interpretation", or maybe better to put it into d2resource?

@gucio321 gucio321 marked this pull request as ready for review November 26, 2020 11:06
Comment on lines -138 to -142
// SplitIntoLinesWithMaxWidthOneLine does the same as SplitIntoLinesWithMaxWidth but return string with newline char
func SplitIntoLinesWithMaxWidthOneLine(s string, l int) string {
return strings.Join(SplitIntoLinesWithMaxWidth(s, l), "\n")
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you fr removing this :)

paladinDescr

//nolint:deadcode,varcheck,unused // will be used, or is need
notUsed1 // this position isn't used here.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think you can put _ if you want to skip an index here

@essial essial merged commit 73d3812 into OpenDiablo2:master Nov 27, 2020
@gucio321 gucio321 mentioned this pull request Dec 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants