![]() |
#1 |
Enthusiast
![]() Posts: 32
Karma: 10
Join Date: Jul 2011
Device: none
|
![]()
First thanks a lot for all your previous help, you've been helpful, i don't need much time and sorry for bothering, i just need to know the place where i can find the language conditions where do calibre check for language and what is the function concerning this part of code, i also appreciate if you please tell me how to update the .po files ? i just downloaded the new translation after being modified and then replace the old .po file with the correct naming ex: en.po ; but i figured out that nothing changed, the new modifications didn't appear, also i need to know is there a possible way to change the naming of the added from ISBN Books to be able to name the folder as the (ISBN number) it self, or even change the cover.jpg to be the ISBN_number.jpg
one more thing i installed eclips also set the PyDev environement, i need to know now how to open and work with calibre within this environement and how would i be able to debug and trace using it ? ? thanks a lot. looking forward to have a reply. Last edited by Naderstouhy; 07-13-2011 at 08:22 AM. |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,146
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
calibre.utils.localization
Instructions on how to test changes to translations are here: http://calibre-ebook.com/get-involved You cannot change the folder naming scheme. I dont use PyDev, so I cannot help you with that. |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Enthusiast
![]() Posts: 32
Karma: 10
Join Date: Jul 2011
Device: none
|
i've been reading this manual for ages
![]() i tried to change the environement path of calibre to ...../src/calibre/translations/ (didn't work) furthermore i tried to run the __init__.py (in the translations directory ) from the cmd line i had few errors regarding the second arg which is the URL, please i just need to know what i need to do in order to update these translations ? Quote:
|
|
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,146
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Open a command prompt. change your directory to the directory containing the .po file.
Run calibre |
![]() |
![]() |
![]() |
#5 |
Enthusiast
![]() Posts: 32
Karma: 10
Join Date: Jul 2011
Device: none
|
what i did : from the command line c:/python25/.../translations :start "c:/program files/calibre2/calibre.exe"
also i tried : c:/python25/.../translations : calibre.exe ( nothing happens ) output : no execution.. also i tried from the bazaar to commit -m "" c:/.../translations output : no changes found. any hints ? thanks |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,146
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The command to change directories is cd
use it to change the directory first, then launch calibre. |
![]() |
![]() |
![]() |
#7 |
Enthusiast
![]() Posts: 32
Karma: 10
Join Date: Jul 2011
Device: none
|
Than i'm sure i did it and unfortunately it didn't work i dunno why .. i even tried to run calibre remotely from this directory but it didn't work as well, what may be the solution ? can i update the translation from within the code ? i tried to modify some code in order to be able to update the message.mo & iso639 files but couldn't find any good result as well. thanks a lot for you precious time.
![]() |
![]() |
![]() |
![]() |
#8 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,146
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
look at lines 74-79 in localization.py they are what loads the .po file from the current directory.
|
![]() |
![]() |
![]() |
#9 |
Enthusiast
![]() Posts: 32
Karma: 10
Join Date: Jul 2011
Device: none
|
i tried everything within this code, i think it's something related to the Translations.py, the Translations(POT) am i right ? if so what do this function do take as parameter ?
|
![]() |
![]() |
![]() |
Tags |
isbn, translation |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Couple of questions | alfytheige | Which one should I buy? | 13 | 01-21-2011 03:35 AM |
a couple of questions | daizyduke | Astak EZReader | 4 | 12-10-2009 08:19 PM |
A couple of questions | Metathron | Bookeen | 12 | 07-31-2009 07:05 AM |
Couple of questions | royboy99 | Sony Reader | 3 | 03-26-2009 06:53 AM |
Couple of questions... | Diegan | HanLin eBook | 8 | 01-23-2009 04:57 PM |