No localization string for "Similar results..."

Oxygen general issues.
ckabstein
Posts: 142
Joined: Fri Apr 24, 2015 12:28 pm

No localization string for "Similar results..."

Post 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
oXygen XML Editor 25.0 build 2023013006
DITA OT 3.7.3
ckabstein
Posts: 142
Joined: Fri Apr 24, 2015 12:28 pm

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

Post 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
oXygen XML Editor 25.0 build 2023013006
DITA OT 3.7.3
radu_pisoi
Posts: 403
Joined: Thu Aug 21, 2003 11:36 am
Location: Craiova
Contact:

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

Post 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.
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
ckabstein
Posts: 142
Joined: Fri Apr 24, 2015 12:28 pm

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

Post 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
oXygen XML Editor 25.0 build 2023013006
DITA OT 3.7.3
radu_pisoi
Posts: 403
Joined: Thu Aug 21, 2003 11:36 am
Location: Craiova
Contact:

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

Post 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.
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
ckabstein
Posts: 142
Joined: Fri Apr 24, 2015 12:28 pm

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

Post by ckabstein »

Hi Radu,

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

Best regards,
Christina
oXygen XML Editor 25.0 build 2023013006
DITA OT 3.7.3
radu_pisoi
Posts: 403
Joined: Thu Aug 21, 2003 11:36 am
Location: Craiova
Contact:

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

Post by radu_pisoi »

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
Post Reply