Quantcast Crafting Writ Assistant - Need French and German... BUT welcome other Languages - ESOUI
Thread Tools Display Modes
09/12/17, 10:23 PM   #1
Argusus
AddOn Author - Click to view addons
Join Date: Sep 2014
Posts: 111
Crafting Writ Assistant - Need French and German... BUT welcome other Languages

Hello,

Can I please get help with translation, please post the language conversion from English to French, German, Spanish or any others below along with what language they are for. I really appreciate it!! I am expanding Crafting Writ Assistant and would like to add as many languages as possible.

-- ** CraftingWritAssistant English Localization File **

-- CRAFTING_WRIT_TYPE_NAME
ZO_CreateStringId("SI_CWA_BLACK_SMITH_WRIT_NAME", "Blacksmith Writ")
ZO_CreateStringId("SI_CWA_WOODWORKING_WRIT_NAME","Woodworker Writ")
ZO_CreateStringId("SI_CWA_CLOTHIER_WRIT_NAME", "Clothier Writ")
ZO_CreateStringId("SI_CWA_PROVISIONER_WRIT_NAME", "Provisioner Writ")
ZO_CreateStringId("SI_CWA_ALCHEMIST_WRIT_NAME", "Alchemist Writ")
ZO_CreateStringId("SI_CWA_ENCHANTER_WRIT_NAME", "Enchanter Writ")

-- CRAFTING_WRIT_TEXT_INDICATORS
ZO_CreateStringId("SI_CWA_BLACK_SMITH", "Blacksmith")
ZO_CreateStringId("SI_CWA_WOODWORKING","Woodworker")
ZO_CreateStringId("SI_CWA_CLOTHIER", "Clothier")
ZO_CreateStringId("SI_CWA_PROVISIONER", "Provisioner")
ZO_CreateStringId("SI_CWA_ALCHEMIST", "Alchemist")
ZO_CreateStringId("SI_CWA_ENCHANTER", "Enchanter")

-- MASTER_WRIT_PHRASES
ZO_CreateStringId("SI_CWA_MASTERFUL", "Masterful")


-- MASTER_WRIT_TEXT_INDICATORS
--ZO_CreateStringId("SI_CWA_BLACK_SMITH", "Blacksmith")
--ZO_CreateStringId("SI_CWA_WOODWORKING","Woodworker")
ZO_CreateStringId("SI_CWA_MW_CLOTHIER", "Tailoring")
ZO_CreateStringId("SI_CWA_MW_PROVISIONER", "Feast")
ZO_CreateStringId("SI_CWA_MW_ALCHEMIST", "Concoction")
ZO_CreateStringId("SI_CWA_MW_ENCHANTER", "Glyph")

-- MASTER_WRIT_WEAPON_TYPE_INDICATORS
ZO_CreateStringId("SI_CWA_WEAPON", "Weapon")

--Blacksmith
ZO_CreateStringId("SI_CWA_DAGGER", "Dagger")
ZO_CreateStringId("SI_CWA_SWORD", "Sword")
ZO_CreateStringId("SI_CWA_GREATSWORD", "Greatsword")
ZO_CreateStringId("SI_CWA_MACE", "Mace")
ZO_CreateStringId("SI_CWA_AXE", "Axe")
ZO_CreateStringId("SI_CWA_MAUL", "Maul")
--Woodworking
ZO_CreateStringId("SI_CWA_STAFF", "Staff")
ZO_CreateStringId("SI_CWA_BOW", "Bow")
ZO_CreateStringId("SI_CWA_SHEILD", "Shield")

--MASTER WRIT COMPLETE TEXT
ZO_CreateStringId("SI_CWA_MW_COMPLETE_AD", "Travel to Elden Root to Meet Your Contact")
ZO_CreateStringId("SI_CWA_MW_COMPLETE_TEXT_DC", "Travel to Mournhold to Meet Your Contact")
ZO_CreateStringId("SI_CWA_MW_COMPLETE_EP", "Travel to Wayrest to Meet Your Contact")

--OPTIONS DATA

ZO_CreateStringId("SI_CWA_DISPLAY_AT_STATION_NAME", "Display at crafting station")
ZO_CreateStringId("SI_CWA_DISPLAY_AT_STATION_DESC", "This will display the writ window when you visit a crafting station.")

ZO_CreateStringId("SI_CWA_SAVE_WINDOW_LOC_NAME", "Remember window position")
ZO_CreateStringId("SI_CWA_SAVE_WINDOW_LOC_DESC", "This will remember your last window position.")

ZO_CreateStringId("SI_CWA_DISPLAY_AT_GB_NAME", "Display at Guild Bank")
ZO_CreateStringId("SI_CWA_DISPLAY_AT_GB_DESC", "This will display the writ window when you visit a guild bank.")

ZO_CreateStringId("SI_CWA_DISPLAY_AT_BANK_NAME", "Display at Bank")
ZO_CreateStringId("SI_CWA_DISPLAY_AT_BANK_DESC", "This will display the writ window when you visit your bank.")

ZO_CreateStringId("SI_CWA_DISPLAY_AT_INGREDIENTS_NAME", "Display Provisioning Ingredients")
ZO_CreateStringId("SI_CWA_DISPLAY_AT_INGREDIENTS_DESC", "This will display ingredients for provisioning writs in the writ window.")

--MISC. TEXT
ZO_CreateStringId("SI_CWA_TITLE", "Crafting Writ Assistant")

ZO_CreateStringId("SI_CWA_UNKNOWN_RECIPE", "Unknown Recipe")
ZO_CreateStringId("SI_CWA_KEY_BINDING", "Toggle Crafting Writ Assistant")
ZO_CreateStringId("SI_CWA_NO_WRITS", "No Active Writs")

ZO_CreateStringId("SI_CWA_DELIVER", "Deliver")
__________________
Addons : TradesMan - Crafting Writ Assistant

Last edited by Argusus : 09/12/17 at 10:29 PM.
  Reply With Quote
09/13/17, 02:59 AM   #2
Ayantir
 
Ayantir's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 954
-- CRAFTING_WRIT_TYPE_NAME
ZO_CreateStringId("SI_CWA_BLACK_SMITH_WRIT_NAME", "Blacksmith Writ")
ZO_CreateStringId("SI_CWA_WOODWORKING_WRIT_NAME","Woodworker Writ")
ZO_CreateStringId("SI_CWA_CLOTHIER_WRIT_NAME", "Clothier Writ")
ZO_CreateStringId("SI_CWA_PROVISIONER_WRIT_NAME", "Provisioner Writ")
ZO_CreateStringId("SI_CWA_ALCHEMIST_WRIT_NAME", "Alchemist Writ")
ZO_CreateStringId("SI_CWA_ENCHANTER_WRIT_NAME", "Enchanter Writ")

-- CRAFTING_WRIT_TEXT_INDICATORS
ZO_CreateStringId("SI_CWA_BLACK_SMITH", "Blacksmith")
ZO_CreateStringId("SI_CWA_WOODWORKING","Woodworker")
ZO_CreateStringId("SI_CWA_CLOTHIER", "Clothier")
ZO_CreateStringId("SI_CWA_PROVISIONER", "Provisioner")
ZO_CreateStringId("SI_CWA_ALCHEMIST", "Alchemist")
ZO_CreateStringId("SI_CWA_ENCHANTER", "Enchanter")



-- MASTER_WRIT_TEXT_INDICATORS
--ZO_CreateStringId("SI_CWA_BLACK_SMITH", "Blacksmith")
--ZO_CreateStringId("SI_CWA_WOODWORKING","Woodworker")
ZO_CreateStringId("SI_CWA_MW_CLOTHIER", "Tailoring")
ZO_CreateStringId("SI_CWA_MW_PROVISIONER", "Feast")
ZO_CreateStringId("SI_CWA_MW_ALCHEMIST", "Concoction")
ZO_CreateStringId("SI_CWA_MW_ENCHANTER", "Glyph")

-- MASTER_WRIT_WEAPON_TYPE_INDICATORS
ZO_CreateStringId("SI_CWA_WEAPON", "Weapon")

--Blacksmith
ZO_CreateStringId("SI_CWA_DAGGER", "Dagger")
ZO_CreateStringId("SI_CWA_SWORD", "Sword")
ZO_CreateStringId("SI_CWA_GREATSWORD", "Greatsword")
ZO_CreateStringId("SI_CWA_MACE", "Mace")
ZO_CreateStringId("SI_CWA_AXE", "Axe")
ZO_CreateStringId("SI_CWA_MAUL", "Maul")
--Woodworking
ZO_CreateStringId("SI_CWA_STAFF", "Staff")
ZO_CreateStringId("SI_CWA_BOW", "Bow")
ZO_CreateStringId("SI_CWA_SHEILD", "Shield")

should not be translated, it's ZOS strings.

d(GetString("SI_ITEMTYPE", WEAPONTYPE_BOW)) display bow per example.
http://wiki.esoui.com/Globals#WeaponType

same with SI_TRADESKILLTYPE and http://wiki.esoui.com/Globals#TradeskillType and ITEMTYPE and ITEMTYPE_WEAPON.

for the other strings, i'll translate them later today.
__________________
Obsessive Compulsive Coder

My little french Guild: Cercle de l'Eveil
  Reply With Quote
09/13/17, 08:23 AM   #3
Argusus
AddOn Author - Click to view addons
Join Date: Sep 2014
Posts: 111
Thanks Ayantir! This is great information.. I'll be working on updating the addon to use the built in ZOS strings for weapons and other you mentioned tonight . I appreciate you taking the time to translate these for me when you get time.
__________________
Addons : TradesMan - Crafting Writ Assistant
  Reply With Quote
09/13/17, 10:49 AM   #4
Dolgubon
AddOn Author - Click to view addons
Join Date: Jan 2016
Posts: 158
Originally Posted by Ayantir View Post
-- CRAFTING_WRIT_TYPE_NAME
ZO_CreateStringId("SI_CWA_BLACK_SMITH_WRIT_NAME", "Blacksmith Writ")
ZO_CreateStringId("SI_CWA_WOODWORKING_WRIT_NAME","Woodworker Writ")
ZO_CreateStringId("SI_CWA_CLOTHIER_WRIT_NAME", "Clothier Writ")
ZO_CreateStringId("SI_CWA_PROVISIONER_WRIT_NAME", "Provisioner Writ")
ZO_CreateStringId("SI_CWA_ALCHEMIST_WRIT_NAME", "Alchemist Writ")
ZO_CreateStringId("SI_CWA_ENCHANTER_WRIT_NAME", "Enchanter Writ")

-- CRAFTING_WRIT_TEXT_INDICATORS
ZO_CreateStringId("SI_CWA_BLACK_SMITH", "Blacksmith")
ZO_CreateStringId("SI_CWA_WOODWORKING","Woodworker")
ZO_CreateStringId("SI_CWA_CLOTHIER", "Clothier")
ZO_CreateStringId("SI_CWA_PROVISIONER", "Provisioner")
ZO_CreateStringId("SI_CWA_ALCHEMIST", "Alchemist")
ZO_CreateStringId("SI_CWA_ENCHANTER", "Enchanter")



-- MASTER_WRIT_TEXT_INDICATORS
--ZO_CreateStringId("SI_CWA_BLACK_SMITH", "Blacksmith")
--ZO_CreateStringId("SI_CWA_WOODWORKING","Woodworker")
ZO_CreateStringId("SI_CWA_MW_CLOTHIER", "Tailoring")
ZO_CreateStringId("SI_CWA_MW_PROVISIONER", "Feast")
ZO_CreateStringId("SI_CWA_MW_ALCHEMIST", "Concoction")
ZO_CreateStringId("SI_CWA_MW_ENCHANTER", "Glyph")

-- MASTER_WRIT_WEAPON_TYPE_INDICATORS
ZO_CreateStringId("SI_CWA_WEAPON", "Weapon")

--Blacksmith
ZO_CreateStringId("SI_CWA_DAGGER", "Dagger")
ZO_CreateStringId("SI_CWA_SWORD", "Sword")
ZO_CreateStringId("SI_CWA_GREATSWORD", "Greatsword")
ZO_CreateStringId("SI_CWA_MACE", "Mace")
ZO_CreateStringId("SI_CWA_AXE", "Axe")
ZO_CreateStringId("SI_CWA_MAUL", "Maul")
--Woodworking
ZO_CreateStringId("SI_CWA_STAFF", "Staff")
ZO_CreateStringId("SI_CWA_BOW", "Bow")
ZO_CreateStringId("SI_CWA_SHEILD", "Shield")

should not be translated, it's ZOS strings.

d(GetString("SI_ITEMTYPE", WEAPONTYPE_BOW)) display bow per example.
http://wiki.esoui.com/Globals#WeaponType

same with SI_TRADESKILLTYPE and http://wiki.esoui.com/Globals#TradeskillType and ITEMTYPE and ITEMTYPE_WEAPON.

for the other strings, i'll translate them later today.


Actually, some of those, afaik, should be translated. (namely, the Writ names, Masterful, the completion texts. I don't think there's any way to get them.


You should be able to find them in the Writ Crafter though! I've already 'translated' most of the strings, (i.e. changed client language to German and French) so no need to do it twice. I also have the weapon and armour strings too, actually.
  Reply With Quote
09/13/17, 10:58 AM   #5
Scootworks
 
Scootworks's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2014
Posts: 145
i always check the source code first:
Code:
source code\ingamelocalization\localizegeneratedstrings.lua
for example:
lua Code:
  1. "Helmet", -- SI_ITEMSTYLECHAPTER1
  2. "Glove", -- SI_ITEMSTYLECHAPTER2
  3. "Boot", -- SI_ITEMSTYLECHAPTER3
  4. "Legs", -- SI_ITEMSTYLECHAPTER4
  5. "Breastplate", -- SI_ITEMSTYLECHAPTER5
  6. "Belt", -- SI_ITEMSTYLECHAPTER6
  7. "Shoulder", -- SI_ITEMSTYLECHAPTER7
  8. "Sword", -- SI_ITEMSTYLECHAPTER8
  9. "Mace", -- SI_ITEMSTYLECHAPTER9
  10. "Axe", -- SI_ITEMSTYLECHAPTER10
  11. "Dagger", -- SI_ITEMSTYLECHAPTER11
  12. "Staff", -- SI_ITEMSTYLECHAPTER12
  13. "Shield", -- SI_ITEMSTYLECHAPTER13
  14. "Bow", -- SI_ITEMSTYLECHAPTER14
__________________
@Scootworks | EU Server
  Reply With Quote
09/13/17, 01:27 PM   #6
Dolgubon
AddOn Author - Click to view addons
Join Date: Jan 2016
Posts: 158
Originally Posted by Scootworks View Post
i always check the source code first:
Code:
source code\ingamelocalization\localizegeneratedstrings.lua
for example:
Those are not the correct ones. For example, Maul is not listed, not is greatsword. Those are for motifs, while he wants the weapon names.
  Reply With Quote
09/13/17, 02:15 PM   #7
Ayantir
 
Ayantir's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 954
Lua Code:
  1. -- MASTER_WRIT_PHRASES
  2. ZO_CreateStringId("SI_CWA_MASTERFUL", "Maitre artisan")
  3.  
  4. --MASTER WRIT COMPLETE TEXT
  5. ZO_CreateStringId("SI_CWA_MW_COMPLETE_AD", "Voyager vers Faneracine pour rencontrer votre contact")
  6. ZO_CreateStringId("SI_CWA_MW_COMPLETE_TEXT_DC", "Voyager vers Longsanglot pour rencontrer votre contact")
  7. ZO_CreateStringId("SI_CWA_MW_COMPLETE_EP", "Voyager vers havre-Tempête pour rencontrer votre contact")
  8.  
  9. --OPTIONS DATA
  10.  
  11. ZO_CreateStringId("SI_CWA_DISPLAY_AT_STATION_NAME", "Afficher à la station d'artisanat")
  12. ZO_CreateStringId("SI_CWA_DISPLAY_AT_STATION_DESC", "Afficher la fenêtre de commande d'artisanat à la station d'artisanat")
  13.  
  14. ZO_CreateStringId("SI_CWA_SAVE_WINDOW_LOC_NAME", "Mémoriser la position de la fenêtre")
  15. ZO_CreateStringId("SI_CWA_SAVE_WINDOW_LOC_DESC", "Mémorise la position de la fenêtre de l'interface")
  16.  
  17. ZO_CreateStringId("SI_CWA_DISPLAY_AT_GB_NAME", "Afficher à la banque de guilde")
  18. ZO_CreateStringId("SI_CWA_DISPLAY_AT_GB_DESC", "Afficher la fenêtre de commande d'artisanat à la banque de guilde")
  19.  
  20. ZO_CreateStringId("SI_CWA_DISPLAY_AT_BANK_NAME", "Afficher à la banque")
  21. ZO_CreateStringId("SI_CWA_DISPLAY_AT_BANK_DESC", "Afficher la fenêtre de commande d'artisanat à la banque")
  22.  
  23. ZO_CreateStringId("SI_CWA_DISPLAY_AT_INGREDIENTS_NAME", "Afficher les ingrédients de cuisine")
  24. ZO_CreateStringId("SI_CWA_DISPLAY_AT_INGREDIENTS_DESC", "Affichera les ingrédients nécessaires dans la fenêtre de commande de cuisine")
  25.  
  26. --MISC. TEXT
  27. ZO_CreateStringId("SI_CWA_TITLE", "Crafting Writ Assistant")
  28.  
  29. ZO_CreateStringId("SI_CWA_UNKNOWN_RECIPE", "Recette inconnue")
  30. ZO_CreateStringId("SI_CWA_KEY_BINDING", "Afficher/Masquer Crafting Writ Assistant")
  31. ZO_CreateStringId("SI_CWA_NO_WRITS", "Pas de commandes")
  32.  
  33. ZO_CreateStringId("SI_CWA_DELIVER", "Livrer")

ps: basically you should not use ZO_CreateStringId for translating if you load your english file first but a SafeAddString(), it will trow an error. if you don't load, it's ok.

You should rename SI_CWA_MW_COMPLETE_TEXT_DC to SI_CWA_MW_COMPLETE_DC

You switched cities between DC and EP ?
__________________
Obsessive Compulsive Coder

My little french Guild: Cercle de l'Eveil
  Reply With Quote
09/13/17, 04:27 PM   #8
Dolgubon
AddOn Author - Click to view addons
Join Date: Jan 2016
Posts: 158
First of all, Ayantir is correct in regards to the crafting skill names, in a way. Not in the method, which doesn't work. But there is a way to obtain the names programatically: GetCraftingSkillName(craftingSkillType)

As far as I am able to determine, he is completely wrong about the weapon types. Some do work; but not all. You'll be missing certain types of weapons, for example, greatsword, maul, etc. Actually, if he checked, d(GetString("SI_ITEMTYPE", WEAPONTYPE_BOW)) outputs not Bow, but Motif. You'd need to use d(GetString("SI_WEAPONTYPE", WEAPONTYPE_BOW)) instead.
d(GetString("SI_ITEMTYPE", ITEMTYPE_WEAPON)) does work. Master writ indicators must be hardcoded, as well as the writ names.

French:

-- CRAFTING_WRIT_TYPE_NAME

-- Ok, not quite sure how these combine, but "Writ" is "Commande" and:
[CRAFTING_TYPE_ENCHANTING] = "d'enchantement",
[CRAFTING_TYPE_BLACKSMITHING] = "forge",
[CRAFTING_TYPE_CLOTHIER] = "tailleur",
[CRAFTING_TYPE_PROVISIONING] = "cuisine",
[CRAFTING_TYPE_WOODWORKING] = "bois",
[CRAFTING_TYPE_ALCHEMY] = "d'alchimie",



-- CRAFTING_WRIT_TEXT_INDICATORS

Use: GetCraftingSkillName(number TradeskillType craftingSkillType) with numbers 1-6 for these.

-- MASTER_WRIT_PHRASES -- I assume you want the quest name. If that is the case, use mine. Otherwise, Ayantir's is probably better.
ZO_CreateStringId("SI_CWA_MASTERFUL", "magistral")


-- MASTER_WRIT_TEXT_INDICATORS
-- What exactly are these supposed to be? The quest names? If so, you might be able to use:
[CRAFTING_TYPE_ALCHEMY] = "concoction",
[CRAFTING_TYPE_ENCHANTING] = "glyphe",
[CRAFTING_TYPE_PROVISIONING] = "festin",
["plate"] = "protection",
["tailoring"] = "tenue",
["leatherwear"] = "vêtement",
["weapon"] = "arme",
["shield"] = "bouclier",


-- MASTER_WRIT_WEAPON_TYPE_INDICATORS -- Not sure of your usecase. Consider using GetItemLinkName(hardCodedItemLink)
ZO_CreateStringId("SI_CWA_WEAPON", "Weapon")

--Blacksmith -- I don't know the full use case/when you need this, so there might be a better option than hardcoding it. And no, you don't have the weapon names anywhere really as a ZOS string, but you can get the names while at a crafting station.
ZO_CreateStringId("SI_CWA_DAGGER", "dague")
ZO_CreateStringId("SI_CWA_SWORD", "épée")
ZO_CreateStringId("SI_CWA_GREATSWORD", "longue")
ZO_CreateStringId("SI_CWA_MACE", "masse")
ZO_CreateStringId("SI_CWA_AXE", "hache")
ZO_CreateStringId("SI_CWA_MAUL", "d'arme")
--Woodworking
ZO_CreateStringId("SI_CWA_STAFF", "Staff") -- didn't have this one, actually.
ZO_CreateStringId("SI_CWA_BOW", "arc")
ZO_CreateStringId("SI_CWA_SHEILD", "bouclier")

--MASTER WRIT COMPLETE TEXT -- Can all be replaced by checking the progress values on the quest! -- If the current and max are equal, then you know they're done.

-
ZO_CreateStringId("SI_CWA_DELIVER", "livrez")




German:



-- CRAFTING_WRIT_TYPE_NAME
ZO_CreateStringId("SI_CWA_BLACK_SMITH_WRIT_NAME", "Schmiedeschrieb")
ZO_CreateStringId("SI_CWA_WOODWORKING_WRIT_NAME","Schreinerschrieb")
ZO_CreateStringId("SI_CWA_CLOTHIER_WRIT_NAME", "Schneiderschrieb")
ZO_CreateStringId("SI_CWA_PROVISIONER_WRIT_NAME", "Versorgerschrieb")
ZO_CreateStringId("SI_CWA_ALCHEMIST_WRIT_NAME", "Alchemistenschrieb")
ZO_CreateStringId("SI_CWA_ENCHANTER_WRIT_NAME", "Verzaubererschrieb")


-- MASTER_WRIT_PHRASES
ZO_CreateStringId("SI_CWA_MASTERFUL", "meisterhafte")


-- MASTER_WRIT_TEXT_INDICATORS

-- Same deal as above, not sure of your usecase, this might be what you need:
[CRAFTING_TYPE_ALCHEMY] = "gebräu",
[CRAFTING_TYPE_ENCHANTING] = "glyphe",
[CRAFTING_TYPE_PROVISIONING] = "mahl",
["plate"] = "rüstung",
["tailoring"] = "nähkunst",
["leatherwear"] = "lederwaren",
["weapon"] = "waffe",
["shield"] = "schild",



--Blacksmith
ZO_CreateStringId("SI_CWA_DAGGER", "Dolche")
ZO_CreateStringId("SI_CWA_SWORD", "Schwerter")
ZO_CreateStringId("SI_CWA_GREATSWORD", "Bidenhänder")
ZO_CreateStringId("SI_CWA_MACE", "Keulen")
ZO_CreateStringId("SI_CWA_AXE", "Äxte")
ZO_CreateStringId("SI_CWA_MAUL", "Streitkolben")
--Woodworking -- think there's some translation errors in the game with staves.
ZO_CreateStringId("SI_CWA_STAFF", "stäbe")
ZO_CreateStringId("SI_CWA_BOW", "Bogen")
ZO_CreateStringId("SI_CWA_SHEILD", "Schilde")


-
ZO_CreateStringId("SI_CWA_DELIVER", "beliefert")

  Reply With Quote
09/13/17, 05:55 PM   #9
Ayantir
 
Ayantir's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 954
Well , here it's more following zos terms than translation ^^

and sorry if I quoted little mistakes, it was @work
ps: i translated not looked to match zos words.
__________________
Obsessive Compulsive Coder

My little french Guild: Cercle de l'Eveil

Last edited by Ayantir : 09/13/17 at 05:59 PM.
  Reply With Quote
09/13/17, 07:47 PM   #10
Argusus
AddOn Author - Click to view addons
Join Date: Sep 2014
Posts: 111
Originally Posted by Dolgubon View Post
First of all, Ayantir is correct in regards to the crafting skill names, in a way. Not in the method, which doesn't work. But there is a way to obtain the names programatically: GetCraftingSkillName(craftingSkillType)

As far as I am able to determine, he is completely wrong about the weapon types. Some do work; but not all. You'll be missing certain types of weapons, for example, greatsword, maul, etc. Actually, if he checked, d(GetString("SI_ITEMTYPE", WEAPONTYPE_BOW)) outputs not Bow, but Motif. You'd need to use d(GetString("SI_WEAPONTYPE", WEAPONTYPE_BOW)) instead.
d(GetString("SI_ITEMTYPE", ITEMTYPE_WEAPON)) does work. Master writ indicators must be hardcoded, as well as the writ names.

French:

-- CRAFTING_WRIT_TYPE_NAME

-- Ok, not quite sure how these combine, but "Writ" is "Commande" and:
[CRAFTING_TYPE_ENCHANTING] = "d'enchantement",
[CRAFTING_TYPE_BLACKSMITHING] = "forge",
[CRAFTING_TYPE_CLOTHIER] = "tailleur",
[CRAFTING_TYPE_PROVISIONING] = "cuisine",
[CRAFTING_TYPE_WOODWORKING] = "bois",
[CRAFTING_TYPE_ALCHEMY] = "d'alchimie",



-- CRAFTING_WRIT_TEXT_INDICATORS

Use: GetCraftingSkillName(number TradeskillType craftingSkillType) with numbers 1-6 for these.

-- MASTER_WRIT_PHRASES -- I assume you want the quest name. If that is the case, use mine. Otherwise, Ayantir's is probably better.
ZO_CreateStringId("SI_CWA_MASTERFUL", "magistral")


-- MASTER_WRIT_TEXT_INDICATORS
-- What exactly are these supposed to be? The quest names? If so, you might be able to use:
[CRAFTING_TYPE_ALCHEMY] = "concoction",
[CRAFTING_TYPE_ENCHANTING] = "glyphe",
[CRAFTING_TYPE_PROVISIONING] = "festin",
["plate"] = "protection",
["tailoring"] = "tenue",
["leatherwear"] = "vêtement",
["weapon"] = "arme",
["shield"] = "bouclier",


-- MASTER_WRIT_WEAPON_TYPE_INDICATORS -- Not sure of your usecase. Consider using GetItemLinkName(hardCodedItemLink)
ZO_CreateStringId("SI_CWA_WEAPON", "Weapon")

--Blacksmith -- I don't know the full use case/when you need this, so there might be a better option than hardcoding it. And no, you don't have the weapon names anywhere really as a ZOS string, but you can get the names while at a crafting station.
ZO_CreateStringId("SI_CWA_DAGGER", "dague")
ZO_CreateStringId("SI_CWA_SWORD", "épée")
ZO_CreateStringId("SI_CWA_GREATSWORD", "longue")
ZO_CreateStringId("SI_CWA_MACE", "masse")
ZO_CreateStringId("SI_CWA_AXE", "hache")
ZO_CreateStringId("SI_CWA_MAUL", "d'arme")
--Woodworking
ZO_CreateStringId("SI_CWA_STAFF", "Staff") -- didn't have this one, actually.
ZO_CreateStringId("SI_CWA_BOW", "arc")
ZO_CreateStringId("SI_CWA_SHEILD", "bouclier")

--MASTER WRIT COMPLETE TEXT -- Can all be replaced by checking the progress values on the quest! -- If the current and max are equal, then you know they're done.

-
ZO_CreateStringId("SI_CWA_DELIVER", "livrez")




German:



-- CRAFTING_WRIT_TYPE_NAME
ZO_CreateStringId("SI_CWA_BLACK_SMITH_WRIT_NAME", "Schmiedeschrieb")
ZO_CreateStringId("SI_CWA_WOODWORKING_WRIT_NAME","Schreinerschrieb")
ZO_CreateStringId("SI_CWA_CLOTHIER_WRIT_NAME", "Schneiderschrieb")
ZO_CreateStringId("SI_CWA_PROVISIONER_WRIT_NAME", "Versorgerschrieb")
ZO_CreateStringId("SI_CWA_ALCHEMIST_WRIT_NAME", "Alchemistenschrieb")
ZO_CreateStringId("SI_CWA_ENCHANTER_WRIT_NAME", "Verzaubererschrieb")


-- MASTER_WRIT_PHRASES
ZO_CreateStringId("SI_CWA_MASTERFUL", "meisterhafte")


-- MASTER_WRIT_TEXT_INDICATORS

-- Same deal as above, not sure of your usecase, this might be what you need:
[CRAFTING_TYPE_ALCHEMY] = "gebräu",
[CRAFTING_TYPE_ENCHANTING] = "glyphe",
[CRAFTING_TYPE_PROVISIONING] = "mahl",
["plate"] = "rüstung",
["tailoring"] = "nähkunst",
["leatherwear"] = "lederwaren",
["weapon"] = "waffe",
["shield"] = "schild",



--Blacksmith
ZO_CreateStringId("SI_CWA_DAGGER", "Dolche")
ZO_CreateStringId("SI_CWA_SWORD", "Schwerter")
ZO_CreateStringId("SI_CWA_GREATSWORD", "Bidenhänder")
ZO_CreateStringId("SI_CWA_MACE", "Keulen")
ZO_CreateStringId("SI_CWA_AXE", "Äxte")
ZO_CreateStringId("SI_CWA_MAUL", "Streitkolben")
--Woodworking -- think there's some translation errors in the game with staves.
ZO_CreateStringId("SI_CWA_STAFF", "stäbe")
ZO_CreateStringId("SI_CWA_BOW", "Bogen")
ZO_CreateStringId("SI_CWA_SHEILD", "Schilde")


-
ZO_CreateStringId("SI_CWA_DELIVER", "beliefert")

Thank you I really appreciate it!

The GetCraftingSkillName(craftingSkillType) API call returns "Blacksmithing" , "Woodworking" etc, basically this isn't what I need for identifying what the "writ name" is , I use these values to populate my dropdown when you visit a crafting station so it auto selects your current writ.

As for you questions about my Use cases. the MASTER_WRIT_TEXT_INDICATORS are text that a master writ quest name would "Contain" so I can identify if this is a master writ of a particular type, the API only tells us this is a "crafting quest type" and Master Writ blacksmith quests appear the same as normal "Blacksmith writ" quests, also the text for in the case of English is "A Masterful Weapon" for both the "Blacksmith" master quest and the "Woodworking" master quest. This leads me to use the "MASTER_WRIT_WEAPON_TYPE_INDICATORS", in this case the word "Weapon" is present in both quests, when you have them both in your Journal. I look into the quest "steps" and the "conditions" to determine if this is a Blacksmithing or woodworker quest, by using the SI_CWA_DAGGER and SI_CWA_SWORD or SI_CWA_BOW to see if this is a Blacksmith or woodworking quest. this helps me determine the CraftingSkillName based on these details.

I was able to use your suggestion and switch my client to FR to get the word "Staff" from the quest details, it was Baton.

I'm primarily a developer for C#, SQL and other languages and I'm a new to LUA and addon development in general but its fun any suggestions or recommendations are welcome..
__________________
Addons : TradesMan - Crafting Writ Assistant
  Reply With Quote
09/13/17, 07:48 PM   #11
Argusus
AddOn Author - Click to view addons
Join Date: Sep 2014
Posts: 111
Originally Posted by Ayantir View Post
Well , here it's more following zos terms than translation ^^

and sorry if I quoted little mistakes, it was @work
ps: i translated not looked to match zos words.
no problem Ayantir, I really appreciate your suggestions and help! I will take your recommendations and apply them as I see how they fit into the addon!
__________________
Addons : TradesMan - Crafting Writ Assistant
  Reply With Quote
09/13/17, 07:50 PM   #12
Argusus
AddOn Author - Click to view addons
Join Date: Sep 2014
Posts: 111
Originally Posted by Ayantir View Post
Lua Code:
  1. -- MASTER_WRIT_PHRASES
  2. ZO_CreateStringId("SI_CWA_MASTERFUL", "Maitre artisan")
  3.  
  4. --MASTER WRIT COMPLETE TEXT
  5. ZO_CreateStringId("SI_CWA_MW_COMPLETE_AD", "Voyager vers Faneracine pour rencontrer votre contact")
  6. ZO_CreateStringId("SI_CWA_MW_COMPLETE_TEXT_DC", "Voyager vers Longsanglot pour rencontrer votre contact")
  7. ZO_CreateStringId("SI_CWA_MW_COMPLETE_EP", "Voyager vers havre-Tempête pour rencontrer votre contact")
  8.  
  9. --OPTIONS DATA
  10.  
  11. ZO_CreateStringId("SI_CWA_DISPLAY_AT_STATION_NAME", "Afficher à la station d'artisanat")
  12. ZO_CreateStringId("SI_CWA_DISPLAY_AT_STATION_DESC", "Afficher la fenêtre de commande d'artisanat à la station d'artisanat")
  13.  
  14. ZO_CreateStringId("SI_CWA_SAVE_WINDOW_LOC_NAME", "Mémoriser la position de la fenêtre")
  15. ZO_CreateStringId("SI_CWA_SAVE_WINDOW_LOC_DESC", "Mémorise la position de la fenêtre de l'interface")
  16.  
  17. ZO_CreateStringId("SI_CWA_DISPLAY_AT_GB_NAME", "Afficher à la banque de guilde")
  18. ZO_CreateStringId("SI_CWA_DISPLAY_AT_GB_DESC", "Afficher la fenêtre de commande d'artisanat à la banque de guilde")
  19.  
  20. ZO_CreateStringId("SI_CWA_DISPLAY_AT_BANK_NAME", "Afficher à la banque")
  21. ZO_CreateStringId("SI_CWA_DISPLAY_AT_BANK_DESC", "Afficher la fenêtre de commande d'artisanat à la banque")
  22.  
  23. ZO_CreateStringId("SI_CWA_DISPLAY_AT_INGREDIENTS_NAME", "Afficher les ingrédients de cuisine")
  24. ZO_CreateStringId("SI_CWA_DISPLAY_AT_INGREDIENTS_DESC", "Affichera les ingrédients nécessaires dans la fenêtre de commande de cuisine")
  25.  
  26. --MISC. TEXT
  27. ZO_CreateStringId("SI_CWA_TITLE", "Crafting Writ Assistant")
  28.  
  29. ZO_CreateStringId("SI_CWA_UNKNOWN_RECIPE", "Recette inconnue")
  30. ZO_CreateStringId("SI_CWA_KEY_BINDING", "Afficher/Masquer Crafting Writ Assistant")
  31. ZO_CreateStringId("SI_CWA_NO_WRITS", "Pas de commandes")
  32.  
  33. ZO_CreateStringId("SI_CWA_DELIVER", "Livrer")

ps: basically you should not use ZO_CreateStringId for translating if you load your english file first but a SafeAddString(), it will trow an error. if you don't load, it's ok.

You should rename SI_CWA_MW_COMPLETE_TEXT_DC to SI_CWA_MW_COMPLETE_DC

You switched cities between DC and EP ?
thanks for the catch!! lol I missed that I switch the cities for DC and EP, I corrected that and the "You SI_CWA_MW_COMPLETE_TEXT_DC to SI_CWA_MW_COMPLETE_DC typo
__________________
Addons : TradesMan - Crafting Writ Assistant
  Reply With Quote
09/13/17, 08:29 PM   #13
Dolgubon
AddOn Author - Click to view addons
Join Date: Jan 2016
Posts: 158
Originally Posted by Argusus View Post
Thank you I really appreciate it!
Originally Posted by Argusus View Post

The GetCraftingSkillName(craftingSkillType) API call returns "Blacksmithing" , "Woodworking" etc, basically this isn't what I need for identifying what the "writ name" is , I use these values to populate my dropdown when you visit a crafting station so it auto selects your current writ.

As for you questions about my Use cases. the MASTER_WRIT_TEXT_INDICATORS are text that a master writ quest name would "Contain" so I can identify if this is a master writ of a particular type, the API only tells us this is a "crafting quest type" and Master Writ blacksmith quests appear the same as normal "Blacksmith writ" quests, also the text for in the case of English is "A Masterful Weapon" for both the "Blacksmith" master quest and the "Woodworking" master quest. This leads me to use the "MASTER_WRIT_WEAPON_TYPE_INDICATORS", in this case the word "Weapon" is present in both quests, when you have them both in your Journal. I look into the quest "steps" and the "conditions" to determine if this is a Blacksmithing or woodworker quest, by using the SI_CWA_DAGGER and SI_CWA_SWORD or SI_CWA_BOW to see if this is a Blacksmith or woodworking quest. this helps me determine the CraftingSkillName based on these details.

I was able to use your suggestion and switch my client to FR to get the word "Staff" from the quest details, it was Baton.

I'm primarily a developer for C#, SQL and other languages and I'm a new to LUA and addon development in general but its fun any suggestions or recommendations are welcome..


In that case, you should be fine using the table that I put there, as those are the things of the quest. Seems I overlooked it, but here's the English version of them, which should help you determine what is what.
[CRAFTING_TYPE_ALCHEMY] = "concoction",
[CRAFTING_TYPE_ENCHANTING] = "glyph",
[CRAFTING_TYPE_PROVISIONING] = "feast",
["plate"] = "plate",
["tailoring"] = "tailoring",
["leatherwear"] = "leatherwear",
["weapon"] = "weapon",
["shield"] = "shield",

As for differentiating Blacksmithing writs from the master writs: You can use GetJournalQuestRepeatType(i)==QUEST_REPEAT_DAILY. If it is true, it's a writ, otherwise it's a master writ.

Note that since you are comparing strings quite often, sometimes the German/French stuff needs a bit of 'massaging' or possibly you could shorten the string you are looking for. For example, longue, longué, longuen, etc. That particular example probably doesn't exist, but should give you the idea.

GetJournalQuestConditionInfo(questIndex, 1, condition number) -> returns _, current, max
If the current == max for all of the conditions, you automatically know you need to deliver the item. A bit longer to check than the string, but it'll also be more resistant to language changes.

Finally, another potential solution to differentiating Blacksmith Weapons/Woodworking Weapons: you have the weapon names, so you can use that to search the condition.
  Reply With Quote
09/13/17, 08:47 PM   #14
Argusus
AddOn Author - Click to view addons
Join Date: Sep 2014
Posts: 111
Originally Posted by Dolgubon View Post

In that case, you should be fine using the table that I put there, as those are the things of the quest. Seems I overlooked it, but here's the English version of them, which should help you determine what is what.
[CRAFTING_TYPE_ALCHEMY] = "concoction",
[CRAFTING_TYPE_ENCHANTING] = "glyph",
[CRAFTING_TYPE_PROVISIONING] = "feast",
["plate"] = "plate",
["tailoring"] = "tailoring",
["leatherwear"] = "leatherwear",
["weapon"] = "weapon",
["shield"] = "shield",

As for differentiating Blacksmithing writs from the master writs: You can use GetJournalQuestRepeatType(i)==QUEST_REPEAT_DAILY. If it is true, it's a writ, otherwise it's a master writ.

Note that since you are comparing strings quite often, sometimes the German/French stuff needs a bit of 'massaging' or possibly you could shorten the string you are looking for. For example, longue, longué, longuen, etc. That particular example probably doesn't exist, but should give you the idea.

GetJournalQuestConditionInfo(questIndex, 1, condition number) -> returns _, current, max
If the current == max for all of the conditions, you automatically know you need to deliver the item. A bit longer to check than the string, but it'll also be more resistant to language changes.

Finally, another potential solution to differentiating Blacksmith Weapons/Woodworking Weapons: you have the weapon names, so you can use that to search the condition.
great suggestions! I'm working on it now, I really like the GetJournalQuestRepeatType(i) good call. Its been a while since I've dug into the API thanks for that thought. I agree with the string shortening.. makes perfect sense. Since I am "allowing" users to use a slash command outside of a crafting station (/cwa) then it creates a challenge to require parsing the quest details in order to determine the dropdown selection and craft type.

Thanks again! I'll keep you posted on my progress!
__________________
Addons : TradesMan - Crafting Writ Assistant
  Reply With Quote

ESOUI » Developer Discussions » Translation Help » Crafting Writ Assistant - Need French and German... BUT welcome other Languages

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