Difference between revisions of "L10n"
From AMTech WikiDocs
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | The | + | The defined semantic machinery supports translation. When a type is defined, each supported property may contain a translation to the supported languages (Spanish, English, French, etc). This translation will be used according to the language preferences of the user. |
− | * Sample localization collection taken from a supported property sendFrequency, of a gpsDevice type | + | * Sample localization collection taken from a supported property sendFrequency, of a gpsDevice type. It only contains the translation to Spanish |
− | { | + | <syntaxhighlight lang="jsonld"> |
− | " | + | { |
− | + | "@id":"/amtech/linkeddata/types/composite/entity/gpsDevice/sendFrequency/localization",, | |
− | + | ||
− | + | ||
"@type":"http://www.w3.org/ns/hydra/core#Collection", | "@type":"http://www.w3.org/ns/hydra/core#Collection", | ||
+ | "memberstype":"/amtech/linkeddata/types/composite/localizedterm", | ||
"description":"", | "description":"", | ||
"guesttenants":[ | "guesttenants":[ | ||
"_ALL" | "_ALL" | ||
], | ], | ||
− | |||
"_name":"localization", | "_name":"localization", | ||
− | |||
− | |||
"members":[ | "members":[ | ||
{ | { | ||
− | |||
"validationMsg":"", | "validationMsg":"", | ||
− | |||
"@type":"/amtech/linkeddata/types/composite/localizedterm", | "@type":"/amtech/linkeddata/types/composite/localizedterm", | ||
"currencysymbol":"", | "currencysymbol":"", | ||
"locale":"es", | "locale":"es", | ||
− | |||
"_name":"es", | "_name":"es", | ||
"caption":"frecuencia de envío", | "caption":"frecuencia de envío", | ||
"currencydigits":"", | "currencydigits":"", | ||
"datetimeformat":"", | "datetimeformat":"", | ||
− | |||
"description":"Frecuencia de envío de observaciones del gps", | "description":"Frecuencia de envío de observaciones del gps", | ||
"guesttenants":[ | "guesttenants":[ | ||
Line 34: | Line 26: | ||
], | ], | ||
"@id":"/amtech/linkeddata/types/composite/entity/gpsDevice/sendFrequency/localization/es", | "@id":"/amtech/linkeddata/types/composite/entity/gpsDevice/sendFrequency/localization/es", | ||
− | |||
− | |||
"currencycode":"" | "currencycode":"" | ||
} | } | ||
] | ] | ||
} | } | ||
+ | </syntaxhighlight> |
Latest revision as of 10:11, 12 October 2016
The defined semantic machinery supports translation. When a type is defined, each supported property may contain a translation to the supported languages (Spanish, English, French, etc). This translation will be used according to the language preferences of the user.
- Sample localization collection taken from a supported property sendFrequency, of a gpsDevice type. It only contains the translation to Spanish
{
"@id":"/amtech/linkeddata/types/composite/entity/gpsDevice/sendFrequency/localization",,
"@type":"http://www.w3.org/ns/hydra/core#Collection",
"memberstype":"/amtech/linkeddata/types/composite/localizedterm",
"description":"",
"guesttenants":[
"_ALL"
],
"_name":"localization",
"members":[
{
"validationMsg":"",
"@type":"/amtech/linkeddata/types/composite/localizedterm",
"currencysymbol":"",
"locale":"es",
"_name":"es",
"caption":"frecuencia de envío",
"currencydigits":"",
"datetimeformat":"",
"description":"Frecuencia de envío de observaciones del gps",
"guesttenants":[
],
"@id":"/amtech/linkeddata/types/composite/entity/gpsDevice/sendFrequency/localization/es",
"currencycode":""
}
]
}