Thread Tools Display Modes
08/30/18, 07:14 AM   #21
lnfinity
AddOn Author - Click to view addons
Join Date: Feb 2017
Posts: 22
Originally Posted by Baertram View Post
Maybe use one of the language addons which for the same as the script. Or build yourself an addon (check the esoui wiki in order to learn how to: "Hello World") and simply let it execute this command as the addon loads or event_player_activated is run in your addon.
I came back to this thread because as of today I would still be interested in playing eso with speech in german and text in english.
I tried having a look at lua coding but it seems like I am just too stupid for it.
Googling around I found quite a few people who would love to have an addon that can do just what I desire to achieve.
Is there anyone who could do me the favor of writing such a small piece?

Edit: I actually managed to get it done, I wrote my first own addon!
However it's still not perfect, when I am done loading half of the text in game is still german, what could be the cause of it and how do I fix it?
(If I /reloadui one more time afterwards, everything works just fine!)
PS: My .lua looks like this:
Code:
AdvancedLanguageSelector = {}
AdvancedLanguageSelector.name = "AdvancedLanguageSelector"
 
function AdvancedLanguageSelector:Initialize()
	SetCVar("language.2","en")
end
 
function AdvancedLanguageSelector.OnAddOnLoaded(event, addonName)
  if addonName == AdvancedLanguageSelector.name then
    AdvancedLanguageSelector:Initialize()
  end
end

EVENT_MANAGER:RegisterForEvent(AdvancedLanguageSelector.name, EVENT_ADD_ON_LOADED, AdvancedLanguageSelector.OnAddOnLoaded)

Last edited by lnfinity : 08/30/18 at 08:53 AM.
  Reply With Quote
08/30/18, 09:56 AM   #22
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,912
Another idea
To achieve your goal you could even use the following script ingame into the chat window and press return key.
Attention:
The game will automatically reload the UI afterwards!

This will change the texts to English. The videos and sounds should stay German if you are using the German client afaik.

Code:
/script SetCVar("language.2","en")
You can exchange the en with one of the following language variables:
en English
de German
fr French
jp Japanese (afaik only possible if you got the japanese client installed!)
es Spanish (unofficially language which might need "a Spanish translation addon" to work)
ru Russian (unofficially language which might need "a Russian translation addon" to work)

Back to your question
Which texts are still German? Maybe addon texts, or base game texts?
You definately need to do a /reloadui so the game swaps the texts as they won't be changed during gameplay!
You can ues the function
Lua Code:
  1. RealoadUI()
in lua to do a reloadui from your addon as well.
  Reply With Quote
08/30/18, 10:42 AM   #23
lnfinity
AddOn Author - Click to view addons
Join Date: Feb 2017
Posts: 22
Originally Posted by Baertram View Post
Another idea
/script SetCVar("language.2","en")
This script is what my idea is based on. I don't want to /reloadui every single time after I login.
After logging in I want the texts to be in english, not in german.
I hoped my "addon" could change the texts during the initial loading, which it does, but only halfway (which is really weird imo).
It then looks like this for example and after /reloadui'ing one more time it will be displayed 100% correctly.

Last edited by lnfinity : 08/30/18 at 10:44 AM.
  Reply With Quote
08/30/18, 10:54 AM   #24
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,912
Did you read what I wrote? Your hopes are not possible :-)
Do /reloadui or put RealoadUI() into your addons function after changing the cvar.

The reloadui is done autoamtically and you won't even notice it except for longer loading time after login.
There is no other way, except changing the language directly in the launcher which will change the video lang etc. too.

Check your other thread where I have described it with more detail please.
  Reply With Quote

ESOUI » AddOns » AddOn Search/Requests » Addon request: Advanced Language Selector

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off