You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tutorial.md
+20-1
Original file line number
Diff line number
Diff line change
@@ -187,7 +187,7 @@ We will now discuss adding text entries into your resource files.
187
187
188
188
When adding text entries into your resource file you should pay particular attention to providing some detailed information on what the text you are entering means, and in what context. Why? Well this information will help you and anyone who is translating the text into another language - and understanding the meaning and context of a word is important when it comes to translation.
189
189
190
-
## Adding Resource Entries
190
+
###Adding Resource Entries
191
191
192
192
So let's add a new text entry called **Demonstration_Alert** into our language resource file.
193
193
@@ -218,6 +218,25 @@ You reference entries through a statement like;
218
218
219
219
alert(Code52.Language.Dictionary.Index_Title);
220
220
221
+
## Adding other languages
222
+
223
+
### Method 1 - Manual
224
+
225
+
So you can create a specific language resource file by simply creating another resource file with the same name of your existing resource file + the ISO code of the culture you wish it to represent. For example. If your 'root' language resource file is called Language.resx. A french version would be called Language.fr.resx.
226
+
Further to this, if you want to further specify the language and culture of the resource, such as English (American) then you would call the resource file Language.en-US.resx.
227
+
228
+
### Method 2 - Better :)
229
+
230
+
The manual process is really quite painful. Thankfully there is a solution, and that is called [**Zeta Resource Editor**](http://www.zeta-resource-editor.com/index.html). This is a free application that frankly is a must have for anyone working on a localisation project.
231
+
232
+
Instructions on how to use Zeta is a tutorial in it's own right, but for now it is suffice to say that you can create a project in Zeta (even import your Visual Studio solution). Specify what language your 'base' resource is, and then generate whatever languages you wish off the back of your base language resource - **most awesome indeed**
233
+
234
+
### Demo
235
+
236
+
So now that we have created another language file (in my case a French resource) using one of the two aforementioned methods, when we compile then view the web page we should see the following
237
+
238
+

239
+
221
240
## Language resources for testing
222
241
223
242
Knowing what text in a site has been localisation and what has not can become very tricky, very quickly. Believe me. So what can we do to help this ? Well it's really quite simple. We can utilise a very handy little utility called **Psuedoizer** to generate a 'mock' localised language resource for us.
0 commit comments