Raised This Month: $ Target: $400
 0% 

Language Keys


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
nindzamali
New Member
Join Date: Mar 2009
Old 03-02-2009 , 15:34   Language Keys
Reply With Quote #1

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?
nindzamali is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-02-2009 , 15:37   Re: Language Keys
Reply With Quote #2

http://www.iso.org/iso/country_codes...e_elements.htm
Arkshine is offline
nindzamali
New Member
Join Date: Mar 2009
Old 03-02-2009 , 16:03   Re: Language Keys
Reply With Quote #3

Thanks. +karma
nindzamali is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-02-2009 , 17:22   Re: Language Keys
Reply With Quote #4

Quote:
Originally Posted by arkshine View Post
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
__________________

Last edited by fysiks; 03-02-2009 at 17:38. Reason: Added link to language codes
fysiks is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-02-2009 , 18:16   Re: Language Keys
Reply With Quote #5

Another way is to see the others ML files in /data/lang ; most of key language are there.
Arkshine is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-02-2009 , 22:42   Re: Language Keys
Reply With Quote #6

Quote:
Originally Posted by arkshine View Post
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?
__________________

Last edited by fysiks; 03-02-2009 at 22:45.
fysiks is offline
nindzamali
New Member
Join Date: Mar 2009
Old 03-03-2009 , 08:49   Re: Language Keys
Reply With Quote #7

Quote:
Originally Posted by fysiks View Post
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.
There are only 20 languages here. Are those all the languages amxx supports?
nindzamali is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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