[GeoNetwork-users] How to add language to tabsearch? GeoNetwork.Lang.xx -how to get it included in App-mini.js and then used?

Hallo,

New 2.10.3 installation here from source. I noticed that the HTML5ui and the
original ui both read strings in /loc/language/strings.xml for the
frontpage, whereas tabsearch does not. The tabsearch strings appear mainly
in \apps\js\GeoNetwork\lib\GeoNetwork\lang\xx.js .

I've copied de.js there and changed it so : GeoNetwork.Lang.sv ||
OpenLayers.Util.extend(OpenLayers.Lang.sv, GeoNetwork.Lang.sv).

I've added sv to the db by copying and modifying a loc-nor-default.sql.

It's added to config-gui.xml and \apps\js\GeoNetwork\lib\GeoNetwork\Util.js.

Have changed the name of the existing
\apps\js\ext\src\locale\ext-lang-sv_SE.js to ext-lang-sv.js, and done the
same in \scripts\ext\source\ext.jsb (for otherwise the application will
look for ext-lang-sv.js and not find it, by default)

Added it to web\src\main\webapp\xsl\geo\utils.xsl and web-client\pom.xml and
then built.

I get "Svenska" in the dropdown menu in the main tabsearch ui and it is
selectable. (When entering the admin app there's no "Svenska" in the
language dropdown, just a blank line) but there's no
"OpenLayers.Util.extend(OpenLayers.Lang.es,GeoNetwork.Lang.es);Ext.namespace("GeoNetwork","GeoNetwork.Lang");
GeoNetwork.Lang.fr={"metadata-not-found":"La métadonnée " ... in the built
App-mini.js.

If attempting to *debug *by loading index_debug.html, I can see that
http://localhost:6080/geonetwork/apps/js/GeoNetwork/lib/GeoNetwork/lang/sv.js
is loaded, but it isn't reflected in the UI.

I tried adding it in the built tabsearch App-mini.js by copying another
language's two rows but that made no difference. I tried the same for
Finnish, which is a default language, but it doesn't reflect in the UI
either, though it remains selectable.

Can anyone tell me what I am doing wrong?

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/How-to-add-language-to-tabsearch-GeoNetwork-Lang-xx-how-to-get-it-included-in-App-mini-js-and-then-u-tp5106691.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Also noticed that if I run in the debug mode indicated above, and change the
apps\js\OpenLayers\lib\OpenLayers.js to include OpenLayers/Lang/sv.js the
"Search for spatial data on" string becomes verbatim the argument string of
"OpenLayers.i18n('Searchforspatialdataon') + '
'" in tabsearch/js/App.js, that is "Searchforspatialdataon".

Is there some i18n course I could take that would solve this issue, or is it
something else?

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/How-to-add-language-to-tabsearch-GeoNetwork-Lang-xx-how-to-get-it-included-in-App-mini-js-and-then-u-tp5106691p5106695.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.