Difference between revisions of "Language Library"

From SmartWiki
Jump to: navigation, search
Line 6: Line 6:
 
* You may wish to shorted some existing captions.  As an example Organization Hierarchy is a standard menu item but you may wish to change this to simply Hierarchy.
 
* You may wish to shorted some existing captions.  As an example Organization Hierarchy is a standard menu item but you may wish to change this to simply Hierarchy.
 
* some components of the Reporting System may required Language Library translation/
 
* some components of the Reporting System may required Language Library translation/
 
  
 
The Language Library setting are located on the Branding and Terminology tab of the Global Settings.
 
The Language Library setting are located on the Branding and Terminology tab of the Global Settings.
Line 20: Line 19:
 
* '''Label''' - Specified the text string that you wish to translate.
 
* '''Label''' - Specified the text string that you wish to translate.
  
* '''Language''' - Specified the language to be associated with this translation.
+
* '''Language''' - Specified the language to be associated with this translation.  This language settign will be compared to the users's language setting to determine if the translation is required.
  
* '''Translation''' - Specified the translation to be used for this string in this selected language.
+
* '''Translation''' - Specified the translation to be used for this string in the selected language.
  
* '''URL''' - You can use the URL to restrict the the translation to a specific page. You would use this feature if you needed to apply a different meaning to the same string in a different location.  If ''URL'' is left blank, the translation will be applied to all pages .
+
* '''URL''' - You can use the URL to restrict the the translation to a specific page. You would use this feature if you needed to apply a different meaning to the same string in a different location.  If ''URL'' is left blank, the translation will be applied to all pages.
  
 
==Example==
 
==Example==
  
In this example, on the users Change Password page we change the word ''Policy'' to ''Políticas de'' for users with the Spanish language option selected.
+
In this example, the word Organization is changed to Organisation (British Isles spelling).
 +
 
 +
[[Image:Language_Library-003.png]]
 +
 
 +
Similar translations would required for each string that contains Organization; singular and plural and within other strings such as Organizational Hierarchy.  The list of translations will look as follows if the additional translations were created.
  
Setup the Label Translation and click the '''Save''' button:
+
[[Image:Language_Library-004.png]]
  
[[File:EditTranslation.png]]
+
The effects of these translations will be seen throughout the system where these strings are referenced.
  
 +
[[Image:Language_Library-005.png]]
  
This is the result on the Change Password page:
 
  
[[File:TranslationResult.png]]
 
  
  
 
==SSTranslate==
 
==SSTranslate==
  
In a {{WPV}} field, you can tag a block of text to be processed by the Language Library using the ''ssTranslate'' syntax. See [[Translating_Web_Page_Views#Language_Library_and_ssTranslate|Translating Web Page Views]] for further information.
+
SSTranslate is a SmartSimple built-in function used to translate blocks of text that may exist in a {{WPV}} field.
 +
 
  
 +
You can tag a block of text to be processed by the Language Library using the ''ssTranslate'' syntax. See [[Translating_Web_Page_Views#Language_Library_and_ssTranslate|Translating Web Page Views]] for further information.
  
 
==Notes==
 
==Notes==
* If you wish to change the default English terminology used you may enter an '''English''' translation. For example if you wanted the system standard '''Save Draft''' button to say '''Save as Draft''' instead you could rename it by entering an English translation entry:
 
:[[File:RenameSaveDraft.png]]
 
  
 
* The '''Page X of Y''' navigation label can be translated using the following syntax:
 
* The '''Page X of Y''' navigation label can be translated using the following syntax:

Revision as of 10:23, 19 July 2016

Introduction

The purpose of the Language Library is to translate any string value (text) to another language. There are very specific use cases for the Language Library.

  • you may need to change the captions of some build-in labels to something suitable to your organization. As a example you can rename the the default term "company" using the Global Terminology settings to Organization but you could not set the value of that string for a user of another language - you must use the Language Library.
  • You may wish to shorted some existing captions. As an example Organization Hierarchy is a standard menu item but you may wish to change this to simply Hierarchy.
  • some components of the Reporting System may required Language Library translation/

The Language Library setting are located on the Branding and Terminology tab of the Global Settings.

Language Library-001.png

Edit Translation

Each Language Library entry consists of the following fields

Language Library-002.png

  • Label - Specified the text string that you wish to translate.
  • Language - Specified the language to be associated with this translation. This language settign will be compared to the users's language setting to determine if the translation is required.
  • Translation - Specified the translation to be used for this string in the selected language.
  • URL - You can use the URL to restrict the the translation to a specific page. You would use this feature if you needed to apply a different meaning to the same string in a different location. If URL is left blank, the translation will be applied to all pages.

Example

In this example, the word Organization is changed to Organisation (British Isles spelling).

Language Library-003.png

Similar translations would required for each string that contains Organization; singular and plural and within other strings such as Organizational Hierarchy. The list of translations will look as follows if the additional translations were created.

Language Library-004.png

The effects of these translations will be seen throughout the system where these strings are referenced.

Language Library-005.png



SSTranslate

SSTranslate is a SmartSimple built-in function used to translate blocks of text that may exist in a Web Page View field.


You can tag a block of text to be processed by the Language Library using the ssTranslate syntax. See Translating Web Page Views for further information.

Notes

  • The Page X of Y navigation label can be translated using the following syntax:
Page @PN@ of @PT@
So to translate to Spanish:
Page translation.png

See Also