--- Log opened Sat Sep 17 00:00:41 2016 20160917 00:19:25-!- Bonobo [~Bonobo@2001:44b8:254:3200:40ec:aa1c:4762:edd] has joined #wesnoth 20160917 01:02:52-!- wario_ is now known as LumpySP 20160917 01:04:36-!- LumpySP [~wario_@unaffiliated/wario] has quit [Read error: Connection reset by peer] 20160917 01:20:57-!- enchi [enchilado@defocus/yummy/enchilado] has quit [Ping timeout: 276 seconds] 20160917 02:07:47-!- ArneBab_ [~quassel@55d4449c.access.ecotel.net] has joined #wesnoth 20160917 02:09:36-!- Necrosporus_ [~Necrospor@unaffiliated/necrosporus] has quit [Remote host closed the connection] 20160917 02:12:10-!- ArneBab [~quassel@55d4598d.access.ecotel.net] has quit [Ping timeout: 255 seconds] 20160917 02:18:31-!- ancestral [~ancestral@75-168-189-115.mpls.qwest.net] has joined #wesnoth 20160917 02:35:29-!- vultraz_iOS [uid24821@wesnoth/developer/vultraz] has joined #wesnoth 20160917 03:08:45-!- bumbadadabum [~bumbadada@wesnoth/developer/bumbadadabum] has quit [Ping timeout: 250 seconds] 20160917 03:21:30-!- vultraz [~chatzilla@124.109.10.167] has joined #wesnoth 20160917 03:21:31-!- vultraz [~chatzilla@124.109.10.167] has quit [Changing host] 20160917 03:21:31-!- vultraz [~chatzilla@wesnoth/developer/vultraz] has joined #wesnoth 20160917 03:42:04-!- hk238 [~kvirc@unaffiliated/hk238] has joined #wesnoth 20160917 05:31:25-!- enchi [enchilado@defocus/yummy/enchilado] has joined #wesnoth 20160917 05:51:05-!- Kwandulin [~Miranda@p200300760F2C71960DAE29E6E3DDBBE0.dip0.t-ipconnect.de] has joined #wesnoth 20160917 06:02:31-!- cyphase [~cyphase@unaffiliated/cyphase] has quit [Ping timeout: 250 seconds] 20160917 06:08:40-!- cyphase [~cyphase@unaffiliated/cyphase] has joined #wesnoth 20160917 06:17:51-!- ancestral [~ancestral@75-168-189-115.mpls.qwest.net] has quit [Quit: i go nstuf kthxbai] 20160917 06:45:57-!- celticminstrel [~celmin@unaffiliated/celticminstrel] has quit [Quit: And lo! The computer falls into a deep sleep, to awake again some other day!] 20160917 06:54:33-!- Kwandulin [~Miranda@p200300760F2C71960DAE29E6E3DDBBE0.dip0.t-ipconnect.de] has quit [Ping timeout: 248 seconds] 20160917 06:59:02-!- ChipmunkV [~vova@static-89-94-113-91.axione.abo.bbox.fr] has joined #wesnoth 20160917 07:01:33-!- Kwandulin [~Miranda@p200300760F2C716E0DAE29E6E3DDBBE0.dip0.t-ipconnect.de] has joined #wesnoth 20160917 07:10:33-!- cyphase [~cyphase@unaffiliated/cyphase] has quit [Ping timeout: 248 seconds] 20160917 07:10:47-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has joined #wesnoth 20160917 07:17:07-!- cyphase [~cyphase@unaffiliated/cyphase] has joined #wesnoth 20160917 07:36:33-!- cyphase [~cyphase@unaffiliated/cyphase] has quit [Ping timeout: 250 seconds] 20160917 07:39:14-!- vultraz_iOS [uid24821@wesnoth/developer/vultraz] has quit [Quit: Connection closed for inactivity] 20160917 07:41:52-!- cyphase [~cyphase@unaffiliated/cyphase] has joined #wesnoth 20160917 07:43:22-!- Kwandulin [~Miranda@p200300760F2C716E0DAE29E6E3DDBBE0.dip0.t-ipconnect.de] has quit [Read error: Connection reset by peer] 20160917 08:01:17-!- cyphase [~cyphase@unaffiliated/cyphase] has quit [Ping timeout: 272 seconds] 20160917 08:04:11-!- ToBeCloud [uid51591@wikimedia/ToBeFree] has joined #wesnoth 20160917 08:07:35-!- cyphase [~cyphase@unaffiliated/cyphase] has joined #wesnoth 20160917 08:14:27-!- Kwandulin [~Miranda@p200300760F2C716E4127CDFCBB2C7A83.dip0.t-ipconnect.de] has joined #wesnoth 20160917 09:29:45-!- Kwandulin [~Miranda@p200300760F2C716E4127CDFCBB2C7A83.dip0.t-ipconnect.de] has quit [Read error: Connection reset by peer] 20160917 09:31:03-!- ggeneral [~ggeneral@48.175.47.77.pptp.ntu-kpi.kiev.ua] has joined #wesnoth 20160917 10:01:50-!- ggeneral [~ggeneral@48.175.47.77.pptp.ntu-kpi.kiev.ua] has left #wesnoth [] 20160917 10:05:26-!- ToBeCloud [uid51591@wikimedia/ToBeFree] has quit [Quit: Connection closed for inactivity] 20160917 10:24:23-!- Kranix [~magnus@2a05:f6c2:5085:0:872f:9985:1ac5:6bc] has joined #wesnoth 20160917 10:49:07-!- prkc [~prkc@46.166.138.130] has quit [Remote host closed the connection] 20160917 10:55:30-!- prkc [~prkc@gateway/vpn/privateinternetaccess/prkc] has joined #wesnoth 20160917 10:58:24-!- wario [~wario_@unaffiliated/wario] has joined #wesnoth 20160917 11:35:52-!- Kwandulin [~Miranda@p200300760F2C716E7C6093CDB2D44C99.dip0.t-ipconnect.de] has joined #wesnoth 20160917 12:18:30-!- bumbadadabum [~bumbadada@wesnoth/developer/bumbadadabum] has joined #wesnoth 20160917 13:22:29-!- Bonobo [~Bonobo@2001:44b8:254:3200:40ec:aa1c:4762:edd] has quit [Quit: Leaving] 20160917 13:30:30-!- Kwandulin [~Miranda@p200300760F2C716E7C6093CDB2D44C99.dip0.t-ipconnect.de] has quit [Read error: Connection reset by peer] 20160917 13:38:30-!- celticminstrel [~celmin@unaffiliated/celticminstrel] has joined #wesnoth 20160917 13:40:09-!- ChipmunkV [~vova@static-89-94-113-91.axione.abo.bbox.fr] has quit [Quit: ChipmunkV] 20160917 14:11:52-!- ChipmunkV [~vova@static-89-94-113-91.axione.abo.bbox.fr] has joined #wesnoth 20160917 14:22:13-!- Kwandulin [~Miranda@p200300760F2C716EDC2190581E6F5241.dip0.t-ipconnect.de] has joined #wesnoth 20160917 14:38:42-!- ChipmunkV [~vova@static-89-94-113-91.axione.abo.bbox.fr] has quit [Quit: ChipmunkV] 20160917 14:56:47-!- ancestral [~ancestral@209.181.254.220] has joined #wesnoth 20160917 14:59:17-!- ToBeCloud [uid51591@wikimedia/ToBeFree] has joined #wesnoth 20160917 15:04:21-!- louis94 [~~louis94@91.178.242.17] has joined #wesnoth 20160917 15:09:11-!- salluc69_ [~salluc69@host31-199-dynamic.16-79-r.retail.telecomitalia.it] has joined #wesnoth 20160917 15:09:19-!- salluc69_ [~salluc69@host31-199-dynamic.16-79-r.retail.telecomitalia.it] has quit [Remote host closed the connection] 20160917 15:10:05-!- salluc69 [~salluc69@host31-199-dynamic.16-79-r.retail.telecomitalia.it] has quit [Ping timeout: 244 seconds] 20160917 15:11:24-!- Kwandulin [~Miranda@p200300760F2C716EDC2190581E6F5241.dip0.t-ipconnect.de] has quit [Read error: Connection reset by peer] 20160917 15:21:04-!- salluc69 [~salluc69@host31-199-dynamic.16-79-r.retail.telecomitalia.it] has joined #wesnoth 20160917 15:29:04-!- Kranix [~magnus@2a05:f6c2:5085:0:872f:9985:1ac5:6bc] has quit [Ping timeout: 265 seconds] 20160917 15:34:42-!- wario [~wario_@unaffiliated/wario] has quit [Read error: Connection reset by peer] 20160917 15:34:52-!- wario [~wario_@unaffiliated/wario] has joined #wesnoth 20160917 15:37:25-!- ancestral [~ancestral@209.181.254.220] has quit [Quit: ancestral] 20160917 15:39:08-!- Kwandulin [~Miranda@p200300760F2C716E75C68ACFDA6063B8.dip0.t-ipconnect.de] has joined #wesnoth 20160917 15:52:24-!- louis94 [~~louis94@91.178.242.17] has quit [Quit: Konversation terminated!] 20160917 16:11:37-!- tokage is now known as DrTokage 20160917 16:19:53-!- DrTokage is now known as tokage 20160917 16:20:51-!- Kranix [~magnus@x1-6-74-44-01-e4-f1-52.cpe.webspeed.dk] has joined #wesnoth 20160917 16:53:19-!- DeFender1031 [~DeFender1@46-116-114-128.bb.netvision.net.il] has joined #wesnoth 20160917 17:04:16< DeFender1031> aeth, Re your comment about vversion checking yesterday: that assumes that I have some way to gracefully degrade to the other version. In some cases, I don't. 20160917 17:04:25< DeFender1031> or rather, may not. 20160917 17:04:58< DeFender1031> meaning, if I were to be switching to dev, it'd be because prod is not sufficiently feature-complete. 20160917 17:47:04-!- hk238 [~kvirc@unaffiliated/hk238] has quit [Quit: http://www.kvirc.net/ 4.9.2 Aria] 20160917 18:28:27-!- Kwandulin [~Miranda@p200300760F2C716E75C68ACFDA6063B8.dip0.t-ipconnect.de] has quit [Read error: Connection reset by peer] 20160917 18:56:48-!- ChipmunkV [~vova@static-89-94-113-91.axione.abo.bbox.fr] has joined #wesnoth 20160917 19:17:28< aeth> DeFender1031: you should come up with a way to gracefully degrade imo 20160917 19:17:37< aeth> although to be fair for me it's mostly menus so I can just not have something in a menu 20160917 19:22:30< DeFender1031> aeth, well, for example there's the translation thing that I mentioned yesterday propting the comment. If there's no way to get those translations, then I suppose the "graceful degredation" is showing them untranslated, but that's not really a solution. 20160917 19:22:54< DeFender1031> aeth, speaking of which, you never responded about whether you know how to do so. 20160917 19:29:49< aeth> DeFender1031: I haven't bothered with translations yet, they're at the bottom of my todo 20160917 19:30:04< aeth> I *have* gotten a lot of things translated for free, but I haven't put any work into it. 20160917 19:30:25< aeth> I use the unit definition strings, I think? 20160917 19:30:26< DeFender1031> that's not my question 20160917 19:30:48< aeth> DeFender1031: I haven't put any work into translating my add-on in about 1.5 years 20160917 19:30:56< DeFender1031> whether or not translations exist, a string can be displayed through the translation system or not 20160917 19:30:58< aeth> so I don't know any specifics right now 20160917 19:31:11< DeFender1031> meaning, a "translated string" is a certain data type 20160917 19:31:25< DeFender1031> whether or not it's actually any different than the plain string it represents 20160917 19:31:32< aeth> I'm aware of that, let me look at my add-on in Spanish and see what it has translated 20160917 19:31:44< aeth> I have not translated the species names 20160917 19:31:50< aeth> I didn't get around to that yet 20160917 19:32:17< aeth> it should be possible in theory, and I have most of the unit stuff translated (all except my custom body text) 20160917 19:32:20< DeFender1031> my question is whether you know how to get translated strings for those 5 (well, 4 now that celticminstrel helped with the answer to one of them) pieces of game data 20160917 19:33:27< celticminstrel> What were the five, again... 20160917 19:33:47< celticminstrel> Now that I think of it, it should be possible to get them in Lua/WML even in 1.12. 20160917 19:34:12< aeth> DeFender1031: no, if I haven't done it in my add-on, then I haven't looked into it yet. 20160917 19:34:16< aeth> I only translated the unit stuff 20160917 19:34:50< DeFender1031> celticminstrel, unit.race (which you helped with), unit.gender, unit.alignment, attack.range and attack.type 20160917 19:35:02< aeth> oh actually I did do gender iirc 20160917 19:35:19< celticminstrel> Well, for range and attack type, you can certainly do (in Lua) wesnoth.textdomain("wesnoth")("ranged") 20160917 19:35:31< aeth> also alignment 20160917 19:35:38< aeth> gender and alignment are easy, you just get them from the unit 20160917 19:35:45< aeth> the strings you get are translatable iir 20160917 19:35:46< aeth> *iirc 20160917 19:35:54< DeFender1031> aeth, they are?! they didn't seem to be 20160917 19:36:10< celticminstrel> If they're translatable, type(x) will return "userdata" in Lua. 20160917 19:36:12< aeth> https://github.com/Aethaeryn/wesnoth-umc/blob/master/Aethaeryns_Mod/lua/gui2.lua#L364-L383 20160917 19:36:27< aeth> DeFender1031: unit_data.name and unit_data.alignment are 20160917 19:36:34< aeth> not sure about gender, I actually get that differently 20160917 19:37:11< DeFender1031> name isn't one of the ones i mentioned. 20160917 19:37:15< aeth> permalink in case the file changes: https://github.com/Aethaeryn/wesnoth-umc/blob/372addfaef55d3583c0e53a3b7efae3b50727433/Aethaeryns_Mod/lua/gui2.lua#L364-L383 20160917 19:37:17< celticminstrel> The wesnoth.textdomain(dom)(str) strategy would actually work for any translatable string in a known textdomain. 20160917 19:37:17< DeFender1031> alignment doesn't seem to be 20160917 19:37:34< celticminstrel> The equivalent in WML is to switch textdomains mid-file, or have a file of macros for it. 20160917 19:37:35< DeFender1031> celticminstrel, okay then 20160917 19:37:39< aeth> DeFender1031: unit_data.alignment is *definitely* translated in that function, I just loaded it up in Spanish and got "legal" for mage 20160917 19:37:51< aeth> DeFender1031: oh 20160917 19:38:00< aeth> DeFender1031: What I did was I did tostring(_(unit_data.alignment)) 20160917 19:38:03< DeFender1031> aeth, you're passing it to _ 20160917 19:38:04< aeth> you're right 20160917 19:38:05< DeFender1031> yeah 20160917 19:38:17< aeth> that's what I did then, I passed it all to _ 20160917 19:38:27< celticminstrel> Which is probably wrong. 20160917 19:38:29< aeth> I hate that stupid _ thing, so easy to overlook it 20160917 19:38:35< celticminstrel> You don't want to pass it to _ 20160917 19:38:36< DeFender1031> and... yes. i'm an idiot. of course to get the translations, you pass the unstranslated strings to the stranslation function. 20160917 19:38:43< aeth> celticminstrel: it's probably wrong but it works 20160917 19:38:43< celticminstrel> _ represents your own textdomain, usually. 20160917 19:38:58< aeth> at least it works right now 20160917 19:39:05< celticminstrel> If _ represents Wesnoth's textdomain, it feels a bit misleading. 20160917 19:39:13< celticminstrel> But sure, if it works, then great. 20160917 19:39:55< celticminstrel> DeFender1031: wesnoth.textdomain(dom)(str) doesn't translate the string; it's calling tostring on the result that does it. 20160917 19:40:04< celticminstrel> Though anywhere it's displayed that will be done for you. 20160917 19:40:35< aeth> celticminstrel: if there's a better way I'm open to hearing it... that way I can finish translating everything that's translated like e.g. the species names 20160917 19:41:21< celticminstrel> aeth: I don't think there's any better way. If it were me, I'd probably just call _ something else when looking up mainline strings, but whatever. 20160917 19:41:45< aeth> you're probably right 20160917 19:42:26< aeth> most of the middle period of my add-on's code is terribly written because it was more about getting it done than doing it right 20160917 19:42:30< DeFender1031> celticminstrel, interesting. though if it's transparent, it doesn't entirely change its usage, but that's a good point. it returns a userdata of translation string which then needs to be luaified, which happens automatically in MOST contexts. fine. 20160917 19:45:07< DeFender1031> aeth, by "species", you mean race? there's wesnoth.races[unit.race].name 20160917 19:45:07-!- tokage is now known as install 20160917 19:45:18< DeFender1031> (or the texdomain trick with might be simpler) 20160917 19:45:28-!- install is now known as tokage 20160917 20:01:34-!- J1sy [~J1sy@105.1.96.181] has joined #wesnoth 20160917 20:02:30-!- J1sy [~J1sy@105.1.96.181] has quit [Client Quit] 20160917 20:06:32-!- J1sy [~J1sy@105.1.96.181] has joined #wesnoth 20160917 20:06:53< celticminstrel> Using wesnoth.races does ensure it works with any race, not just mainline. 20160917 20:08:11 * J1sy slaps APic around a bit with a large S60 device 20160917 20:09:15< DeFender1031> celticminstrel, oof. good point. But that could be a problem with attack type and attack range too 20160917 20:09:32-!- J1sy [~J1sy@105.1.96.181] has quit [] 20160917 20:09:39< DeFender1031> probably not with gender or alignment, as i think the acceptable values there are hard-coded and can't be expanded. 20160917 20:10:03< celticminstrel> Yeah. 20160917 20:10:18< celticminstrel> I don't know any way of getting attack type/range in a general way like that. 20160917 20:10:26< DeFender1031> so... how do I do it in such a way that it gets the proper translatio- argh. 20160917 20:10:55< celticminstrel> I suspect extra types/ranges would be rare, so it might not be a huge problem... then again, I haven't done a survey to back up (or dispel) my suspicion. 20160917 20:12:18< DeFender1031> celticminstrel, i have a custom type in my add on, and i know there are a few eras and such that add on such things. 20160917 20:12:43< DeFender1031> the translations for those are centrally available in the toplevel language tag 20160917 20:13:01< DeFender1031> the only question is whether there's a way to access that from lua 20160917 20:13:04< celticminstrel> I did add a custom range in DruidSiege sequel (which I might actually consider switching to 1.13 for). 20160917 20:13:13< celticminstrel> I know of no way to access it from Lua. 20160917 20:13:20< DeFender1031> :/ 20160917 20:13:31< celticminstrel> I suppose for 1.13 a key could be added to the type proxy, though I'm not actually sure how the game handles that. 20160917 20:19:06< DeFender1031> celticminstrel, UPP accesses that information somehow. 20160917 21:06:55-!- ChipmunkV [~vova@static-89-94-113-91.axione.abo.bbox.fr] has quit [Quit: ChipmunkV] 20160917 21:52:14-!- Appleman1234 [~Appleman1@KD119104048120.au-net.ne.jp] has quit [Ping timeout: 244 seconds] 20160917 22:49:03-!- Appleman1234 [~Appleman1@KD119104050103.au-net.ne.jp] has joined #wesnoth 20160917 22:54:07-!- Kranix [~magnus@x1-6-74-44-01-e4-f1-52.cpe.webspeed.dk] has quit [Quit: Konversation terminated!] 20160917 23:20:36-!- Bonobo [~Bonobo@2001:44b8:254:3200:605a:61d9:df57:9fbd] has joined #wesnoth 20160917 23:38:40-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has quit [Ping timeout: 265 seconds] --- Log closed Sun Sep 18 00:00:28 2016