Advanced Rails - Building Industrial-Strength Web Apps in Record Time
Rails and Unicode | 245 Paul Battley wrote an article addressing the issue of filtering untrusted UTF-8 strings.* As with most o ...
246 | Chapter 8: i18n and L10n The Rails create_database schema definition method will attempt to do the right thing. If you use ...
Rails and Unicode | 247 you may have UTF-8 data stored in the database as Latin1. If you then convert the table to UTF-8, the co ...
248 | Chapter 8: i18n and L10n The ActiveRecord PostgreSQL adapter also respects theencodingoption to control client encoding, s ...
Rails and Unicode | 249 Forms from third-party sites pointed at your server may not be encoded in UTF-8. These forms will post ...
250 | Chapter 8: i18n and L10n >>> document.characterSet "UTF-8" >>> escape("café") "caf%E9" >>> enco ...
Rails L10n | 251 The_( )function is gettext’s standard method for localization. All literal text that is to be localized should ...
252 | Chapter 8: i18n and L10n
[email protected]
(...) Creado hello.po. Now that thehello.pofile is created, the translator ...
Rails L10n | 253 users to change their locale and dialect) yourself. But there are good examples on that page, and it is a good ...
254 | Chapter 8: i18n and L10n Alternatively, the second argument toString#[]can be a hash. The keys correspond to the names of ...
Rails L10n | 255 Globalize that compete with gettext, Gibberish, and the other text-based localiza- tion libraries commonly used ...
256 | Chapter 8: i18n and L10n Locale-Specific Settings Beyond simple translation, there are plenty more locale-specific issues. ...
Rails L10n | 257 Note that unlike the Money library, which handles basic currency exchange, you will need to handle any exchange ...
258 | Chapter 8: i18n and L10n Locale.set(params[:locale] || Locale.base_language.code) end end After this filter is set up, you ...
Rails L10n | 259 db/migrate/001_create_people.rb class CreatePeople < ActiveRecord::Migration def self.up create_table :peopl ...
260 | Chapter 8: i18n and L10n app/controllers/people_controller.rb class PeopleController < ApplicationController def index ...
Rails L10n | 261 <p> <label for="person_last_name">Last name</label> <%= @person_form.text_field :last_name ...
262 | Chapter 8: i18n and L10n Complete the first iteration with a very simple XHTML layout and stylesheet: app/views/layouts/pe ...
Rails L10n | 263 Localizing the address book Now we will localize the address book’s interface so that the interface elements ap ...
264 | Chapter 8: i18n and L10n $ rake globalize:setup $ script/console >> ActiveRecord::Schema.define do ?> change_colu ...
«
9
10
11
12
13
14
15
16
17
18
»
Free download pdf