Quantcast
Download
(13 Kb)
Download
Updated: 12/26/19 04:36 PM
Compatibility:
Dragonhold (5.2.5)
Updated:12/26/19 04:36 PM
Created:12/25/19 03:15 AM
Monthly downloads:24
Total downloads:69
Favorites:0
MD5:
5.2.5
eso-azure-translate
Version: 2.0.3
by: AlbinoPython [More]
eso-azure-translate
This is just the source code. See instructions below or use link above for the published version

Small node utility that uses Azure Cognitive Services to translate English strings to German and French and generates the corresponding Lua files for your lang folder.



Install
Code:
npm install -g eso-azure-translate
Prepare
  1. Create JSON file
    The key will be the name of the variable used in the addon.

    en.json
    Code:
    {
      "ADDON_NAME": "eso-azure-translate",
      "SI_BINDING_NAME_SOME_BINDING": "Some binding name"
    }
  2. Set ESO_TRANSLATOR environment variable with the key used to access the Azure services. Otherwise you can pass the token on the command line but that is not recommended.

Run
Code:
eso-azure-translate --inputJson=en.json
Output

en.lua
Code:
ZO_CreateStringId("ADDON_NAME", "eso-azure-translate")
ZO_CreateStringId("SI_BINDING_NAME_SOME_BINDING", "Some binding")

de.lua
Code:
ZO_CreateStringId("ADDON_NAME", "eso-azure-├╝bersetzen")
ZO_CreateStringId("SI_BINDING_NAME_SOME_BINDING", "Einige Bindung")
fr.lua
Code:
ZO_CreateStringId("ADDON_NAME", "eso-azure-traduire")
ZO_CreateStringId("SI_BINDING_NAME_SOME_BINDING", "Certains")
26 December 2019
Add description
Sync published version with esoui version

25 December 2019
Initial release
Optional Files (0)


Archived Files (1)
File Name
Version
Size
Uploader
Date
1.0.10
12kB
AlbinoPython
12/25/19 03:15 AM


Post A Reply Comment Options
Unread 12/28/19, 10:58 AM  
AlbinoPython
AddOn Author - Click to view AddOns

Forum posts: 8
File comments: 52
Uploads: 10
I am not clear on exactly what that method would do for me. eso-azure-translate does not run in-game. It is meant to be used while developing an add on. You can store all of your strings in a JSON file (see Provinatus' strings file) and then run this utility to generate German and French translations using Azure's services. It then auto-generates the corresponding Lua files. (see Provinatus' lang folder)
Report comment to moderator  
Reply With Quote
Unread 12/27/19, 03:56 AM  
Micke2nd
AddOn Author - Click to view AddOns

Forum posts: 16
File comments: 52
Uploads: 1
Following the API def you can change the current language for labels & other strings with
Code:
   /script SetCVar("language.2","en")
.
I thought this switch could help to get the indeed in-game wording either immediately or with a exported dictionary as intermediate step.
Doesn't this deliver what you need ? An external service won't presumably be failure free.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: