Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 29.548.306 Times

Locale::Object::Language 0.75

  Date Added: June 04, 2010  |  Visits: 713

Locale::Object::Language

Report Broken Link
Printer Friendly Version


Product Homepage
Download (71 downloads)



Locale::Object::Language Perl module contains language information objects. Locale::Object::Language allows you to create objects containing information about languages such as their ISO codes, the countries theyre used in and so on. SYNOPSIS use Locale::Object::Language; my $eng = Locale::Object::Language->new( code_alpha3 => eng ); my $name = $eng->name; my $code_alpha2 = $eng->code_alpha2; my $code_alpha3 = $eng->code_alpha3; my @countries = $eng->countries; my $gb = Locale::Object::Country->new( code_alpha2 => gb ); print $eng->official($gb); METHODS new() my $eng = Locale::Object::Language->new( code_alpha3 => eng ); The new method creates an object. It takes a single-item hash as an argument - valid options to pass are ISO 3166 values - code_alpha2, code_alpha3 and name (see Locale::Object::DB::Schemata for details on these). The objects created are singletons; if you try and create a currency object when one matching your specification already exists, new() will return the original one. name(), code_alpha2(), code_alpha3() my $name = $country->name; These methods retrieve the values of the attributes in the object whose name they share. countries() my @countries = $eng->countries; Returns an array (in array context, otherwise a reference) of Locale::Object::Country objects with their ISO 3166 alpha2 codes as keys (see Locale::Object::DB::Schemata for more details on those) for all countries using this currency in array context, or a reference in scalar context. The objects have their own attribute methods, so you can do things like this for example: foreach my $place (@countries) { print $place->name, "n"; } Which will list you all the countries that use in that currency. See the documentation for Locale::Object::Country for a listing of country attributes. Note that you can chain methods as well. foreach my $place (@countries) { print $place->continent->name, "n"; } official() my $gb = Locale::Object::Country->new( code_alpha2 => gb ); print $eng->official($gb); # prints true Give this method a Locale::Object::Country object, and it will return a true or false value for whether the country the object represents has the language represented by your Locale::Object::Language object as an official language. See database.pod for a note about languages in the database..

Requirements: No special requirements
Platforms: Linux
Keyword: Code Countries Gb Iso Language Language Information Language Perl Libraries Localeobjectlanguage Name New Perl Module Programming
Users rating: 0/10

License: Freeware Size: 47.1 KB
USER REVIEWS
More Reviews or Write Review


LOCALE::OBJECT::LANGUAGE RELATED
Libraries  -  Class::MakeMethods::Template 1.01
Class::MakeMethods::Template package contains extensible code templates. SYNOPSIS package MyObject; use Class::MakeMethods::Template::Hash ( new => new, string => foo, number => bar, ); my $obj = MyObject->new( foo => "Foozle", bar =>...
163.84 KB  
Libraries  -  Language::Zcode::Parser 0.8
Language::Zcode::Parser is a Perl module that reads and parses a Z-code file into a big Perl hash. SYNOPSIS # Create a Pure Perl Parser my $pParser = new Language::Zcode::Parser "Perl"; # If they didnt put ".z5" at the end, find it anyway...
296.96 KB  
Programming  -  Simple Machine Language interpreter
SML is a "toy" machine language intended to teach basic processor concepts. This website contains an explanation and definition of SML, as well as an interpreter and example SML programs. GPLd source code for the interpreter is available, as well...
225.28 KB  
Programming  -  Java + information flow 3.0
Java + information flow (Jif in short) is a security-typed programming language that extends Java with support for information flow control and access control, both at compile time and at run time. The source code for the Jif compiler and...
 
Code Management Tools  -  X Language 0.7.1
X Language is a new multi-syntax programming including a portable set of APIs to create console or graphical applications runnable on many platforms (UNIX/X11, Win32, ...). X Language comes with an interpreter, a compiler and a debugger. X...
358.4 KB  
Libraries  -  Java Unified Expression Language 2.1.0
Java Unified Expression Language is an implementation of the unified expression language (EL) as specified by the JSP 2.1 standard (JSR-245). The javax.el.ExpressionFactory implementation is de.odysseus.el.ExpressionFactoryImpl: // create an...
235.52 KB  
Programming  -  Luban programming language Beta 2.1
Luban is a component oriented scripting language. Luban is free and open source. Luban is named after a legendary ancient Chinese civil engineer and carpenter two thousand year ago whose constructions are still in use today. The programming...
378.88 KB  
Games  -  Open Dice Language 1.5
Open Dice Language project is a language for describing dice rolls. Open Dice Language is a language for describing dice rolls. The language is nearly identical to what you see in most role-playing game texts (e.g., "1d20"). It provides...
501.76 KB  
Modules  -  Registration Language 6.x-1.8
This is a helper module to address some problems in Drupals language behaviour.What it is aboutThe idea for this module comes from issue #163165. I just don't like how Drupal behaves and so I made a module to address that issue. But there were...
10 KB  
Reference  -  Python 3 Programming Language 5.0
The new Python 3 programming language for iPad, iPhone and iPod touch. Programming language is a perfect tool for studying, complex mathematical calculation, entertainment and many other useful tasks. The application is especially useful for...
7.7 MB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB  
Libraries  -  App::SimpleScan::Substitution::Line 2.02
App::SimpleScan::Substitution::Line is a line with optional fixed variable values. SYNOPSIS my $line = App::SimpleScan::Substitution::Line->new(" this "); # Use only this value when substituting " ". $line->fix(substituite =>...
54.27 KB