Announcing the HerbGobbler: Automatic English Text Extraction from Ruby on Rails Views

57 views
Skip to first unread message

douglasjsellers

unread,
Jan 20, 2011, 11:58:57 AM1/20/11
to rails-i18n
Hey Everyone,

I just wanted to announce the release of my open source english text
extraction tool for Ruby On Rails, the (h)erbgobbler. The
HerbGobbler is used to take a non-localized Rails project and convert
the views into localized versions of those views. It does this
through the following steps:

1. It is meant to be run on a totally non-localized code base (empty
en.yml)
2. It parses all of your erb files under app/views
3. It finds all of the english text (combining for full sentences)
and extracts that text into config/locales/en.yml
4. It replaces the english that it found with <%= t ".key" %> calls

More information can be found here: http://www.i18n-rails.com/

If you aren't using the default rails i18n mechanism, details on how
to customize the HerbGobbler to store the extracted text into your
datastore can be found on the git-hub page: https://github.com/douglasjsellers/herbgobbler.

The one caveat with the HerbGobbler is that it will not get you to a
100% localization of your ERB, it ignores javascript blocks on pages
at this point. In Javascript it turns out to be very hard to
distinguish between text meant to just be code (like class names) and
text meant to be text. So you typically only get about 95%
localization through running the HerbGobbler.

This project is very much still in beta and should be tread as such.
Please report any bugs directly on the github page.

Thanks,

Douglas

قصص عربية

unread,
Dec 29, 2013, 12:53:39 PM12/29/13
to rails...@googlegroups.com
hjgjhgkjhgjgjhgjhgh
منتديات توب عرب للمبدعين احساس منتديات عامة
افضل المنتديات العربية
http://www.top3rab.mrsaal.com
http://www.top3rab.mrsaal.com/showthread.php?t=1285
http://www.top3rab.mrsaal.com/showthread.php?t=1285
http://www.top3rab.mrsaal.com/showthread.php?t=581
http://www.top3rab.mrsaal.com/showthread.php?t=2257
http://www.top3rab.mrsaal.com/showthread.php?t=2244
http://www.top3rab.mrsaal.com/showthread.php?t=2246
http://www.top3rab.mrsaal.com/forumdisplay.php?f=14
http://www.0yy.net
http://0yy.net/calculate/ideal-weight.html
http://0yy.net/calculate/saudi-newspapers-today.html
http://0yy.net/love-calculator-tester-meter-test
http://0yy.net/photoshop-online-editor-editing-photo/edit-photos-online.html
http://0yy.net/calculate/tafsir-ibnkathir-quran.html
http://0yy.net/calculate/book-dreams-ibnsirin.html
http://0yy.net/calculate/download-photoshop-arabic.html
http://0yy.net/calculate/date-birth.html
http://www.arab-stories.com
http://www.arab-stories.com/category/children-story
http://www.arab-stories.com/category/stories-forgiveness
http://www.arab-stories.com/category/stories-prophets
http://www.arab-stories.com/category/jinn-stories
http://www.arab-stories.com/category/love-stories
http://www.arab-stories.com/category/sad-stories
http://www.arab-stories.com/category/horror-stories
http://www.arab-stories.com/category/funny-stories
http://www.arab-stories.com/category/stories-across

--
Posted via http://www.ruby-forum.com/.
Reply all
Reply to author
Forward
0 new messages