Join Today
+ Reply to Thread
Page 1 of 3 123 LastLast
Results 1 to 10 of 30
Like Tree5Likes

Thread: QM file format and parser (proof of concept)

  1. #1

    Default QM file format and parser (proof of concept)


  2. #2

    Default

    Now we can modify QM, eg. replace strings, localize, etc.
    Latest is development release, for who understand perl and qm format, and can help us.
    pesarbad likes this.

  3. #3

    Default .QM FILE FORMAT

    pesarbad likes this.

  4. #4

    Default

    We did it! Localised app.:
    pesarbad likes this.

  5. #5
    Join Date
    Aug 2006
    Location
    Germany
    Posts
    788

    Default

    Wow, great news!!!

    How did you do it? Your upper post's I really don't understand but I'm very interested how to do this.

  6. #6

    Default

    just use hex-editor and my brains

    You can use perl (only linux) program "qm2any" (first post), it's still under development, but now very close.

  7. #7

    Default

    Finally, the preliminary release is ready. I think it's suitable moment to talk how to do own localization.

    Windows's users have to acquire the perl language, namely unglitch perl under cygwin, for this need to install cygwin and its revision of the perl (if the installation is new, you shoud just mark the appropriate point). We need to do following operations in the command line interpritator (cygwin, sh, perl):

    1. At the beginning to parse the file for we're convinced that the program understand it correctly:
    Code:
    $qm2any notepad.qm
    Complete!
    2. Extract all lines from the file:
    Code:
    $qm2any notepad.qm -e file.txt
    Complete!
    The program generate usual text file in the encoding windows-1251, the lines are separated by "0D0A". We just replace original lines at the Notepad and save it again (save as) the file and choose Unicode Big Endian at the "encoding" before saving.
    You should look for the general quantity of lines in file don't change by chance, program compiles the file despite mistakes you done.

    3. Now, try to remake the original file with file of localization:
    Code:
    $qm2any notepad.qm -r file.txt -o out.qm
    Complete!
    4. Check the correctness of compilation:
    Code:
    $qm2any out.qm
    Complete!
    So, we get "Complete" only at the all usual situations, if irregular situation will be happened the program show like following message:
    Code:
    $qm2any lib_en-us.qm
    Hash-list parse error: [16302] incorrect base offset!
    Hash-list separator error: [000155] unknown separator!
    Complete!
    If the message like this appeared - it's not meant that the program cannot localize file correctly, but it requires supplemental analysis:
    Code:
    $qm2any lib_en-us.qm -v
    ...
    In any case - if you're not ready to analyze detailed report of program, just attache original file to message which describe the mistake.

    Next step: localization without reflash.

    We need Yano's inetd (telnet), smbd and for Windows - Motorola USBNET drivers.

    1. Start inetd and connect the body by telnet:
    Code:
    >telnet 192.168.16.2
    MontaVista(R) Linux(R) Consumer Electronics Edition 3.1
    Linux/armv5tel 2.4.20_mvlcee31-mainstone_pxa27x
    
    (none) login: root
    
    MontaVista(R) Linux(R) Consumer Electronics Edition 3.1
    
    No directory /root!
    Logging in with home = "/".
    #
    2. Copy original language from folder "for read only" and paste to folder have possibility of writing:
    Code:
    # cp -r /usr/language/string/en-gb /ezxlocal/
    #
    3. Remount copied folder instead original:
    Code:
    # mount --bind /ezxlocal/en-gb /usr/language/string/en-gb
    #
    Ok. Half the work has been done, now we can rewrite files in the home directory and immediately check the correctness of localization. Run smbd (moto) and type in the address line (PC):
    Code:
    \\192.168.16.2\system\ezxlocal\en-gb
    Accordingly the algorithm was described above - localize files and save them to the folder at the body (/ezxlocal/en-gb). Usually all changes appear immediately after restart of localizable program, however, if it's not happened - just change in setup the language to Automatic and then to English again.

    The body's going leave localized before restart.
    pesarbad and vodor like this.

  8. #8

    Default

    Quote Originally Posted by tmr
    just use hex-editor and my brains

    You can use perl (only linux) program "qm2any" (first post), it's still under development, but now very close.
    Where can I download to qm2any?

  9. #9

    Default

    Quote Originally Posted by oent
    Quote Originally Posted by tmr
    just use hex-editor and my brains

    You can use perl (only linux) program "qm2any" (first post), it's still under development, but now very close.
    Where can I download to qm2any?
    Look a link in first post
    AGING HIPPIE: ....Whoa! Man, you just ran through a big pile of dogshit!
    FORREST: It happens
    AGING HIPPIE: What? Shit?
    FORREST: Sometimes.

    "Shit Happens."

  10. #10

    Default

    Quote Originally Posted by Animan
    Quote Originally Posted by oent
    Quote Originally Posted by tmr
    just use hex-editor and my brains

    You can use perl (only linux) program "qm2any" (first post), it's still under development, but now very close.
    Where can I download to qm2any?
    Look a link in first post
    Hello! Not support the Chinese? How can we support the Chinese? Thank you!


 
+ Reply to Thread
Page 1 of 3 123 LastLast

Similar Threads

  1. E680i's qm file format?
    By chiennk in forum Development
    Replies: 7
    Last Post: 03-23-2009, 07:29 AM
  2. PROOF that the E6 is EVIL!
    By nodramachicks in forum E6 General Chat
    Replies: 10
    Last Post: 03-12-2009, 04:24 PM
  3. still file format error
    By chandu4ever in forum E6 General Chat
    Replies: 8
    Last Post: 09-03-2008, 03:42 AM
  4. Replies: 0
    Last Post: 08-06-2007, 12:58 PM
  5. Movie file format for E680
    By esixeighty in forum E680 General Chat
    Replies: 2
    Last Post: 06-27-2005, 11:45 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Single Sign On provided by vBSSO

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1