Wordpress Binary Blue Localization Problem Solved

I have the same localization problem with other guys that run binary blue theme. For details, you can read the post about Binary Blue Localization
I try and test from my home computer and the localization works perfect. However my server somehow doesn’t let me to do it. I tried every combination of the naming for the WPLANG and for the PO filename. My site was still displaying in german. So I decided to write a simple utility to convert the main files to the localized files. After 2 hours of hard coding I successed with localization using the PO text file.
Here is the tool to localize binary blue to your language using the PO file.

.

To use the program you need to have .Net Framework 2.0 installed. Also you need to download the desired PO file and the theme itself. After that you can run the program to rewrite the files for you.
I don’t know if anybody is interested with the source code, if you do please let me know.

How to use it

  • Run the program
  • Initial Screen of PO Integrator

  • Select folders desired, destination folder should be empty!
  • PO Integrator selected files and folders

  • Click Start, and you are done. Copy the files to the default themes location in the web server
  • PO Integrator Operation Complete

11 Comments

  1. CountZero:

    can,

    this is awesome! as you might have read both on my blog and the BB support forum, I’m totally out of ideas how to solve that issue for those users who suffer from this issue, and your tool just solves it like a deus ex machina ;) thank you very much for your efforts.

  2. Can:

    thank you very much
    glad to hear that. I hope it will help the ones who can\’t use because of this issue

  3. Dante:

    Definitely thank you. this was bugging the hell out me. One thing though. when i ran the tool there were a bunch of places where there were single quotes nested in other single quotes. I had to go through one by one to fix these with an escape. not a huge deal considering the amount of time this saved me, but just something to think about. Thanks again.

  4. Chris:

    This broke my installation totally. :)

    I used the integrator file with the .po file, and it created SOME of the files in my Destination directory. I copied those files over the ones in my installation, and I got a big ol\’ error:

    Parse error: syntax error, unexpected T_STRING in /home /thedowe/ public_html/ blog/ wp-content/ themes/WP-Binary-Blue-v140/ plugins/adminpanel.php on line 56

    I\’m not a coder, so I can\’t fix it, so I\’m going back to the German for now. I did it several times, and got the same results.

    I have WordPress 2.x installed, BinaryBlue 1.40 installed, and .NET 2.0 installed. Anything else I need to fiddle with?

  5. Singularity:

    I fixed a small bug about the ‘ So you should be able to use it without error now. Please tell me if you encounter any other problems.

  6. A.H:

    Hello,

    I’m quite a nOOb when it comes to technical stuff. Truth is i don’t know how and where to use this program, should the localization be done on the server or on my computer? and where do i get the .NET framework program that helps doing that? can you please explain step-by-step, i’d be more than greatful.

    A.H

  7. A.H:

    Everthing is now in english except for my dashboard =/…

    A.H

  8. Singularity:

    That’s nice to hear that, I was just trying to provide a FAQ section for your previous comment, since you have done I might postpone it :)

  9. Esther:

    Hi,
    Thanks for the fix, however I can’t make it work. Your instructions are not clear enough to me.
    first file is the language po file I want to convert.
    Second is the theme folder, the complete Binary Blue, wherever I have it located in my harddrive no matter whether it’s in the installation folder or wherever?
    Third is an empty folder. Where should it be located? Does it matter? what will it contain?
    I use the complete theme and an empty folder, which I chose to have in the WP themes folder. When I run the program it says it has finished. I check the folder and it’s empty, and nothing has changed.
    What am I missing?
    Thanks a lot for all your efforts :)

  10. Singularity:

    Hi Esther,

    Actually this is not a real fix. This is a total rewrite of the script. Basically what php localization engine does but written directly to the files.

    To make it clear, I just start from beginning:
    Po file is the translation file.
    Source directory is the folder expanded after you downloaded binary blue zip.
    Destination directory will be modified directory files. This should be empty directory in any location, since the program will full the directory after you click start.
    Than you will upload the contents of the destination directory to your blog instead of the original zip contents.
    Destination directory includes the modified and localized version of the original files.

  11. Rich Haslam:

    I can’t seem to figure this out. I went to wordpress and downloaded POedit and created a .PO file. I then followed your instructions and entered that file into the first space of POFileIntegrator. Then I entered the path that the theme was downloaded/unzipped to into the second space. In the third I entered an empty folder.

    NOTHING - not a thing happened. No file, no full folder, nothing. What am I doing differently than what you are saying????

Leave a comment