[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] pylupdate4 issue
From:       Detlev Offenbach <detlev () die-offenbachs ! de>
Date:       2012-02-26 16:54:52
Message-ID: 2539659.MqU00f0Ak3 () jupiter
[Download RAW message or body]

Am Sonntag, 26. Februar 2012, 15:56:54 schrieb Vincent Vande Vyvre:
> Le 26/02/12 15:16, admin@mbnoimi.net a écrit :
> On 19/02/2012 09:55 م, Vincent Vande Vyvre wrote:
> Le 19/02/12 19:55, admin@mbnoimi.net a écrit :
> On 19/02/2012 08:22 م, admin@mbnoimi.net wrote:
> Hi all,
> 
> I tried to create *.ts file for my project by using pylupdate4 so I tried
> the following commad but it didn't work!
> 
> pylupdate4 *.py -ts %CD%\ui\l10n\ar.ts
> pylupdate4 error: Cannot open file '*.py': No error
> 
> Could you please guide me to the correct path?
> 
> PS
> I successfully created *.ts file for single *.py file.
> 
> I forgot to mention that I want to create single *.ts file for many *.py
> files
> 
> You must provide a .pro file to pyludate4
> 
> exemple of .pro file
> 
> SOURCES    = main.py\
>                         ui_mainWindow.py\
>                         otherFile.py\
>                         etc
> 
> TRANSLATIONS    = appName_ar.ts
> 
> CODECFORTR      = UTF-8
> 
> CODECFORSRC     = UTF-8
> 
> I don't want to use .pro because I've many files in many subdirecories which
> is very exhausting to write manually.
> 
> Any ideas guys?
> 
> --
> Best Regards
> Muhammad Bashir Al-Noimi
> My Blog: http://mbnoimi.net
> So, You can easily write a python script which will create the .pro file for
> you. No?

You could copy the relevant code from the eric4/eric5 sources (module 
ProjectLanguagesBrowser).

Regards,
Detlev
-- 
Detlev Offenbach
detlev@die-offenbachs.de
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic