# I18n translators tools

**URL:** <https://www.ruby-forum.com/t/i18n-translators-tools/193058>\
**Category:** Rails I18n\
**Created:** [August 10, 2010, 3:27pm UTC](https://www.ruby-forum.com/t/i18n-translators-tools/193058 "2010-08-10T15:27:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pejuko](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/c4cdca/32.png) [@pejuko](https://www.ruby-forum.com/u/pejuko)\
**Post date:** [August 10, 2010, 3:27pm UTC](https://www.ruby-forum.com/t/i18n-translators-tools/193058/1 "2010-08-10T15:27:28Z")

</div>

Hi,

there is new tool for handling translation files. You can install it  
using command

gem install i18n-translators-tools

This package brings you useful utility and library which can help you  
to handle  
locale files and translations in your Ruby projects. Offers also built-  
in simple  
console editor. Supported formats are YAML, Ruby, Gettext po, QT  
Linguist TS and  
Java Properties.

It can  
– convert between various format (yml \<=\> rb \<=\> po \<=\> ts \<=\>  
properties)  
– merge  
– statistics  
– translate (built-in simple text translator)

There are also some backends for i18n library:

– I18n::Backend::Simple.send(:include, I18n::Backend::Translator)  
(Extended format. i18n-translators-tools brings extended format)  
– I18n::Backend::Simple.send(:include, I18n::Backend::PO)  
– I18n::Backend::Simple.send(:include, I18n::Backend::TS)  
– I18n::Backend::Simple.send(:include, I18n::Backend::Properties)

Read README.md file and run i18n-translate without parameters  
for more information.

source code are at github:

> **[GitHub - pejuko/i18n-translators-tools: This package brings you useful...](https://github.com/pejuko/i18n-translators-tools)**
>
> This package brings you useful utility and library which can help you to handle locale files and translations in your Ruby projects. It is build upon i18n library and extends it's simple format...

---

<div class="post-metadata">

**Author:** ![pejuko](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/c4cdca/32.png) [@pejuko](https://www.ruby-forum.com/u/pejuko)\
**Post date:** [August 10, 2010, 3:41pm UTC](https://www.ruby-forum.com/t/i18n-translators-tools/193058/2 "2010-08-10T15:41:32Z")

</div>

oops, actualy, there is a typo:

> There are also some backends for i18n library:
> 
> – I18n::Backend::Simple.send(:include, I18n::Backend::Translator)  
> (Extended format. i18n-translators-tools brings extended format)

backend for the extended format is:  
I18n::Backend::Translate

---

<div class="post-metadata">

**Author:** ![pejuko](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/c4cdca/32.png) [@pejuko](https://www.ruby-forum.com/u/pejuko)\
**Post date:** [August 10, 2010, 4:07pm UTC](https://www.ruby-forum.com/t/i18n-translators-tools/193058/3 "2010-08-10T16:07:53Z")

</div>

2010/8/10 pejuko [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

> oops, actualy, there is a typo:
> 
> > There are also some backends for i18n library:
> > 
> > – I18n::Backend::Simple.send(:include, I18n::Backend::Translator)  
> > (Extended format. i18n-translators-tools brings extended format)
> 
> backend for the extended format is:  
> I18n::Backend::Translate

Could you put an usage example with a rails App (2.3.x or 3.0.x)?  
An example of a simple UI interface to translate App files.

---

<div class="post-metadata">

**Author:** ![pejuko](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/c4cdca/32.png) [@pejuko](https://www.ruby-forum.com/u/pejuko)\
**Post date:** [August 10, 2010, 4:27pm UTC](https://www.ruby-forum.com/t/i18n-translators-tools/193058/4 "2010-08-10T16:27:48Z")

</div>

Well, there is simple standalone web translator as a working example:

> **[GitHub - pejuko/i18n-web-translator: This is very simple web translator. It...](https://github.com/pejuko/i18n-web-translator)**
>
> This is very simple web translator. It is simple working demonstration of using i18n-translators-tools. If you want to try it just download it enter the directory and run ruby start.rb - GitHub - p...

It is written using framework ramaze (I have sent it there because  
this group is enlisted as a mailing-list for the i18n-library)

However, the scenario for using this tool is following:

In your application you just include backend  
I18n::Backend::Simple.send(:include, I18n::Backend::Translator)

for your locales you need to have some default file (eg. default.yml  
in eg. locale directory) and then you can use i18n-translate tool  
for merging files. If you want to use PO files then you need include  
also I18n::Backend::PO etc.

I also recomend to use fallbacks plugin.  
I18n::Backend::Simple.send(:include, I18n::Backend::Fallbacks)

Some usage examples are also in README.md file:

> <https://github.com/pejuko/i18n-translators-tools/blob/master/README.md>
