Hi,
I tried lots of things and finally I can use my language as a default
language. But, I cannot change the language selection combobox which on the
upper right of the page.
Is there a way to add my own language and make it default for selections?
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GeoNetwork-3-0-1-language-selection-Combo-Box-tp5226775.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.
Hi
Languages seem hardcoded.
List of languages:
https://github.com/geonetwork/core-geonetwork/blob/develop/web-ui/src/main/resources/catalog/js/CatController.js#L47-L52
Default language:
https://github.com/geonetwork/core-geonetwork/blob/develop/web-ui/src/main/resources/catalog/js/CatController.js#L45
If you update that code, should get the new language, if you have defined
the translations for it, I guess.
Regards,
Jose García
On Tue, Sep 29, 2015 at 12:37 PM, sercanerhan <sercanerhan@anonymised.com> wrote:
Hi,
I tried lots of things and finally I can use my language as a default
language. But, I cannot change the language selection combobox which on the
upper right of the page.
Is there a way to add my own language and make it default for selections?
--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/GeoNetwork-3-0-1-language-selection-Combo-Box-tp5226775.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork
--
*Vriendelijke groeten / Kind regards,Jose García
<http://www.geocat.net/>Veenderweg 136721 WD BennekomThe NetherlandsT: +31
(0)318 416664 <+31318416664>M: +31 (0)655 818332 <+31655818332>
<https://www.facebook.com/geocatbv> <https://twitter.com/geocat_bv>
<https://plus.google.com/u/1/+GeocatNetbv/posts>Please consider the
environment before printing this email.*
Thank you Jose but, it didn't work for me.
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GeoNetwork-3-0-1-language-selection-Combo-Box-tp5226775p5226808.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.
Hi
Check if it's some web browser cache issue.
At least for the language switcher works for me with these changes:
* Updated $scope.langs and $scope.langLabels to remove unwanted languages
in CatController.js
For the default language, I was checking to update the default locale in
this file WEB-INF/spring-servlet.xml
<bean id="localeResolver"
class="org.springframework.web.servlet.i18n.SessionLocaleResolver">
<property name="defaultLocale" value="*eng*" />
</bean>
I changed to fre for french, but no success. Need to check further how
works the default language stuff.
Regards,
Jose García
On Tue, Sep 29, 2015 at 3:30 PM, sercanerhan <sercanerhan@anonymised.com> wrote:
Thank you Jose but, it didn't work for me.
--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/GeoNetwork-3-0-1-language-selection-Combo-Box-tp5226775p5226808.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork
--
*Vriendelijke groeten / Kind regards,Jose García
<http://www.geocat.net/>Veenderweg 136721 WD BennekomThe NetherlandsT: +31
(0)318 416664 <+31318416664>M: +31 (0)655 818332 <+31655818332>
<https://www.facebook.com/geocatbv> <https://twitter.com/geocat_bv>
<https://plus.google.com/u/1/+GeocatNetbv/posts>Please consider the
environment before printing this email.*
Hi Jose,
I did try to clean browser's caches bur it didn't work for me. I want to add
turkish and my CatController.js includes these lines;
$scope.langs = {'eng': 'en', 'dut': 'du', 'fre': 'fr',
'ger': 'ge', 'tur': 'tr'};
// Lang names to be displayed in language selector
$scope.langLabels = {'eng': 'English', 'dut': 'Nederlands',
'fre': 'Français', 'ger': 'Deutsch', 'tur':'Türkçe'};
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GeoNetwork-3-0-1-language-selection-Combo-Box-tp5226775p5227181.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.
Hi
I have added your code and for me the menu looks fine with Turkish. I'm
using the 3.0.x branch, not sure if that can make the difference.
I would try in debug mode:
http://SERVER/geonetwork/srv/eng/catalog.search?debug=true#/home
To check if the menu is displayed properly. If so I would check to cleanup
the wro cache files, that if not wrong should be in WEB-INF folder, and
retry in no debug mode.
Regards,
Jose García
On Thu, Oct 1, 2015 at 7:13 AM, sercanerhan <sercanerhan@anonymised.com> wrote:
Hi Jose,
I did try to clean browser's caches bur it didn't work for me. I want to
add
turkish and my CatController.js includes these lines;
$scope.langs = {'eng': 'en', 'dut': 'du', 'fre': 'fr',
'ger': 'ge', 'tur': 'tr'};
// Lang names to be displayed in language selector
$scope.langLabels = {'eng': 'English', 'dut': 'Nederlands',
'fre': 'Français', 'ger': 'Deutsch', 'tur':'Türkçe'};
--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/GeoNetwork-3-0-1-language-selection-Combo-Box-tp5226775p5227181.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork
--
*Vriendelijke groeten / Kind regards,Jose García
<http://www.geocat.net/>Veenderweg 136721 WD BennekomThe NetherlandsT: +31
(0)318 416664 <+31318416664>M: +31 (0)655 818332 <+31655818332>
<https://www.facebook.com/geocatbv> <https://twitter.com/geocat_bv>
<https://plus.google.com/u/1/+GeocatNetbv/posts>Please consider the
environment before printing this email.*
Hi,
It works in debug mode, thank you. But, I still couldn't change the default
language.
Also, without debug mode, it doesn't work and it is not a cache issue
unfortunately 
I need to check sth more. Thank you so much again.
Regards,
Sercan
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GeoNetwork-3-0-1-language-selection-Combo-Box-tp5226775p5227282.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.
The minified javascript and CSS is cached server-side. You need to remove
the wro4j cache if you want to get it working without the debug parameter.
Search for wro4j-cache.* in the GN data directory and remove the files
wro4j-cache.h2.db, wro4j-cache.lock.db and wro4j-cache.trace.db
Regards,
Juan Luis.
On Thu, Oct 1, 2015 at 12:18 PM, sercanerhan <sercanerhan@anonymised.com> wrote:
Also, without debug mode, it doesn't work and it is not a cache issue
unfortunately 
Hi Juan Luis,
That's it! Thank you so much.
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GeoNetwork-3-0-1-language-selection-Combo-Box-tp5226775p5227491.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.