{"id":46744,"date":"2020-08-19T09:10:41","date_gmt":"2020-08-19T16:10:41","guid":{"rendered":"https:\/\/ephesoft.com\/docs\/?p=46744"},"modified":"2022-12-15T10:21:20","modified_gmt":"2022-12-15T17:21:20","slug":"how-do-i-add-a-new-translation-to-transact","status":"publish","type":"post","link":"https:\/\/ephesoft.com\/docs\/how-do-i-add-a-new-translation-to-transact\/","title":{"rendered":"How to Add a New Translation to Transact"},"content":{"rendered":"
Applies to:\u00a0<\/strong>All versions of Ephesoft Transact<\/span><\/p>\n If a language you\u2019re looking for is not<\/span> supported by Ephesoft<\/a>, you can add your own translations to the Transact UI by editing the locale files.<\/span><\/p>\n A locale file is a JavaScript (.js) file that contains a set of translations for the text strings used in Transact. In the Ephesoft file structure, there are separate locale files for each UI screen. The locale files contain an entry for each language.<\/span><\/p>\n The locale files are located at [Ephesoft_Directory<\/em>]\\Application\\i18n and [Ephesoft_Directory<\/em>]\\Application\\custom\\i18n. The i18n <\/strong>folder contains the following folders, each of which contains their respective locale.js<\/strong> file:<\/span><\/p>\n To add a new translation, perform the following steps for each respective locale.js<\/strong> file:<\/span><\/p>\n Note: <\/strong>English var statements don\u2019t have any language suffixes. For example, in the screenshots below, figure 1 shows the English variable with no language suffix while figure 2 shows the French translation variable in the same file with the _fr<\/strong> suffix:<\/span><\/p>\n <\/span><\/p>\n Figure 1. English Variable (default)<\/em><\/span><\/p>\n <\/span><\/p>\n Figure 2. French Variable<\/em><\/span><\/p>\n Note: <\/strong>As this is a JavaScript file, do not make any changes to the formatting or alignment of the script. Any syntax errors will prevent Transact from accessing the translations.<\/span><\/p>\n <\/p>\n","protected":false},"excerpt":{"rendered":" Applies to:\u00a0All versions of Ephesoft Transact If a language you\u2019re looking for is not supported by Ephesoft, you can add […]<\/p>\n","protected":false},"author":62,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12367],"tags":[361,12330,12334,12333,12332,12331,624],"yoast_head":"\n\n
<\/a>What <\/strong>are locale <\/strong>files?<\/strong><\/span><\/h2>\n
<\/a>Where are the locale files?<\/span><\/h2>\n
\n
<\/a>How do I add a new translation?<\/span><\/h2>\n
\n
\n