Bug 799500

Summary: Internationalization yum-presto
Product: [Fedora] Fedora Reporter: dominique <chepioq>
Component: yum-prestoAssignee: Jonathan Dieter <jonathan>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: high    
Version: 16CC: chepioq, james.antill, jonathan, kraymond, marbolangos, piotrdrag, shnurapet, tim.lauridsen
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: yum-presto-0.7.3-1.fc17 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-04-12 03:20:39 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Description Flags
yum-presto-0.7.1-2.test.fc16.src.rpm none

Description dominique 2012-03-02 19:45:15 UTC
Created attachment 567151 [details]

I use yum-presto, but it's not internationalized yet...

For me, I build this version internationalized, if you want, you can use and may be integrate in official repo for fedora.


Comment 1 dominique 2012-03-02 19:46:33 UTC
Created attachment 567152 [details]

Comment 2 dominique 2012-03-02 19:49:49 UTC
i precise in this rpm there is the french translation, validated by the transifex french team  which I belong

Comment 3 Kevin Raymond 2012-03-03 20:47:56 UTC
Thank you dominique, that would be great that the yum team includes your patch and add yum-presto to the yum project under transifex.net.

IMHO, all plugins enabled by default under Fedora should have translations (there is no point to have only part of yum translated).

Comment 4 dominique 2012-03-09 19:11:34 UTC
Code cleanup, see attachments yum-presto-0.7.1-3.fc16.noarch.rpm and yum-presto-0.7.1-3.fc16.src.rpm.

If the maintainer of yum-presto could answer me...

Comment 5 dominique 2012-03-09 19:13:04 UTC
Created attachment 568985 [details]

Comment 6 dominique 2012-03-09 19:13:44 UTC
Created attachment 568986 [details]

Comment 7 Jonathan Dieter 2012-03-09 19:34:50 UTC
I have seen this and will review your changes ASAP. Unfortunately, I'm currently very busy with $dayjob, but I hope to have some time in the coming week.

Comment 8 Jonathan Dieter 2012-03-15 07:46:32 UTC
First off, a huge thank you for working towards internationalizing yum-presto!  I really appreciate the effort as I know nothing about internationalization.

I would love to incorporate your patch, but there are a few problems that need to be fixed first:

1. I'm not sure why you converted setup.py to a Makefile, but I would like to stick with setup.py and extend it to copy the necessary files to the necessary locations.

2. I'm not sure what the purpose is in creating /var/lib/up2date, but, if it's not being used, I don't believe there's any reason to create it.

For what it's worth, yum-presto's git repository is available at git://git.fedorahosted.org/git/hosted/presto.  If you could send me git patches rather than a full src.rpm, it would make it easier to see what's changed, and, thus, easier to review.

Once again, thanks for your effort on this!

Comment 9 dominique 2012-03-15 17:24:29 UTC
Thank for your reply.

I want to clarify a few things:

-- First I am not a programmer and I made this internationalization from package yum-rhn-plugin, and adapt to yum-presto.

In this package there is a line in the spec (in %files): %dir /var/lib/up2date but for yum-presto it's not used and you can remove this line (I forgot it when I clean code).

I use a makefile because I am not a programmer, and I don't know how made internationalization with python, I just adapt the yum-rhn-plugin to yum-presto.

There is an how-to for that here : http://docs.python.org/library/gettext.html
but for me it's very hard...

Comment 10 dominique 2012-03-17 16:45:51 UTC
Hi all...

I found this how-to : http://wiki.maemo.org/How_to_Internationalize_python_apps

After multiple tests, I can build an rpm with apparently translation.

But that don't work, when I launch Yum I have this error:

"Plugin "presto" can't be imported"

I don't know why...

I attach the source rpm "yum-presto-0.7.1-2.test.fc16.src.rpm", If you can see what it's wrong...

Comment 11 dominique 2012-03-17 16:46:41 UTC
Created attachment 570813 [details]

Comment 12 Jonathan Dieter 2012-03-20 11:41:22 UTC
I'll take a look at this as soon as I have time.

Comment 13 Fedora Update System 2012-03-26 11:15:49 UTC
yum-presto-0.7.2-1.fc17 has been submitted as an update for Fedora 17.

Comment 14 Jonathan Dieter 2012-03-26 11:17:12 UTC
I'm pushing an update for Fedora 17, but as this is an enhancement and not a bugfix, I'd prefer not to update Fedora 16.

Comment 15 Kevin Raymond 2012-03-26 12:44:42 UTC
Thank you, works for me (using French locale).
Could you now add the POT in our translation plateform transifex.net?

You could see with the yum team if you want to reuse there translations team, or the one of the Fedora Project.



You would probably prefer a new ticket for that… I help you if you want.


Comment 16 dominique 2012-03-26 19:13:44 UTC
Thank you Jonathan, I rebuild your rpm source for F16, and that work fine.

I think you can close this "bug"...

Comment 17 Fedora Update System 2012-03-28 05:55:21 UTC
Package yum-presto-0.7.2-1.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing yum-presto-0.7.2-1.fc17'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).

Comment 18 Fedora Update System 2012-03-29 16:58:48 UTC
yum-presto-0.7.3-1.fc17 has been submitted as an update for Fedora 17.

Comment 19 Fedora Update System 2012-04-12 03:20:39 UTC
yum-presto-0.7.3-1.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.