Go to Page... |
|
Thread Tools | Display Modes |
|
09/12/17, 10:23 PM | #1 |
|
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") Last edited by Argusus : 09/12/17 at 10:29 PM. |
09/13/17, 02:59 AM | #2 |
-- 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. |
|
09/13/17, 10:49 AM | #3 | |
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. |
||
09/13/17, 08:23 AM | #4 |
|
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.
|
09/13/17, 10:58 AM | #5 |
i always check the source code first:
Code:
source code\ingamelocalization\localizegeneratedstrings.lua lua Code:
|
|
09/13/17, 01:27 PM | #6 |
09/13/17, 02:15 PM | #7 |
Lua Code:
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 ? |
|
09/13/17, 07:50 PM | #8 | |
|
|
|
09/13/17, 04:27 PM | #9 |
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") |
|
09/13/17, 07:47 PM | #10 | |
|
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.. |
|
09/13/17, 08:29 PM | #11 | |
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. |
||
09/13/17, 08:47 PM | #12 | |
|
Thanks again! I'll keep you posted on my progress! |
|
09/13/17, 05:55 PM | #13 |
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. Last edited by Ayantir : 09/13/17 at 05:59 PM. |
|
09/13/17, 07:48 PM | #14 |
|
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!
|
ESOUI » Developer Discussions » Translation Help » Crafting Writ Assistant - Need French and German... BUT welcome other Languages |
«
Previous Thread
|
Next Thread
»
|
Display Modes |
Switch to Linear Mode |
Hybrid Mode |
Switch to Threaded Mode |
|
|