On 26/02/2012 06:54 م, Detlev Offenbach wrote: Thanks... it works.Am Sonntag, 26. Februar 2012, 15:56:54 schrieb Vincent Vande Vyvre:Le 26/02/12 15:16, ad...@mbnoimi.net a écrit : On 19/02/2012 09:55 م, Vincent Vande Vyvre wrote: Le 19/02/12 19:55, ad...@mbnoimi.net a écrit : On 19/02/2012 08:22 م, ad...@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).
-- Best Regards Muhammad Bashir Al-Noimi My Blog: http://mbnoimi.net |
_______________________________________________ PyQt mailing list PyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt