Use keywords in two languages

Hello
I found a function getKeywords ($submissionId, $ local) in SubmissionKeywordDAO.inc.php

I want to use this function in the template articledetails.tpl but the page does not work

I command to call the function
{assign var=Keyinotherlanguage value=$keyword->getKeyword($article->getId(), $currentLocale)}

My idea is to validate the language of the page and send the function call with the translated keywords. For example if the page is in English send the function with the keywords in Spanish something like that:

{assign var=Keyinotherlanguage value=$keyword->getKeyword($article->getId(), “en_US”)}

{assign var=Keyinotherlanguage value=$keyword->getKeyword($article->getId(), “es_ES”)}