Page 1 of 1

No localization string for "Similar results..."

Posted: Thu Apr 20, 2017 12:38 pm
by ckabstein
Hi,

Could it be that there is not yet a localization string for the "Similar results..." string of the searchCommon.js file (com.oxygenxml.webhelp plugin) which is displayed on the search results page?

I've checked the strings-en-us.xml file in the localization folder, and it looks like there's no string yet.

Christina

Re: No localization string for "Similar results..."

Posted: Thu Apr 20, 2017 12:40 pm
by ckabstein
And before I forget: could it be that some of the strings for the search in the strings-en-us.xml file are no longer used?

Thanks,
Christina

Re: No localization string for "Similar results..."

Posted: Thu Apr 20, 2017 3:50 pm
by radu_pisoi
Hi,

Thank you for reporting this issue.

I've checked the implementation and I can confirm that the Similar results... string is not localized.

I've registered an issue on our side and it will probably be fixed in the next maintenance release kit.

Re: No localization string for "Similar results..."

Posted: Fri Apr 21, 2017 12:20 pm
by ckabstein
Hi Radu,

There's another string that doesn't look like it's localized properly: "Missing"

same file: searchCommon.js:

Code: Select all

//console.info("missing words: ", missingWords);
var missingHTML =
"<div class=\"wh_missing_words\">" +
getLocalization('Missing') + " : ";
for (var widx = 0; widx < missingWords.length; widx++) {
missingHTML += "<span class=\"wh_missing_word\">" + missingWords[widx] + "</span> "
}
missingHTML += "</div>";
searchItemInfo += missingHTML;
It seems that the localization for "Missing" isn't derived from the strings-en-us.xml file or one of the localized files. There is a string in there that could be used, but it isn't:

Code: Select all

 <str name="missing" js="true" php="false">Missing</str>
For testing, I inserted the Spanish translation for missing where it says

Code: Select all

getLocalization('Falta')
The search functionality then took the correct word.

Could you please check?

Thanks,
Christina

Re: No localization string for "Similar results..."

Posted: Mon Apr 24, 2017 10:14 am
by radu_pisoi
Hi,

Yes, there is a problem with the 'Missing' label too. In this case, the problem is that the 'missing' label is not requested well. It should be requested in lower case:

Code: Select all

getLocalization('missing')
ckabstein wrote:It seems that the localization for "Missing" isn't derived from the strings-en-us.xml file or one of the localized files. There is a string in there that could be used, but it isn't:
Code: Select all
 <str name="missing" js="true" php="false">Missing</str>

For testing, I inserted the Spanish translation for missing where it says
Code: Select all
getLocalization('Falta')
The search functionality then took the correct word.
The WebHelp localization is not available for Spanish. If you have this use case, you have to translate the static labels used in WebHelp using the next procedure: https://www.oxygenxml.com/doc/versions/ ... hing2.html.

Re: No localization string for "Similar results..."

Posted: Mon Apr 24, 2017 11:49 am
by ckabstein
Hi Radu,

Thanks, I've changed the string in the .js file. Now it works.

Best regards,
Christina

Re: No localization string for "Similar results..."

Posted: Tue Oct 03, 2017 8:08 am
by radu_pisoi
Hi,

This issue was fixed in oXygen WebHelp 19.1.