#musicbrainz-devel

/

      • ruaok
        2ms? nice.
      • Mineo
        to answer ocharles' important question: "wo ist plaintext" is indeed the german version of "where is plaintext" :)
      • ocharles
        ruaok: 2ms everywhere
      • but of coursse the first request is not 2ms
      • ruaok
        of course
      • the_metalgamer joined the channel
      • MBChatLogger: off
      • MBChatLogger
        is not logging
      • is logging
      • ocharles
        ruaok: just curious how many /ws/2 urls are fetched more than once within say 24 hours
      • ruaok
        ah, now I know why you were looking for plaintext.
      • ocharles
        :)
      • ruaok
        would you like a splunk login to write a query yourself?
      • ocharles
        that'd be swell!
      • ruaok
        I think we currently have a week's worth of data loaded.
      • k
      • reosarevok
        ruaok: apparently it's public
      • (since nikki says she got a mail about it from SU)
      • ruaok
        k
      • reosarevok
        Apparently they recommended MusicBrainz in their closing mail :p
      • ruaok
        reosarevok: oh good. thats why we chatted last week.
      • it was somewhat weird to be walking down the street in barcelona talking to amazon in the US.
      • ocharles: acid2 or ocharles as the login?
      • ocharles
        ocharles
      • ruaok
        done.
      • splunk.mb org
      • ocharles
        doesn't seem to load for me
      • oh wait, hosts
      • ruaok
        oh and for anyone with spotify premium. hit me up for a copy of the huesound app.
      • you'll need to enable a developer account to load the app.
      • but I've been having lots of fun with it.
      • ocharles
        Hmm, is splunk set up with the correct source type?
      • can't seem to extract just the request
      • ruaok
        I haven't looked at how plaintext imported the data.
      • you'll have to snoop around, Im afraid.
      • but I know he successfully used it.
      • ocharles
        ok
      • interesting, there are definitely some things that would benefit
      • bizzarely on artists that no longer exist
      • ianmcorvidae
        ocharles: sounds much better, yeah, I was writing a complicated sed script to postprocess a server log and writing a script :P
      • ocharles: the script might still be useful, though I only got through a chunk of the artist WS endpoints
      • ocharles
        i'm off now, time to pick up new modules :D
      • ianmcorvidae
        warp: to get a translated server, you need to get all the .po files for your language (probably from https://www.transifex.net/projects/p/musicbrain... ), put them in /po, run 'make <whatever>.mo' and then 'make install'
      • warp: and add the language to MB_LANGUAGES
      • warp: ideally ultimately we keep the .po files in the git tree but for now they're on transifex
      • warp
        ianmcorvidae: that should be in an INSTALL or README somewhere. is it? :)
      • ianmcorvidae
        probably not, good point :)
      • heh, I realized I even missed a step
      • which is that they need to be named in specific ways
      • Prophet5 joined the channel
      • warp: added to the codereview :)
      • warp
        ianmcorvidae: great, thanks. I'll try it in a couple of minutes.
      • ianmcorvidae
        warp: as an aside, if you want *all* the translations, nikki's github has a 'translations' branch you could merge in (that's what the sandbox uses)
      • warp
        great, I'll try that.
      • adhawkins joined the channel
      • adhawkins
        Current version: 5.0.1-2
      • ianmcorvidae
        :)
      • adhawkins
        Now if the guy would stop finding bugs in flactag as soon as I upload it, maybe that can migrate too!
      • Every time I upload a fix it resets the 10 day clock.
      • reosarevok
        Maybe you should ask him to check it *before* you upload it :p
      • adhawkins
        Well, I asked him to try out a patch on the last bug he reported and got no response for nearly a week, so figured it was easier just to fix it :)
      • warp
        ianmcorvidae: hrm. lots of conflicts.
      • ianmcorvidae
        warp: from what?
      • warp
        git merge nikki/translations
      • ianmcorvidae
        hm
      • warp
        into split-domains
      • so I guess I should get a translation manually then?
      • ianmcorvidae
        yeah, or just use checkout rather than an actual merge
      • it looks like the conflicts are in the .pot, which don't actually matter for your use :)
      • warp
        but then I won't have your split-domains work.
      • ianmcorvidae
        I mean checkout individual files, not the branch
      • warp
        ok, let's try again.
      • ianmcorvidae: I don't get a translated site yet. so there is more I need to do.
      • ianmcorvidae
        warp: what all have you done, then?
      • warp
        from nikki's branch make a copy of po/*nl*
      • put those in po/ on the split-domains branch
      • 22:10 warp [at bullet-bill]:~/code/mb2/po (split-domains *)$ rm mb_server.nl.mo
      • 22:10 warp [at bullet-bill]:~/code/mb2/po (split-domains *)$ make mb_server.nl.mo
      • 22:10 warp [at bullet-bill]:~/code/mb2 (split-domains *)$ cat lib/DBDefs.pm | grep LANG
      • sub MB_LANGUAGES {qw(nl)}
      • ianmcorvidae
        make install
      • warp
        ah!
      • ianmcorvidae
        the .mo files need to end up in lib/LocaleData/<lang>/LC_MESSAGES/<domain>.mo :)
      • yeah, in fact, just doing make install should also make the .mo files, nikki set me straight on that :)
      • warp
        right. I still don't see anything translated though.
      • bitmap joined the channel
      • ianmcorvidae
        browser accept-language set?
      • noting that it needs to be exact, at least at the moment -- that's a later fix :)
      • warp
        ianmcorvidae: yes, http://i18n.mbsandbox.org/artist/301a88e0-d105-... has lots of dutch in the same browser.
      • ianmcorvidae
        hm
      • lib/LocaleData/nl/LC_MESSAGES/ has all nine .mo?
      • you demonstrated the DBDefs stuff was correct
      • warp
        22:14 warp [at bullet-bill]:~/code/mb2 (split-domains *)$ ls lib/LocaleData/nl/LC_MESSAGES/
      • attributes.mo countries.mo instrument_descriptions.mo instruments.mo languages.mo mb_server.mo relationships.mo scripts.mo statistics.mo
      • ianmcorvidae
        okay, that looks correct
      • warp
        22:15 warp [at bullet-bill]:~/code/mb2 (split-domains *)$ strings lib/LocaleData/nl/LC_MESSAGES/mb_server.mo | tail
      • {uri|Zoek op SoundUnwound}
      • there is actual dutch in there as well.
      • ianmcorvidae
        well hm
      • I'm stumped, everything looks correct there
      • I guess restart the server, to make sure there's not something funky with caching going on (though I should have fixed all known problems in that vein)
      • other than that I'm confused, unless you have enlightenment from STDERR or such :)
      • warp issues a /etc/init.d/memcached stop
      • warp
        Use of uninitialized value in string eq at lib/MusicBrainz/Server/Controller/Artist.pm line 695.
      • every request says that about an uninitialized string, but no other errors.
      • ianmcorvidae
        yeah, that's probably because of memcached being stopped, something there about cookies
      • warp
        I did start memcached again ofcourse :)
      • ianmcorvidae
        huh
      • just to confirm: what's the sha1 you have checked out?
      • warp
        commit d15fc01fa879579cd9be308efa2ba21344f1e613
      • ianmcorvidae
        that's old
      • warp
        hm, I thought I did a git fetch.
      • ok, let's try again with newer code then :)
      • ianmcorvidae
        yeah, I think that's before the changes to actually *use* the new domains :)
      • warp
        commit 34c8013a514b97d9e3528c2ad761e43818c14bcd
      • ianmcorvidae
        that looks correct :)
      • warp
        22:27 warp [at bullet-bill]:~/code/mb2/po (split-domains)$ make mb_server.nl.mo
      • make: *** No rule to make target `mb_server.nl.mo'. Stop.
      • ianmcorvidae
        ...
      • I'm very confused, with the same 34c8013... checkout it works fine for me :/
      • (GNU Make 3.82, here)
      • presumably the %.mo: %.po entry should apply
      • anyway what it runs is 'msgfmt -o <mo filename> <po filename>'
      • warp
        oh it seems the *nl* files got lost in switching/checking out branches.
      • ianmcorvidae
        oh, hah
      • warp
        so back at the make install step
      • and now we get some proper errors :)
      • Error while loading app.psgi: "web_set_domain" is not exported by the Locale::Util module
      • Can't continue after import errors at lib/MusicBrainz/Server/Translation.pm line 10
      • ianmcorvidae
        what's your libintl-perl version?
      • er, hm, it still seems to exist in even old versions
      • er, wait
      • that should be web_set_locale
      • this may be a mistake on my part then :)
      • warp
        alright. are you pushing something new?
      • ianmcorvidae
        yes, one sec
      • warp: should be there now,
      • sha1 7aa72d3fe788b00...
      • ijabz joined the channel
      • warp
        yay! but I still don't get anything translated.
      • Use of uninitialized value in string eq at lib/MusicBrainz/Server/Controller/Artist.pm line 695.
      • Argument "1,041934" isn't numeric in numeric eq (==) at local/lib/perl5/Catalyst.pm line 1804.
      • Argument "0,075352" isn't numeric in numeric eq (==) at local/lib/perl5/Catalyst.pm line 1804.
      • kepstin-work
        oh great, someone's using localized string formatting operators for things that are used programatically :/
      • ianmcorvidae
        hm
      • okay
      • I'm going to poke around at this more, because clearly I did something incorrectly
      • so, uh, thanks for your review, I'll get back to you when it seems to work again :/
      • warp
        ianmcorvidae: haha, ok :)
      • ianmcorvidae
        warp: oh, question