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