No localization string for "Similar results..."

<oXygen/> general issues.
ckabstein
Posts: 36

No localization string for "Similar results..."

Thu Apr 20, 2017 12:38 pm

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
ckabstein
Posts: 36

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

Thu Apr 20, 2017 12:40 pm

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
radu_pisoi
Posts: 302
Location: Craiova

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

Thu Apr 20, 2017 3:50 pm

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.
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
ckabstein
Posts: 36

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

Fri Apr 21, 2017 12:20 pm

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
radu_pisoi
Posts: 302
Location: Craiova

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

Mon Apr 24, 2017 10:14 am

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.
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
ckabstein
Posts: 36

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

Mon Apr 24, 2017 11:49 am

Hi Radu,

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

Best regards,
Christina
radu_pisoi
Posts: 302
Location: Craiova

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

Tue Oct 03, 2017 8:08 am

Hi,

This issue was fixed in oXygen WebHelp 19.1.
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

Return to “Other Issues”

Who is online

Users browsing this forum: Yahoo [Bot] and 3 guests