Last modified by Pascal Robert on 2015/05/04 04:24

From version 25.1
edited by Ramsey Gurley
on 2008/07/25 16:55
Change comment: There is no comment for this version
To version 31.1
edited by Ramsey Gurley
on 2008/11/28 11:37
Change comment: My advice was a little excessive there I think...

Summary

Details

Page properties
Content
... ... @@ -112,33 +112,6 @@
112 112  
113 113  and then right-click->Copy it from English.lproj and right-click->Paste it into Japanese.lproj. At this point, when you open the component in WOLips, there will be a tab at the bottom of the component editor view that allows you to switch back and forth between different localized versions of that component.
114 114  
115 -===== Component HTML =====
116 -
117 -Given the info on this page already, this is a little redundant... but here's what the start of my PageWrapper looks like:
118 -
119 -{{code}}
120 -
121 -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
122 - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
123 -
124 -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang='<wo:localized value = "ls_lang" />' lang='<wo:localized value = "ls_lang" />'>
125 -<head>
126 - <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
127 -
128 -{{/code}}
129 -
130 -and in the Localizable.strings file, I keep a language code for each language
131 -
132 -{{code}}
133 -
134 -{
135 - "ls_lang" = "en";
136 -}
137 -
138 -{{/code}}
139 -
140 -You'll also notice the "ls//" prefix. You'll definitely want to prefix with something unique so you can do a project-wide search for your keys without difficulty.//
141 -
142 142  ===== Direct Actions =====
143 143  
144 144  If you are defaulting to direct actions, you may not have a session. If you do not have a session, the server will return the default language specified in the Properties mentioned above. If you're using direct actions and you don't like that behavior, you can stick this in your direct action class: