How do Insert Translation in Settings

Added by patodeborracha about 8 years ago

I translated the client of Ryzom to Portuguese-Brazil 100%. how do I insert the translation in the settings?

http://img576.imageshack.us/i/language001.jpg/

grateful


Replies (8)

RE: How do Insert Translation in Settings - Added by cronyx about 8 years ago

You need changes in code/ryzom/client/src/interface_v3/action_handler_game.cpp

string convertLanguageIntToLanguageCode(sint val) {
switch(val) {
default:
case 0: return "en"; break;
case 1: return "fr"; break;
case 2: return "de"; break;
case 3: return "ru"; break;
case 4: return "br"; break; # <--- add this line
}
}

and make changes in code/ryzom/client/data/gamedev/interfaces_v3/game_config.xml

&lt;combo_text name="uigcEnglish" /&gt; 
&lt;combo_text name="uigcFrancais" /&gt;
&lt;combo_text name="uigcDeutch" /&gt;
&lt;combo_text name="uigcRussian" /&gt;
&lt;combo_text name="uigcBrazilian" /&gt; # <-- add this line

sry, eng is not primary lang...

RE: How do Insert Translation in Settings - Added by kirlack about 8 years ago

Excuse me for this little offtopic, but I think you shouldn't use "br" for the Portuguese-Brazil. Referring to ISO 639, br is the alpha-2 code for Breton, a totally different language. Maybe you should consider the Portuguese code (pt) and add -br to be country-specific (using ISO 3166-1 for the alpha-2 country code) ; or extends to the alpha-3 code if there's a specific one for Portuguese-Brazil (but I doubt about it).

RE: How do Insert Translation in Settings - Added by patodeborracha about 8 years ago

cronyx very ty my friend.. very ty! eng is not my primary lang too... =(

kirlack, friend.. i use pt-br? it? pt is portuguese (portugal) language.. is different!
the ISO 3166-2:BR
http://pt.wikipedia.org/wiki/ISO_3166-2%3ABR (Portuguese)
http://wikipedia.org/wiki/ISO_3166-2%3ABR (English)

very ty all for help me!

RE: How do Insert Translation in Settings - Added by kervala about 8 years ago

You need to copy code/ryzom/client/data/gamedev/interfaces_v3/game_config.xml in your Ryzom "user" folder otherwise it couldn't load it :(

RE: How do Insert Translation in Settings - Added by patodeborracha about 8 years ago

it work =) im noob, sorry..

very ty

i happy.. I Complete de Quest of Translation! =)

RE: How do Insert Translation in Settings - Added by kirlack about 8 years ago

patodeborracha wrote:

cronyx very ty my friend.. very ty! eng is not my primary lang too... =(

kirlack, friend.. i use pt-br? it? pt is portuguese (portugal) language.. is different!
the ISO 3166-2:BR
http://pt.wikipedia.org/wiki/ISO_3166-2%3ABR (Portuguese)
http://wikipedia.org/wiki/ISO_3166-2%3ABR (English)

very ty all for help me!

I think you misunderstood with the standards' purpose :
ISO 3166 defines codes for the names of countries
ISO 639 defines codes for language names

I insist about the difference between the name of a country and the name of a language : there's not one language per country.

Here, we're talking about the language code, so we must refer to ISO 639. Using this standard, "br" stands for Breton and nothing else (I know it could be confusing because in country code, "br" stands for Brazil). Because in Brazil you speak a variant of Portuguese, you should use the language code for Portuguese : "pt". Yes there is differences difference between the Portuguese spoken in Portugal the the one spoken in Brazil, that's why you can add a hyphen followed by the concerned country code to indicate the country specific language.

Following this rule, you obtains such examples :
pt: Portuguese (general)
pt-pt: Portuguese (Portugal)
pt-br: Portuguese (Brazil)
en: English (General)
en-gb: English (United Kingdom)
en-us: English (United States)
en-au: English (Australia)
en-ca: English (Canada)
fr: French (General)
fr-fr: French (France)
fr-ca: French (Canada)
etc

References :
ISO 3166 country code lists : http://www.iso.org/iso/country_codes/iso_3166_code_lists/english_country_names_and_code_elements.htm
ISO 639 languages code lists : http://www.sil.org/iso639-3/codes.asp

RE: How do Insert Translation in Settings - Added by patodeborracha about 8 years ago

I'll change everything here .. thank you for help!

(1-8/8)