Feature Requests
Share ideas, discuss and vote on requests from other users in community

Department Name Translations

Anonymous shared this idea 8 years ago

We should be able to translate the name of the support departments name and description.

The only workaround actually possible is to manage it from smarty, but it is not an option because if we are making the slightest change to the departments name, we have to change the template to support the new changes again. This should be completely independant from smarty.

Original Forum Request:http://forums.whmcs.com/showthread.php?63054-Department-name-translation

Best Answer

This feature request makes up a larger project that aims for us to supporting multiple languages in more detail.

In the mean time what the original poster wishes for can be achieved by customization of the template files:


Comments (12)


I hope this feature is implemented in a future update


It's easy to implement.

Just take a look:

In lang/overrides/ukranian.php:

  1. $_LANG['departmentdescription']['Technical Support'] = "Технічна підтримка";

In supportticketsubmit-steptwo.tpl:

  1. --- templates/six/supportticketsubmit-steptwo.tpl2017-11-14 16:40:56.000000000 +0200
  2. +++ templates/vosix/supportticketsubmit-steptwo.tpl2017-11-15 17:35:06.439478000 +0200
  3. @@ -26,7 +26,11 @@
  4. <select name="deptid" id="inputDepartment" class="form-control" onchange="refreshCustomFields(this)">
  5. {foreach from=$departments item=department}
  6. <option value="{$department.id}"{if $department.id eq $deptid} selected="selected"{/if}>
  7. - {$department.name}
  8. + {if $LANG.departmentdescription[$department.name]}
  9. + {$LANG.departmentdescription[$department.name]}
  10. + {else}
  11. + {$department.name}
  12. + {/if}
  13. </option>
  14. {/foreach}
  15. </select>



Thanks for your votes and comments everyone. I'm pleased to advise this feature was implemented in v7.4!

The documentation is located at https://docs.whmcs.com/Easy_Translation