@@ -305,11 +305,11 @@ a#localization-folder
305
305
Localization and internationalization are
306
306
<a href="https://en.wikipedia.org/wiki/Internationalization_and_localization" target="_blank">different but closely related terms</a>.
307
307
:marked
308
- This cookbook follows that suggestion. It has a `locale` folder under the project root .
308
+ This cookbook follows that suggestion. It has a `locale` folder under the `src/` .
309
309
Assets within the folder carry a filename extension that matches a language-culture code from a
310
310
<a href="https://msdn.microsoft.com/en-us/library/ee825488(v=cs.20).aspx" target="_blank">well-known codeset</a>.
311
311
312
- Make a copy of the `messages.xlf` file in the `locale` folder and
312
+ Make a copy of the `messages.xlf` file, put it in the `locale` folder and
313
313
rename it `messages.es.xlf`for the Spanish language translation.
314
314
Do the same for each target language.
315
315
@@ -321,13 +321,13 @@ a#localization-folder
321
321
This sample file is easy to translate without a special editor or knowledge of Spanish.
322
322
Open `messages.es.xlf` and find the first `<trans-unit>` section:
323
323
324
- + makeExample('cb-i18n/ts/locale/messages.es.xlf.html' , 'translated-hello' , 'locale/messages.es.xlf (<trans-unit>)' )( format ="." )
324
+ + makeExample('cb-i18n/ts/src/ locale/messages.es.xlf.html' , 'translated-hello' , 'src/ locale/messages.es.xlf (<trans-unit>)' )( format ="." )
325
325
:marked
326
326
This XML element represents the translation of the `<h1>` greeting tag you marked with the `i18n` attribute.
327
327
328
328
Using the _source_, _description_, and _meaning_ elements to guide your translation,
329
329
replace the `<target/>` tag with the Spanish greeting:
330
- + makeExample('cb-i18n/ts/locale/messages.es.xlf.html' , 'translated-hello' , 'locale/messages.es.xlf (<trans-unit>, after translation)' )( format ="." )
330
+ + makeExample('cb-i18n/ts/src/ locale/messages.es.xlf.html' , 'translated-hello' , 'src/ locale/messages.es.xlf (<trans-unit>, after translation)' )( format ="." )
331
331
332
332
.alert.is-important
333
333
:marked
@@ -339,7 +339,7 @@ a#localization-folder
339
339
:marked
340
340
Translate the other text nodes the same way:
341
341
342
- + makeExample('cb-i18n/ts/locale/messages.es.xlf.html' , 'translated-other-nodes' , 'locale/messages.es.xlf (<trans-unit>)' )( format ="." )
342
+ + makeExample('cb-i18n/ts/src/ locale/messages.es.xlf.html' , 'translated-other-nodes' , 'src/ locale/messages.es.xlf (<trans-unit>)' )( format ="." )
343
343
344
344
a#translate-plural-select
345
345
:marked
@@ -358,7 +358,7 @@ a#translate-plural-select
358
358
### Translate _plural_
359
359
To translate a `plural`, translate its ICU format match values:
360
360
361
- + makeExample('cb-i18n/ts/locale/messages.es.xlf.html' , 'translated-plural' , 'locale/messages.es.xlf (<trans-unit>)' )( format ="." )
361
+ + makeExample('cb-i18n/ts/src/ locale/messages.es.xlf.html' , 'translated-plural' , 'src/ locale/messages.es.xlf (<trans-unit>)' )( format ="." )
362
362
363
363
:marked
364
364
### Translate _select_
@@ -373,17 +373,17 @@ a#translate-plural-select
373
373
In place of the `select` is a placeholder, `<x id="ICU">`, that represents the `select` message.
374
374
Translate the text and leave the placeholder where it is.
375
375
376
- + makeExample('cb-i18n/ts/locale/messages.es.xlf.html' , 'translate-select-1' , 'locale/messages.es.xlf (<trans-unit>)' )( format ="." )
376
+ + makeExample('cb-i18n/ts/src/ locale/messages.es.xlf.html' , 'translate-select-1' , 'src/ locale/messages.es.xlf (<trans-unit>)' )( format ="." )
377
377
378
378
:marked
379
379
The second translation unit, immediately below the first one, contains the `select` message. Translate that.
380
380
381
- + makeExample('cb-i18n/ts/locale/messages.es.xlf.html' , 'translate-select-2' , 'locale/messages.es.xlf (<trans-unit>)' )( format ="." )
381
+ + makeExample('cb-i18n/ts/src/ locale/messages.es.xlf.html' , 'translate-select-2' , 'src/ locale/messages.es.xlf (<trans-unit>)' )( format ="." )
382
382
383
383
:marked
384
384
Here they are together, after translation:
385
385
386
- + makeExample('cb-i18n/ts/locale/messages.es.xlf.html' , 'translated-select' , 'locale/messages.es.xlf (<trans-unit>)' )( format ="." )
386
+ + makeExample('cb-i18n/ts/src/ locale/messages.es.xlf.html' , 'translated-select' , 'src/ locale/messages.es.xlf (<trans-unit>)' )( format ="." )
387
387
388
388
.l-main-content
389
389
:marked
0 commit comments