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

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -