2009.3.21
Monday, March 23, 2009
Monday, March 23, 2009
Monday, March 23, 2009
orz




Monday, March 23, 2009
orz




Monday, March 23, 2009
orz




Monday, March 23, 2009
orz




                         (   PLC etc)




Monday, March 23, 2009
orz




                                  (   PLC etc)

                         iPhone
                         (        ...
Monday, March 23, 2009
Monday, March 23, 2009
Monday, March 23, 2009
Monday, March 23, 2009
Monday, March 23, 2009
Monday, March 23, 2009
iPhone




Monday, March 23, 2009
iPhone

                         iUnitTest
                         iPhone Testing
                         Open Source


...
iPhone

                         iUnitTest
                         iPhone Testing
                         Open Source


...
Monday, March 23, 2009
Monday, March 23, 2009
iPhone
Monday, March 23, 2009
Monday, March 23, 2009
Monday, March 23, 2009
iPhone
Monday, March 23, 2009
Monday, March 23, 2009
Monday, March 23, 2009
Monday, March 23, 2009
Monday, March 23, 2009
Monday, March 23, 2009
Monday, March 23, 2009
Monday, March 23, 2009
request
Monday, March 23, 2009
Monday, March 23, 2009
How
Monday, March 23, 2009
Rails
Monday, March 23, 2009
i18n
Monday, March 23, 2009
i18n
Monday, March 23, 2009
Monday, March 23, 2009
18
    Internatio
    nalization
Monday, March 23, 2009
Monday, March 23, 2009
L10n
Monday, March 23, 2009
Localiz
             ation
Monday, March 23, 2009
Monday, March 23, 2009
Monday, March 23, 2009
L12y
Monday, March 23, 2009
M17n
Monday, March 23, 2009
Monday, March 23, 2009
Monday, March 23, 2009
Monday, March 23, 2009
Mozilla
                         http://www.mozilla-japan.org/docs/refList/
                         i18n/

              ...
-    .           .etc

                         ja-JP       -
                         en-US       -
                     ...
Rails
Monday, March 23, 2009
Monday, March 23, 2009
2.2
Monday, March 23, 2009
2.3
Monday, March 23, 2009
Monday, March 23, 2009
Rails
                         2.2.2
Monday, March 23, 2009
rails i18n_test


Monday, March 23, 2009
config/locales




Monday, March 23, 2009
en.yml
                         en:
                          hello: quot;Hello worldquot;
                               ...
View


                 script/generate controller hello index
                 app/views/hello.index.html.erb

          ...
(ja-JP)

                         Mozilla/5.0 (Macintosh; U; Intel
                           Mac OS X 10_5_6; ja-jp)




...
(en-US)

                         Mozilla/5.0 (Macintosh; U; Intel
                           Mac OS X 10_5_6; en-us)




...
!
Monday, March 23, 2009
Monday, March 23, 2009
Monday, March 23, 2009
ApplicationController
           class ApplicationController <
           ActionController::Base

                  before...
Monday, March 23, 2009
request

Monday, March 23, 2009
ApplicationController

           class ApplicationController < ActionController::Base

               before_filter :set_...
Monday, March 23, 2009
ja-JP   ja


Monday, March 23, 2009
ApplicationController

           class ApplicationController < ActionController::Base

               before_filter :set_...
Monday, March 23, 2009
Monday, March 23, 2009
Monday, March 23, 2009
View




Monday, March 23, 2009
View


                         Validation




Monday, March 23, 2009
config/environment.rb

                          Rails::Initializer.run do |config|
                               .
       ...
Monday, March 23, 2009
Monday, March 23, 2009
Monday, March 23, 2009
ja:
             index:
               sentence1: “                                   Apache


                           ...
Monday, March 23, 2009
yml




Monday, March 23, 2009
yml




Monday, March 23, 2009
yml




Monday, March 23, 2009
yml




Monday, March 23, 2009
yml




Monday, March 23, 2009
yml

                            sentence1

                         Image   sentence2

                            senten...
Monday, March 23, 2009
View




Monday, March 23, 2009
View

                           Rails2.2




Monday, March 23, 2009
View

                           Rails2.2




Monday, March 23, 2009
Ruby-Locale for Ruby on
                         Rails

                         http://www.yotabanana.com/hiki/ja/ruby-
 ...
Ruby-Locale for Ruby on
                         Rails

                          http://www.yotabanana.com/hiki/ja/ruby-
...
config/environment.rb
                         Rails::Initializer.run do |config|
                              .
          ...
app/views/hello/index_ja.html.erb



                                index_ja.html.erb




Monday, March 23, 2009
params[:lang]




                            ja-JP        ja




Monday, March 23, 2009
Monday, March 23, 2009
Monday, March 23, 2009
en




Monday, March 23, 2009
config/initializers/
                              locales.rb

                         http://www.yotabanana.com/lab/
    ...
config/initializers/
                              locales.rb

                         http://www.yotabanana.com/lab/
    ...
config/initializers/
                              locales.rb

                         http://www.yotabanana.com/lab/
    ...
Monday, March 23, 2009
iPhone




Monday, March 23, 2009
iPhone


                         TankEngine
                         http://www.pathf.com/showcase/open-source-
         ...
iPhone


                         TankEngine
                         http://www.pathf.com/showcase/open-source-
         ...
TankEngine

                         install

               ./script/plugin install http://ennerchi.googlecode.com/
     ...
TankEngine

                         Form
                         jQuery   iPhone like




                              ...
ApplicationController

                         acts_as_iphone_controller




                  class ApplicationControlle...
app/views/hello/index.iphone.erb




Monday, March 23, 2009
Monday, March 23, 2009
index.html.erb
              index.iphone.erb
              index_ja.html.erb
              index_ja.iphone.erb

Monday, M...
index.html.erb
              index.iphone.erb
              index_ja.html.erb
              index_ja.iphone.erb

Monday, M...
<%= render :partial => ‘index’ %>

           index.html.erb                       _index.html.erb

           index.iphon...
<%= render :partial => ‘menu’ %>   <%= render :partial => ‘menu’ %>


         index.html.erb             _menu.html.erb
 ...
<%= render :partial => ‘menu’ %>   <%= render :partial => ‘menu’ %>


         index.html.erb             _menu.html.erb
 ...
<%= render :partial => ‘menu’ %>   <%= render :partial => ‘menu’ %>


         index.html.erb             _menu.html.erb
 ...
<%= render :partial => ‘menu’ %>   <%= render :partial => ‘menu’ %>


         index.html.erb             _menu.html.erb
 ...
OK




Monday, March 23, 2009
OK




Monday, March 23, 2009
OK


                         Mac   iPhone




Monday, March 23, 2009
OK


                         Mac    iPhone

                         subdomain




Monday, March 23, 2009
OK


                         Mac    iPhone

                         subdomain


                           http://iphone...
subdomain

                             subdomain
                  class ApplicationController < ActionController::Base
 ...
iPhone




Monday, March 23, 2009
iPhone




Monday, March 23, 2009
iPhone


                         ?iphone_help=




Monday, March 23, 2009
iPhone


                         ?iphone_help=




Monday, March 23, 2009
iPhone


                         ?iphone_help=




Monday, March 23, 2009
iPhone


                         ?iphone_help=




                           Mechanize




Monday, March 23, 2009
iPhone


                         ?iphone_help=




                           Mechanize
                           Nokogi...
iPhone


                           docup.rb
                                           http:/ /
                         ...
Monday, March 23, 2009
config/environment.rb

                           config.i18n.default_locale = :ja

                         config/initializ...
Ruby-Locale for Ruby on Rails
                         sudo gem install locale
                         sudo gem install l...
iPhone
                         TankEngine
                         ./script/plugin install http:/ /
                     ...
Monday, March 23, 2009
iPhone




Monday, March 23, 2009
iPhone




Monday, March 23, 2009
Monday, March 23, 2009
Upcoming SlideShare
Loading in...5
×

Internationalization of your homepage

1,044

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,044
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide













































































































































  • Internationalization of your homepage

    1. 1. 2009.3.21 Monday, March 23, 2009
    2. 2. Monday, March 23, 2009
    3. 3. Monday, March 23, 2009
    4. 4. orz Monday, March 23, 2009
    5. 5. orz Monday, March 23, 2009
    6. 6. orz Monday, March 23, 2009
    7. 7. orz ( PLC etc) Monday, March 23, 2009
    8. 8. orz ( PLC etc) iPhone ( ) Monday, March 23, 2009
    9. 9. Monday, March 23, 2009
    10. 10. Monday, March 23, 2009
    11. 11. Monday, March 23, 2009
    12. 12. Monday, March 23, 2009
    13. 13. Monday, March 23, 2009
    14. 14. Monday, March 23, 2009
    15. 15. iPhone Monday, March 23, 2009
    16. 16. iPhone iUnitTest iPhone Testing Open Source Monday, March 23, 2009
    17. 17. iPhone iUnitTest iPhone Testing Open Source AppStore Monday, March 23, 2009
    18. 18. Monday, March 23, 2009
    19. 19. Monday, March 23, 2009
    20. 20. iPhone Monday, March 23, 2009
    21. 21. Monday, March 23, 2009
    22. 22. Monday, March 23, 2009
    23. 23. iPhone Monday, March 23, 2009
    24. 24. Monday, March 23, 2009
    25. 25. Monday, March 23, 2009
    26. 26. Monday, March 23, 2009
    27. 27. Monday, March 23, 2009
    28. 28. Monday, March 23, 2009
    29. 29. Monday, March 23, 2009
    30. 30. Monday, March 23, 2009
    31. 31. request Monday, March 23, 2009
    32. 32. Monday, March 23, 2009
    33. 33. How Monday, March 23, 2009
    34. 34. Rails Monday, March 23, 2009
    35. 35. i18n Monday, March 23, 2009
    36. 36. i18n Monday, March 23, 2009
    37. 37. Monday, March 23, 2009
    38. 38. 18 Internatio nalization Monday, March 23, 2009
    39. 39. Monday, March 23, 2009
    40. 40. L10n Monday, March 23, 2009
    41. 41. Localiz ation Monday, March 23, 2009
    42. 42. Monday, March 23, 2009
    43. 43. Monday, March 23, 2009
    44. 44. L12y Monday, March 23, 2009
    45. 45. M17n Monday, March 23, 2009
    46. 46. Monday, March 23, 2009
    47. 47. Monday, March 23, 2009
    48. 48. Monday, March 23, 2009
    49. 49. Mozilla http://www.mozilla-japan.org/docs/refList/ i18n/ FreeBSD Chapter 16. (localization) - I18N/L10N http://www.freebsd.org/doc/ja/books/ handbook/l10n.html Monday, March 23, 2009
    50. 50. - . .etc ja-JP - en-US - en-UK - zh-TW - Monday, March 23, 2009
    51. 51. Rails Monday, March 23, 2009
    52. 52. Monday, March 23, 2009
    53. 53. 2.2 Monday, March 23, 2009
    54. 54. 2.3 Monday, March 23, 2009
    55. 55. Monday, March 23, 2009
    56. 56. Rails 2.2.2 Monday, March 23, 2009
    57. 57. rails i18n_test Monday, March 23, 2009
    58. 58. config/locales Monday, March 23, 2009
    59. 59. en.yml en: hello: quot;Hello worldquot; ja.yml ja: hello: quot; quot; Monday, March 23, 2009
    60. 60. View script/generate controller hello index app/views/hello.index.html.erb t :hello %> <%= Monday, March 23, 2009
    61. 61. (ja-JP) Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_6; ja-jp) Monday, March 23, 2009
    62. 62. (en-US) Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_6; en-us) Monday, March 23, 2009
    63. 63. ! Monday, March 23, 2009
    64. 64. Monday, March 23, 2009
    65. 65. Monday, March 23, 2009
    66. 66. ApplicationController class ApplicationController < ActionController::Base before_filter :set_locale def set_locale I18n.locale = params[:locale] end end Monday, March 23, 2009
    67. 67. Monday, March 23, 2009
    68. 68. request Monday, March 23, 2009
    69. 69. ApplicationController class ApplicationController < ActionController::Base before_filter :set_locale def set_locale locale_request = request.cgi.accept_language.split('.').first I18n.locale = params[:locale] || locale_request end end Monday, March 23, 2009
    70. 70. Monday, March 23, 2009
    71. 71. ja-JP ja Monday, March 23, 2009
    72. 72. ApplicationController class ApplicationController < ActionController::Base before_filter :set_locale def set_locale locale_request = request.cgi.accept_language.split('-').first I18n.locale = params[:locale] || locale_request end end Monday, March 23, 2009
    73. 73. Monday, March 23, 2009
    74. 74. Monday, March 23, 2009
    75. 75. Monday, March 23, 2009
    76. 76. View Monday, March 23, 2009
    77. 77. View Validation Monday, March 23, 2009
    78. 78. config/environment.rb Rails::Initializer.run do |config| . . config.i18n.default_locale = :ja end ApplicationController Monday, March 23, 2009
    79. 79. Monday, March 23, 2009
    80. 80. Monday, March 23, 2009
    81. 81. Monday, March 23, 2009
    82. 82. ja: index: sentence1: “ Apache ” sentence2: “ ?” sentence3: “ web web The Apache Software Foundation web ” sentence4: “Apache web Apache web Apache !” Monday, March 23, 2009
    83. 83. Monday, March 23, 2009
    84. 84. yml Monday, March 23, 2009
    85. 85. yml Monday, March 23, 2009
    86. 86. yml Monday, March 23, 2009
    87. 87. yml Monday, March 23, 2009
    88. 88. yml Monday, March 23, 2009
    89. 89. yml sentence1 Image sentence2 sentence3 Monday, March 23, 2009
    90. 90. Monday, March 23, 2009
    91. 91. View Monday, March 23, 2009
    92. 92. View Rails2.2 Monday, March 23, 2009
    93. 93. View Rails2.2 Monday, March 23, 2009
    94. 94. Ruby-Locale for Ruby on Rails http://www.yotabanana.com/hiki/ja/ruby- locale-rails-howto.html Monday, March 23, 2009
    95. 95. Ruby-Locale for Ruby on Rails http://www.yotabanana.com/hiki/ja/ruby- locale-rails-howto.html sudo gem install locale sudo gem install locale-rails Monday, March 23, 2009
    96. 96. config/environment.rb Rails::Initializer.run do |config| . . config.gem 'locale' config.gem 'locale_rails' end ApplicationController Monday, March 23, 2009
    97. 97. app/views/hello/index_ja.html.erb index_ja.html.erb Monday, March 23, 2009
    98. 98. params[:lang] ja-JP ja Monday, March 23, 2009
    99. 99. Monday, March 23, 2009
    100. 100. Monday, March 23, 2009
    101. 101. en Monday, March 23, 2009
    102. 102. config/initializers/ locales.rb http://www.yotabanana.com/lab/ 20081209.html Monday, March 23, 2009
    103. 103. config/initializers/ locales.rb http://www.yotabanana.com/lab/ 20081209.html I18n.supported_locales = [quot;jaquot;, quot;enquot;] Monday, March 23, 2009
    104. 104. config/initializers/ locales.rb http://www.yotabanana.com/lab/ 20081209.html I18n.supported_locales = [quot;jaquot;, quot;enquot;] Rails2.2 Monday, March 23, 2009
    105. 105. Monday, March 23, 2009
    106. 106. iPhone Monday, March 23, 2009
    107. 107. iPhone TankEngine http://www.pathf.com/showcase/open-source- projects/tank-engine/ Monday, March 23, 2009
    108. 108. iPhone TankEngine http://www.pathf.com/showcase/open-source- projects/tank-engine/ jRails Monday, March 23, 2009
    109. 109. TankEngine install ./script/plugin install http://ennerchi.googlecode.com/ svn/trunk/plugins/jrails ./script/plugin install git://github.com/noelrappin/tank- engine.git rake tank_engine:install Monday, March 23, 2009
    110. 110. TankEngine Form jQuery iPhone like OK Monday, March 23, 2009
    111. 111. ApplicationController acts_as_iphone_controller class ApplicationController < ActionController::Base acts_as_iphone_controller . . . end Monday, March 23, 2009
    112. 112. app/views/hello/index.iphone.erb Monday, March 23, 2009
    113. 113. Monday, March 23, 2009
    114. 114. index.html.erb index.iphone.erb index_ja.html.erb index_ja.iphone.erb Monday, March 23, 2009
    115. 115. index.html.erb index.iphone.erb index_ja.html.erb index_ja.iphone.erb Monday, March 23, 2009
    116. 116. <%= render :partial => ‘index’ %> index.html.erb _index.html.erb index.iphone.erb <%= render :partila => ‘index_ja’ %> index_ja.html.erb _index_ja.html.erb index_ja.iphone.erb Monday, March 23, 2009
    117. 117. <%= render :partial => ‘menu’ %> <%= render :partial => ‘menu’ %> index.html.erb _menu.html.erb __menu.html.erb index.iphone.erb _menu.iphone.erb Monday, March 23, 2009
    118. 118. <%= render :partial => ‘menu’ %> <%= render :partial => ‘menu’ %> index.html.erb _menu.html.erb __menu.html.erb index.iphone.erb _menu.iphone.erb Monday, March 23, 2009
    119. 119. <%= render :partial => ‘menu’ %> <%= render :partial => ‘menu’ %> index.html.erb _menu.html.erb __menu.html.erb index.iphone.erb _menu.iphone.erb Monday, March 23, 2009
    120. 120. <%= render :partial => ‘menu’ %> <%= render :partial => ‘menu’ %> index.html.erb _menu.html.erb __menu.html.erb index.iphone.erb _menu.iphone.erb - Monday, March 23, 2009
    121. 121. OK Monday, March 23, 2009
    122. 122. OK Monday, March 23, 2009
    123. 123. OK Mac iPhone Monday, March 23, 2009
    124. 124. OK Mac iPhone subdomain Monday, March 23, 2009
    125. 125. OK Mac iPhone subdomain http://iphone.itosoft.com/ Monday, March 23, 2009
    126. 126. subdomain subdomain class ApplicationController < ActionController::Base acts_as_iphone_controller :subdomain => 'ignore' # ignore # # nil iPhone . . . end Monday, March 23, 2009
    127. 127. iPhone Monday, March 23, 2009
    128. 128. iPhone Monday, March 23, 2009
    129. 129. iPhone ?iphone_help= Monday, March 23, 2009
    130. 130. iPhone ?iphone_help= Monday, March 23, 2009
    131. 131. iPhone ?iphone_help= Monday, March 23, 2009
    132. 132. iPhone ?iphone_help= Mechanize Monday, March 23, 2009
    133. 133. iPhone ?iphone_help= Mechanize Nokogiri Monday, March 23, 2009
    134. 134. iPhone docup.rb http:/ / / http:/ / http:/ / http:/ iPhone.itosoft. iPhone.itosoft. iPhone.itosoft. iPhone.itosoft. com/... com/... com/... com/... Monday, March 23, 2009
    135. 135. Monday, March 23, 2009
    136. 136. config/environment.rb config.i18n.default_locale = :ja config/initializers/locales.rb I18n.supported_locales = [quot;jaquot;] Monday, March 23, 2009
    137. 137. Ruby-Locale for Ruby on Rails sudo gem install locale sudo gem install locale-rails config/environment.rb config.gem 'locale' config.gem 'locale_rails' Monday, March 23, 2009
    138. 138. iPhone TankEngine ./script/plugin install http:/ / ennerchi.googlecode.com/svn/trunk/plugins/ jrails ./script/plugin install git://github.com/ noelrappin/tank-engine.git rake tank_engine:install ApplicationController acts_as_iphone_controller Monday, March 23, 2009
    139. 139. Monday, March 23, 2009
    140. 140. iPhone Monday, March 23, 2009
    141. 141. iPhone Monday, March 23, 2009
    142. 142. Monday, March 23, 2009
    1. A particular slide catching your eye?

      Clipping is a handy way to collect important slides you want to go back to later.

    ×