Bug 573016 - translation in yumex not complete.
Summary: translation in yumex not complete.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: yumex
Version: 12
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Tim Lauridsen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-03-12 15:45 UTC by dominique
Modified: 2010-06-23 17:50 UTC (History)
1 user (show)

Fixed In Version: yumex-2.9.8-1.fc13
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-06-23 17:50:18 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description dominique 2010-03-12 15:45:05 UTC
Description of problem:
I use yumex for update my fedora, and I see a bug in the translation (tested with French, Italian and Spanish).

In "View" there are five item (Packages, Queue, Repository, History and Output).
This five strings are in the yumex.po for french, italian and spanish, and are translate, but when I launch yumex "History" is not translate.

As well in Edit==>Preferences menu there is two tabs (Basic and Advanced) which are no translate, and the translation is in the yumex.po for french, italian and spanish.

I think there a little bug, but I search on web and I see nothing (may-be a bug with glade?)

Comment 1 dominique 2010-03-15 05:07:39 UTC
For test I launch yumex in Chinese and Dutch with this command:

LANG=zh_CN yumex
LANG=nl yumex

for same result...

Nobody know why translation don't work for "basic" "advanced" and "History" ?

Comment 2 Tim Lauridsen 2010-03-20 05:49:49 UTC
Yes, it is a gtkbuilder issues, I have added a work around for these untranslated labels upstream, so they will be translated in next release.

http://git.fedoraproject.org/git/?p=yumex.git;a=commitdiff;h=c9d26fd427db76c3b3e36b6fc45ec633bf75fa3e

http://git.fedoraproject.org/git/?p=yumex.git;a=commitdiff;h=4ac9313f0ff70871f6b9d90649af9cf2b1537eb8

Comment 3 dominique 2010-03-20 17:32:19 UTC
(In reply to comment #2)
> Yes, it is a gtkbuilder issues, I have added a work around for these
> untranslated labels upstream, so they will be translated in next release.
> 
> http://git.fedoraproject.org/git/?p=yumex.git;a=commitdiff;h=c9d26fd427db76c3b3e36b6fc45ec633bf75fa3e
> 
> http://git.fedoraproject.org/git/?p=yumex.git;a=commitdiff;h=4ac9313f0ff70871f6b9d90649af9cf2b1537eb8    
Where can I download this version of yumex for test?

Comment 4 dominique 2010-03-22 07:23:03 UTC
I find...
I go to https://fedorahosted.org/yumex/ and do:
git clone git://git.fedorahosted.org/git/yumex.git/
git checkout --track -b future origin/future
 But when I do make I have this error:
xgettext: Erreur lors de l'ouverture de « ./../src/test.py » en lecture : Aucun fichier ou dossier de ce type
ERROR: xgettext failed to generate PO template file. Please consult
       error message above if there is any.
make[1]: *** [yumex.pot] Erreur 1
make[1]: quittant le répertoire « /home/dominique/yumex/po »
make: *** [subdirs] Erreur 1
I go to /yumex/po and in POTFILES.in I remove the first line: "src/test.py"
After "make" work...

But when I do make install I have this error: 

ln -s  yum_childtask.py /root//usr/share/yumex/yumex-yum-backend
ln: création d'un lien symbolique `/root//usr/share/yumex/yumex-yum-backend': Le fichier existe
make[1]: *** [install] Erreur 1
make[1]: quittant le répertoire « /home/dominique/yumex/src »
make: *** [install] Erreur 1

I go to root//usr/share/yumex and remove this link 
After I have an other error
ln -s consolehelper /usr/bin/yumex-yum-backend
ln: création d'un lien symbolique `/usr/bin/yumex-yum-backend': Le fichier existe
make: *** [install] Erreur 1

I remove this other link and "make install" work with no- errors.

But when I want launch yumex I have this error: 

[dominique@localhost ~]$ yumex
/usr/bin/python: can't open file '/usr/share/yumex/yumex.pyc': [Errno 2] No such file or directory
[dominique@localhost 

And I find why...
"make install" install in my root directory, I don't know why...

I copy all the files and folder in my "/" directory and that work.

And "basic" "advanced" and "History" are now translate...

Comment 5 Tim Lauridsen 2010-03-27 06:47:58 UTC
If you have a fresh checkout of the yumex future branch

then do a 'make test-release' to build rpms

and do this as root

rpm -Uvh ~/rpmbuild/RPMS/noarch/yumex-<TAB>

to install the RPMs

run 'yumex' to test

Comment 6 dominique 2010-03-27 07:16:20 UTC
That don't work, I have this error:

[dominique@localhost ~]$ git clone git://git.fedorahosted.org/git/yumex.git/
Initialized empty Git repository in /home/dominique/yumex/.git/
remote: Counting objects: 3462, done.
remote: Compressing objects: 100% (1805/1805), done.
remote: Total 3462 (delta 2548), reused 2274 (delta 1637)
Receiving objects: 100% (3462/3462), 1.97 MiB | 463 KiB/s, done.
Resolving deltas: 100% (2548/2548), done.

[dominique@localhost ~]$ cd yumex

[dominique@localhost yumex]$ git checkout --track -b future origin/future
Branch future set up to track remote branch future from origin.
Switched to a new branch 'future'

[dominique@localhost yumex]$ make test-release
Switched to a new branch 'release-test'
# Add '.test' to Version in spec file
[release-test 6491302] bumped yumex version to 2.9.7.test
 1 files changed, 1 insertions(+), 1 deletions(-)
# Make Changelog
Can't locate Date/Parse.pm in @INC (@INC contains: /usr/local/lib64/perl5/site_perl/5.10.0/x86_64-linux-thread-multi /usr/local/lib/perl5/site_perl/5.10.0 /usr/lib64/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl .) at ./tools/git2cl line 26.
BEGIN failed--compilation aborted at ./tools/git2cl line 26.
make: *** [test-release] Erreur 2
[dominique@localhost yumex]$

Comment 7 Tim Lauridsen 2010-03-27 11:17:24 UTC
yum install perl-TimeDate should fix that

Comment 8 dominique 2010-03-27 20:07:45 UTC
Thank Tim...
I install perl-TimeDate and that work...
After I install the yumex...rpm and that work fine...
If you want me to test something, I can do...
Amicalement,
dominique

Comment 9 dominique 2010-04-22 07:14:03 UTC
Hi Tim,
For test I install the latest release of yumex git by git clone git://git.fedorahosted.org/git/yumex.git/, I compile and install the rpm, that work.
But I have a bug:
In yumex when I click on "All" button I have this error message:

An exception was triggered:
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/yumexbackend/yum_server.py", line 1162, in dispatcher
    self.parse_command(args[0], args[1:])
  File "/usr/lib/python2.6/site-packages/yumexbackend/yum_server.py", line 1102, in parse_command
    self.get_packages(args[0],args[1])
  File "/usr/lib/python2.6/site-packages/yumexbackend/yum_server.py", line 69, in newFunc
    return func(*args, **kwargs)
  File "/usr/lib/python2.6/site-packages/yumexbackend/yum_server.py", line 525, in get_packages
    elif pkg in obsoletes:
NameError: global name 'obsoletes' is not defined

Otherwise yumex work, I can update or remove, or choose repo, and the other buttons work.

Comment 10 dominique 2010-04-22 07:35:01 UTC
Hi Tim,
I find where is the error:
In /src/yumexbackend/yum_server.py , line 519 you have:
                obsoltes = self._package_cache.obsoletes

I replace by:
                obsoletes = self._package_cache.obsoletes

Recompile and re-install new rpm and now that work fine...

Comment 11 Tim Lauridsen 2010-04-22 07:40:56 UTC
Thanks, yes it is a simple typo, i have fixed it upstream :)

Comment 12 Fedora Update System 2010-06-05 05:41:27 UTC
yumex-2.9.8-1.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/yumex-2.9.8-1.fc13

Comment 13 dominique 2010-06-05 17:34:29 UTC
Hi...
Installed and tested with F13 and F14 rawhide.
Work fine without crashes.
Thank for this update.

Comment 14 Fedora Update System 2010-06-07 22:20:57 UTC
yumex-2.9.8-1.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update yumex'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/yumex-2.9.8-1.fc13

Comment 15 Fedora Update System 2010-06-23 17:49:58 UTC
yumex-2.9.8-1.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.