angularjs - What is meaning of gettext('Some Text') in Openstack -
what meaning of gettext('some text written')?. using openstack, there have use gettext(), please see following link openstack on github
i want know meaning of it, if assigning text variable why didn't use assignment opearator
$scope.label = { title: gettext('instance details'), instancename: gettext('instance name'), availabilityzone: gettext('availability zone'), instance_count: gettext('count'), };
it's related localization. function gettext looking translation of provided arguments , display them in selected locale.
as example of translation service in angular, check https://angular-translate.github.io/
Comments
Post a Comment