AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Language Keys (https://forums.alliedmods.net/showthread.php?t=86788)

nindzamali 03-02-2009 15:34

Language Keys
 
Hi, I would like to know how can I get language keys for every language.
For example I want to hook a "dictionary" to the plugin:

(The language keys are for example [en], [fr]...)
Here is an example:
Code:

// This is the part of the plugin where i register my "dictionary".
register_dictionary("somefile.txt");

Here is the example content of somefile.txt:
Code:

[en]
something1 = This is in english.
something2 = This is also in english.

[fr]
something1 = This should be in french :P
something2 = This should also be in french.

Now how can I found out keys for the other languages?

Arkshine 03-02-2009 15:37

Re: Language Keys
 
http://www.iso.org/iso/country_codes...e_elements.htm

nindzamali 03-02-2009 16:03

Re: Language Keys
 
Thanks. +karma

fysiks 03-02-2009 17:22

Re: Language Keys
 
Quote:

Originally Posted by arkshine (Post 772532)

That can't be right. Ther is no "en" listed.

United States should be [en], Great Britian would be [en], Canada would be [en].

I don't think language codes are the same as country codes.

EDIT:
United States Library of Congress, ISO 639-1,-2:
http://www.loc.gov/standards/iso639-...glish_list.php

Arkshine 03-02-2009 18:16

Re: Language Keys
 
Another way is to see the others ML files in /data/lang ; most of key language are there.

fysiks 03-02-2009 22:42

Re: Language Keys
 
Quote:

Originally Posted by arkshine (Post 772653)
Another way is to see the others ML files in /data/lang ; most of key language are there.

Yeah, but it doesn't tell you which language it is. I don't know what language these are: "sr", "tr", "sv", "da", "pl", without looking them up in ISO 639-1.

Is there a limit on what languages AMX uses?

nindzamali 03-03-2009 08:49

Re: Language Keys
 
Quote:

Originally Posted by fysiks (Post 772809)
Yeah, but it doesn't tell you which language it is. I don't know what language these are: "sr", "tr", "sv", "da", "pl", without looking them up in ISO 639-1.

Is there a limit on what languages AMX uses?

sr is Serbian. :P
There are only 20 languages here. Are those all the languages amxx supports?


All times are GMT -4. The time now is 17:03.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.