RailsのWebアプリケーションを英語化(多言語化)をサポートしてくれるGem「i18n」の紹介です。 🎂 i18nのベーシックな使い方デフォルトの言語を日本語にするには、config/application.rbの次のように指定します。
I am a postdoctoral researcher in the field of Natural Language Processing. Career Oct. 2020 - (present) Postdoctoral Researcher, RIKEN Center for Advanced Intelligence Project Sep. 2019 - Mar. 2020 Visiting Researcher, Bar-Ilan University (Israel) Supervisor: Prof. Yoav Goldberg Apr. 2018 - June 2019, May. 2020 - Sep. 2020 Research Assistant, RIKEN Center for Advanced Intelligence Project Apr. 20
RubyKaigiの記事を書きましたが、思いの外反響があり驚きました。 文脈のせいかもしれませんが、批判的に見えたかもしれません。 決して否定的じゃないことを、どうかご理解下さい。 さて、RubyKaigiを経て、もうちょっと色々真剣になろうと決めたわけですが、 その第一歩目は、数多くの人が直面したであろう、ActionMailerを使ってISO-2022-JPエンコーディングのメールを送信する場合の対処について、自分なりに解析してみました。 便利なgemは、jpmobileを筆頭に数多くあると思いますが、まずはそれらを使わずにやってみます。 おもしろWEBサービス開発日記 http://d.hatena.ne.jp/willnet/20100429/1272513819 を参考に、ModelとMailerを作成。 Ruby:1.9.2p0 Rails:3.0.3 Model : Entr
Ruby on Rails Guides: Rails Internationalization (I18n) API を自己解釈しながら翻訳していきます。 この記事は3章までの内容になります。 はじめに I18n(internationalization) Gem はRails2.2から提供されており、多言語をサポートしたアプリケーションを提供するためのフレームワークである。 「国際化(I18n:internationalization)」を行うとは、全ての文字を抽象化し、日付や通貨などロケール(地域や言語)によるものをアプリケーションの外に出すことである。 「地域化(L10n:localization)」を行うとは、それらアプリケーションの外に出したものに対して、翻訳やフォーマットを提供することである。 I18n化するために必要なこと I18nのサポートを確保すること 辞書ファイルの場
This parameter was added to forms in order to force Internet Explorer (5, 6, 7 and 8) to encode its parameters as unicode. Specifically, this bug can be triggered if the user switches the browser's encoding to Latin-1. To understand why a user would decide to do something seemingly so crazy, check out this google search. Once the user has put the web-site into Latin-1 mode, if they use characters
Aristotle Pagaltzis has written a very nice and concise XPath intro. Of all the various standards in the XML ecosystem, I like XPath best, most of all because it enables interaction with an XML document or message in a way that matches Postel’s law: It’s a great way to implement code that doesn’t break each time a minor change is made to an XML format. In fact I’d say it’s one the few very good re
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く