Difference between revisions of "Subfolder under locale folder"

From Lingoport Wiki
Jump to: navigation, search
(Subfolders under locale folder)
(Subfolders under locale folder)
 
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
= Subfolders under locale folder =
 
= Subfolders under locale folder =
There are some resource files, such as DITA, that require a file structure where there are subfolders under each locale folder.
+
There are some resource files, such as DITA .dita and .ditamap or .adoc files, that require a file structure where there are subfolders under each locale folder.
   
 
Example:
 
Example:
  +
'''en'''
  +
content
  +
ContentIntro.dita
  +
services
  +
ServicesIntro.dita
  +
'''fr'''
  +
content
  +
ContentIntro.dita
  +
services
  +
ServicesIntro.dita
   
  +
== Setting up a project where the resource files are located in subfolders under a locale folder ==
;en
 
  +
The following is an ''example'' of settings for a DITA projects with .dita and .ditamap files to be translated from English (en) to French (fr).
: ''content''
 
  +
:: ContentIntro.dita
 
  +
See [[On_Boarding_an_LRM_Project|''Onboarding an LRM project'']] for information on how to set up a LRM project. Below is an example of how to setup a resource extension where the files are located in subfolders under a locale folder.
:: ''services''
 
  +
::: ServicesIntro.dita
 
  +
In the file structure example above, there are base resource files located in the ''./en/content'' folder as well as the ''./en/content/services'' folder. In the Jenkins Project configuration, you'll need to define 2 resource extensions where the extension name and parser type are the same, but the folder name patterns are different. The folder name patterns must have a wildcard (*) after the locale pattern (l_c_v) and must have the ''Use Location Pattern on Default Locale'' checked.
;fr
 
  +
: ''content''
 
  +
[[File:DitaResourceExtensions.png]]
:: ContentIntro.dita
 
:: ''services''
 
::: ServicesIntro.dita
 

Latest revision as of 18:59, 16 July 2020

Subfolders under locale folder

There are some resource files, such as DITA .dita and .ditamap or .adoc files, that require a file structure where there are subfolders under each locale folder.

Example:

   en
       content
           ContentIntro.dita
           services
               ServicesIntro.dita
   fr
       content
           ContentIntro.dita
           services
               ServicesIntro.dita

Setting up a project where the resource files are located in subfolders under a locale folder

The following is an example of settings for a DITA projects with .dita and .ditamap files to be translated from English (en) to French (fr).

See Onboarding an LRM project for information on how to set up a LRM project. Below is an example of how to setup a resource extension where the files are located in subfolders under a locale folder.

In the file structure example above, there are base resource files located in the ./en/content folder as well as the ./en/content/services folder. In the Jenkins Project configuration, you'll need to define 2 resource extensions where the extension name and parser type are the same, but the folder name patterns are different. The folder name patterns must have a wildcard (*) after the locale pattern (l_c_v) and must have the Use Location Pattern on Default Locale checked.

DitaResourceExtensions.png