#141 - Other languages - translation of the theme
Hi, Is it possible to use another language for the theme?. I use Sugar in french but some labels (like Last Viewed, My Items, Reminders, etc) are exclusif from the theme, so I have a mix of languages. Are you going to support multiple languages?. Thanks
9 years ago
just add your language file to custom/Extension/modules/TRThemeController/Ext/Language like you would with any other module and do a quick repair. You can see the strings used in modules/TRThemeController/Language/en_us.lang.php ... labels are picked up from there. If there are issues with certain labels pls let me know and we will fix it with the next release.
9 years ago
Actually custom/Extension/modules/TRThemeController/Ext/Language doesn't exist. Should I create it? Is the language file just a modified copy of the en_us.lang.php? ex: fr_ca.lang.php? or it has another structure?. I have created fr_ca.lang.php using en_us.lang.php. Where should I upload it?. Thanks
8 years ago
Create custom/Extension/modules/TRThemeController/Ext/Language an just copy and modify the original en_us.lang.php.
8 years ago
French version of the file :
<?php $mod_strings = array ( 'LBL_ADD_DASHLET' => 'ajouter un dashlet', 'LBL_ADD_PAGE' => 'ajouter une page', 'LBL_CONFIG_SIDEBAR' => 'configurer la barre latérale', 'LBL_SIDEBAR' => 'Barre latérale', 'LBL_DESKTOPS' => 'Bureaux', 'LBL_FAVORITES' => 'Favoris', 'LBL_LASTVIEWED' => 'Vus récemment', 'LBL_REMINDERS' => 'Rappels', 'LBL_SHORTCUTS' => 'Raccourcis', 'LBL_COMBO' => 'Mes éléments', 'LBL_TRTHEMECONFIG_TITLE' => 'Paramètres du thème 20reasons', 'LBL_TRTHEMECONFIG_SIDEBAR_LOAD_CLOSED' => 'chargement du contenu de la barre latérale lorsqu\'elle est fermée :', 'LBL_TRTHEMECONFIG_SUBPANELS_TABBED' => 'montrer les sous-paneaux comme des onglets :', 'LBL_TRTHEMECONFIG_COLOR1' => 'Thème-Couleur 1 :', 'LBL_TRTHEMECONFIG_COLOR2' => 'Thème-Couleur 2 :', ); ?>8 years ago
A french version of the custom/Extension/modules/TRThemeController/Ext/Language/fr_FR.lang.php
<?php $mod_strings = array ( 'LBL_ADD_DASHLET' => 'ajouter un dashlet', 'LBL_ADD_PAGE' => 'ajouter une page', 'LBL_CONFIG_SIDEBAR' => 'configurer la barre latérale', 'LBL_SIDEBAR' => 'Barre latérale', 'LBL_DESKTOPS' => 'Bureaux', 'LBL_FAVORITES' => 'Favoris', 'LBL_LASTVIEWED' => 'Vus récemment', 'LBL_REMINDERS' => 'Rappels', 'LBL_SHORTCUTS' => 'Raccourcis', 'LBL_COMBO' => 'Mes éléments', 'LBL_TRTHEMECONFIG_TITLE' => 'Paramètres du thème 20reasons', 'LBL_TRTHEMECONFIG_SIDEBAR_LOAD_CLOSED' => 'chargement du contenu de la barre latérale lorsqu\'elle est fermée :', 'LBL_TRTHEMECONFIG_SUBPANELS_TABBED' => 'montrer les sous-paneaux comme des onglets :', 'LBL_TRTHEMECONFIG_COLOR1' => 'Thème-Couleur 1 :', 'LBL_TRTHEMECONFIG_COLOR2' => 'Thème-Couleur 2 :', ); ?>8 years ago
Thanks Vincent!