[07:12] good morning === Gwaihir is now known as Guest56259 [11:27] Hi! [11:27] Does anyone know where to translate command not found ? [11:27] there is a package in precise [11:27] https://translations.launchpad.net/ubuntu/precise/+source/command-not-found/+pots/command-not-found/sl/+translate [11:28] But there is no string No command ' ' found, did you mean: [11:58] hi andrejz, I used to translate it from there. Is that particular string not in the template? [11:59] No command 'command name' found, did you mean [12:01] andrejz, hm, it seems the command-not-found program is either not loading translations or that particular string is not marked for translation [12:02] i would gess the second since it's not in the template [12:02] guess [12:02] strange nobody has noticed this before ;) [12:02] how can one check if it's marked for translation ? [12:02] looking at the code [12:02] e.g. [12:03] bzr branch lp:command-not-found [12:03] cd command-not-found [12:03] grep -R 'did you mean' * [12:04] andrejz, btw, I saw you marked the work item to keep track of universe translation contacts as done, good work! Would you mind adding a note to the whiteboard as to where are you keeping track of them (e.g. wiki, Trello..., etc)? [12:05] doing it on wiki [12:06] banshee is already in quantal [12:06] for the rest i am waiting developer response [12:09] https://wiki.ubuntu.com/Translations/Universe_Translations_in_LP [12:11] andrejz, cool, thanks. So would you mind updating the whiteboard on the blueprint with this URL? This way it's easier for everyone to know where to look at [12:12] ah, I see you've already done it, thanks! [12:13] basically just 2 developers replies in 1 week [12:13] so we will see how it will go [12:14] now at least banshee is in,so we have started with something [12:14] if I grep for 'command not found' I only get results for bash, could the string be in there? [12:15] (searching in /usr/share/locale*) [12:15] i think that's might not be the same string [12:17] andrejz: I'm not sure, if I start another shell with /bin/sh, giving in a random command gives "not found" instead of "command not found" [12:18] hm, interesting [12:26] if i type something strange i get exactly the same string as the one in bash [12:27] but if i trype ping2 instead of ping [12:27] I get a string "No command 'ping2' found, did you mean: " [12:27] which i cannot find in bash [12:42] andrejz: I think that is done by command-not-found, which lives in /usr/lib/command-not-found [12:53] yes, but that string is not in the template [12:53] https://translations.launchpad.net/ubuntu/precise/+source/command-not-found/+pots/command-not-found/sl/+translate [13:33] dpm [13:33] i found those strings in command not found [13:33] ah cool [13:33] how can one see if they are marked for translation from source code [13:33] ? [13:34] they should be wrapped in _(), e.g. _('This is a translatable string') [14:20] gabor@gabor-VirtualBox:~/checkout/ubuntu/command-not-found/po$ intltool-update -p [14:20] Cannot find top_srcdir in Makefile. at /usr/bin/intltool-update line 1146. [14:20] hm, this doesn't look good [14:21] and the pot file is not generated by this [14:35] i agree kelemengabor [14:36] looking closer at it, looks like the i18n part is a mess of this package :\ [14:36] it uses a po/Makefile, which is referenced from setup.py, but commented out even there [14:36] geez :( [14:37] I'll try to create a pot file from what we have and upload it [14:38] then dung out this mess at the upstream/quetzal level === sagaci_ is now known as sagaci [14:50] thanks kelemengabor [14:52] https://translations.launchpad.net/ubuntu/precise/+source/command-not-found/+pots/command-not-found pot file is uptodate, happy translating! :) [15:02] kelemengabor: don't print ': command not found' <- is it supposed to be like that? [15:02] artnay: ? [15:03] this is what's written there... [15:04] /usr/lib/command-not-found --help writes this out [15:05] figured it out although there's not much documentation, only /usr/share/doc/command-not-found/README and https://wiki.ubuntu.com/CommandNotFoundMagic [15:08] print >>sys.stderr, _("%s: command not found") % args[0] - the translation exists but it's not used [15:12] thanks kelemengabor [15:15] however there are still some strings not marked for translation just so that you know