Esri / geoportal-server

Geoportal Server is a standards-based, open source product that enables discovery and use of geospatial resources including data and services.
https://gptogc.esri.com/geoportal
Apache License 2.0
245 stars 149 forks source link

How localization geoportal 1.2.4? #51

Closed parvazparvaz closed 10 years ago

parvazparvaz commented 10 years ago

I want localize to other language.

ramunask commented 10 years ago

Try set URIEncoding="UTF-8" on your in server.xml. See more on http://tomcat.apache.org/tomcat-7.0-doc/config/http.html

parvazparvaz commented 10 years ago

Hi I did it

ramunask commented 10 years ago

Which editor you used to edit gpt.properties?

parvazparvaz commented 10 years ago

Notepad I used utf-8

ramunask commented 10 years ago

Try use notepad++ and make sure file itself is encoded in UTF-8 format: 2013-11-17_17_39_12

parvazparvaz commented 10 years ago

I checked in notepad++,

ramunask commented 10 years ago

ok, don't know now :) Let's wait while somebody from ESRI responds.

mhogeweg commented 10 years ago

Please refer to this topic on localization: https://github.com/Esri/geoportal-server/wiki/Localization

parvazparvaz commented 10 years ago

Hi I did your suggestion 1 year a go

parvazparvaz commented 10 years ago

Any solution?

mhogeweg commented 10 years ago

Did you follow the wiki topic I referred to?

parvazparvaz commented 10 years ago

Yes

mhogeweg commented 10 years ago

Can you email me your gpt.properties file?

Sent via the Samsung Galaxy S™ III, an AT&T 4G LTE smartphone

-------- Original message -------- From: parvazparvaz notifications@github.com Date: 11/18/2013 6:54 AM (GMT-08:00) To: Esri/geoportal-server geoportal-server@noreply.github.com Cc: Marten Hogeweg mhogeweg@esri.com Subject: Re: [geoportal-server] How localization geoportal 1.2.4? (#51)

Yes But did not work fro my problem. It,s good for change language between non utf-8 language. for example between franch and english. What should I do? I,m looking for a solution to solve unmeaning charachters. like : بحث Please help me.

— Reply to this email directly or view it on GitHubhttps://github.com/Esri/geoportal-server/issues/51#issuecomment-28703690.

parvazparvaz commented 10 years ago

What is your email?

mhogeweg commented 10 years ago

mhogeweg@esri.com

parvazparvaz commented 10 years ago

Sent

parvazparvaz commented 10 years ago

Did you receive my email?

mhogeweg commented 10 years ago

yes, if you use unicode encoding for the text, the title does show up properly. example: catalog.site.title = مرکز للبحث

a good unicode converter is available online: http://mylanguages.org/converter.php

parvazparvaz commented 10 years ago

it is not

mhogeweg commented 10 years ago

for java applications like Geoportal Server you would create the gpt_ar.properties file and then run it through the unicode encoding tool native2ascii to produce the string I provided.

mhogeweg commented 10 years ago

do you have a fully translated gpt.properties file you can send me?

parvazparvaz commented 10 years ago

no

mhogeweg commented 10 years ago

the app is part of your Java JDK. it's in the bin folder.

parvazparvaz commented 10 years ago

Ni

mhogeweg commented 10 years ago

you'll have to not use the brackets []. please create your file with the arabic characters and then run it through the tool with a command like: native2ascii c:\yourinputfile c:\gpt_ar.properties.

parvazparvaz commented 10 years ago

no

mhogeweg commented 10 years ago

is your gpt.properties stored at c:\ ? send me your gpt.properties and I'll run the command.

parvazparvaz commented 10 years ago

no

parvazparvaz commented 10 years ago

I fund a solution:

English is better.