Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Localisation issue #55

Open
WarMEN3 opened this issue Sep 26, 2022 · 8 comments
Open

Localisation issue #55

WarMEN3 opened this issue Sep 26, 2022 · 8 comments

Comments

@WarMEN3
Copy link

WarMEN3 commented Sep 26, 2022

When using the game client with a locale other than enUS, an error occurs with an empty localization table.
The solution in the patchtable.lua file is to change the code section:

  for loc, _ in pairs(pfDB.locales) do
    if pfDB[db][loc] and pfDB[db][loc.."-turtle"] then
      loc_update = pfDB[db][loc.."-turtle"] or pfDB[db]["enUS-turtle"]
      patchtable(pfDB[db][loc], loc_update)
    end
  end

to

  for loc, _ in pairs(pfDB.locales) do
-- fix for other than enUS locale
    if pfDB[db][loc] and ( pfDB[db][loc.."-turtle"] or pfDB[db]["enUS-turtle"] ) then
      loc_update = pfDB[db][loc.."-turtle"] or pfDB[db]["enUS-turtle"]
      patchtable(pfDB[db][loc], loc_update)
    end
  end
@shagu
Copy link
Owner

shagu commented Sep 26, 2022

Turtle offers multi-locales now?

@WarMEN3
Copy link
Author

WarMEN3 commented Sep 26, 2022

Not yet, but I'm working on RU localization, I can give it for testing.

@pristn
Copy link

pristn commented Nov 2, 2022

Hello. I did as you advised. But the text is still not translated.

for loc, _ in pairs(pfDB.locales) do
if pfDB[db][loc] and ( pfDB[db][loc.."-turtle"] or pfDB[db]["ruRU-turtle"] ) then
loc_update = pfDB[db][loc.."-turtle"] or pfDB[db]["ruRU-turtle"]
patchtable(pfDB[db][loc], loc_update)
end
end

Is this true or not?
If you're interested, I can help with the translation of quests.

@WarMEN3
Copy link
Author

WarMEN3 commented Nov 11, 2022

This is not localization itself, this is just a fix for the addon so that it does not fall off when localization is enabled.
Localization can be downloaded from the link: RU_Turtle_small but it is not completed yet.
Unfortunately, I don't have much time to finish, so the process is slow.

@tjjxlbj
Copy link

tjjxlbj commented Apr 8, 2023

Can you provide Chinese localization? I can translate it myself

@shagu
Copy link
Owner

shagu commented Apr 10, 2023

Can you provide Chinese localization? I can translate it myself

Hi @tjjxlbj. Sure, I have now added the required zhCN translation tables in the latest version (84191d3). Please send your translations with a github pull request or via Discord (shagu#7155).

@tjjxlbj
Copy link

tjjxlbj commented Apr 11, 2023

How do I add your friends with Discord?

@shagu
Copy link
Owner

shagu commented Apr 11, 2023

How do I add your friends with Discord?

image

There's a green "Add Friend" Button

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants