There are many solutions for program localization and of course gettext. However, explaining to the ordinary windows user how to translate a program with his help is a great difficulty.
So I decided to write a small application for easy localization.

It is written in C # and is able to translate messages using Google Translate. It can also work with a ready-made dictionary.
To store dictionaries, I chose the simplest format:
<?php $_LANG = array( 'id' => 'text' ); ?>
In the code, instead of the standard
_ (...) , I decided to use
tr (...) (as in Qt), since otherwise there will be problems with the topic of who
GetText Support: enabled . In the program, the function name can be replaced in the settings.
After selecting the source directory, the program collects all occurrences of
tr | _ (...) in php files and adds them to the table. Each line is assigned a status (column New):
- the message is present in the source and the dictionary.
- the message is present in the dictionary, but not found in the source.
- A new message. Present only in the source.
')
Unnecessary messages can be deleted. New translate using Google and edit something yourself.
I was able to translate my project in 20 minutes. I hope that my application is useful to someone else.
PHPText on
Google Code :
Download