08-14-2008
I have moved this to The Lounge since it's not destined to contribute much to our knowledge base.
It is really enough to "know" the language? I know dozens of languages. But I could currently earn a living writing in Fortran, assembler, C and ksh/bash/sh. I'm pretty good in awk, but I feel that doesn't count since I've never heard of an employer seeking an "awk programmer".
Onr thing to consider... two other languages I know were developed by former employers and not generally available. Do private languages count?
8 More Discussions You Might Find Interesting
1. UNIX Desktop Questions & Answers
If I want to do high-end 3d animation, what skell scripting languages, and programming languages shoul I learn?
If you know any good resources for learning these languages they would be appreciated. (1 Reply)
Discussion started by: aloysius1001
1 Replies
2. UNIX for Advanced & Expert Users
I'm trying to create an operating system.
Just as a small hobby, it will not be anything big I am trying to get some practice.
Does anyone reccomend a certain programming language because I dont know which one to use.
Any help please? (2 Replies)
Discussion started by: jacx2
2 Replies
3. UNIX for Dummies Questions & Answers
Which languages would, in the long run, be best to learn on a UNIX environment
for kernel work, every day programs, and overall UNIX programming? I've been learning C for over a year now (which I'm pretty confident with) and decided I want to look into some other languages.
I'll mainly be... (1 Reply)
Discussion started by: tjinr
1 Replies
4. Shell Programming and Scripting
hello,
i have to change a lot of shell scripts for one reason :
the output in a script should be done in different languages.
for example:
echo "this is a test"
and "this is a test" should be printed out in language for an example: german,italian and so.
i saw a tool "gettext" ,... (2 Replies)
Discussion started by: bora99
2 Replies
5. Shell Programming and Scripting
Hi everyone,
First of all, i dont know what id do without this forum its been such a great help:) so a big thankyou to all,
anyway i have a simple question, if i wrote a scrpt in english would it work on another machine with a different language, or do i have to put something in the script to say... (9 Replies)
Discussion started by: dave123
9 Replies
6. UNIX for Advanced & Expert Users
Hello All.
Everyday at work I have to fill a big .xls spreadsheet with process chains start and end time information. The thing is that it takes too long and a lot of boring work. :(
I was wondering if I could link this with a tool in java that would export this information into a .xls... (1 Reply)
Discussion started by: pingosa
1 Replies
7. Web Development
I am learning Web Development, so far i am learning html,xhtml, css, java script....
What I want to know is what other Web Development languages should i learn? (1 Reply)
Discussion started by: Anna Hussie
1 Replies
8. What is on Your Mind?
I would love the idea to develop games. How can I teach myself computer programming? What programs or software must I use? I have the new iMac? (5 Replies)
Discussion started by: Anna Hussie
5 Replies
LEARN ABOUT DEBIAN
mojolicious::plugin::i18n
Mojolicious::Plugin::I18N(3pm) User Contributed Perl Documentation Mojolicious::Plugin::I18N(3pm)
NAME
Mojolicious::Plugin::I18N - Internationalization plugin
SYNOPSIS
# Mojolicious
$self->plugin('I18N');
% languages 'de';
%=l 'hello'
# Mojolicious::Lite
plugin I18N => {namespace => 'MyApp::I18N'};
%=l 'hello'
# Lexicon
package MyApp::I18N::de;
use Mojo::Base 'MyApp::I18N';
our %Lexicon = (hello => 'hallo');
1;
DESCRIPTION
Mojolicious::Plugin::I18N adds Locale::Maketext support to Mojolicious. All you have to do besides using this plugin is to add as many
lexicon classes as you need. Languages can usually be detected automatically from the "Accept-Languages" request header.
This plugin can save a lot of typing, since it will generate the following code by default.
# $self->plugin('I18N');
package MyApp::I18N;
use base 'Locale::Maketext';
package MyApp::I18N::en;
use base 'MyApp::I18N';
our %Lexicon = (_AUTO => 1);
1;
Namespace and default language of generated code are affected by their respective options. The default lexicon class will only be generated
if it doesn't already exist.
The code of this plugin is a good example for learning to build new plugins, you're welcome to fork it.
OPTIONS
Mojolicious::Plugin::I18N supports the following options.
"default"
# Mojolicious::Lite
plugin I18N => {default => 'en'};
Default language, defaults to "en".
"namespace"
# Mojolicious::Lite
plugin I18N => {namespace => 'MyApp::I18N'};
Lexicon namespace, defaults to the application class followed by "::I18N".
HELPERS
Mojolicious::Plugin::I18N implements the following helpers.
"l"
%=l 'hello'
$self->l('hello');
Translate sentence.
"languages"
% languages 'de';
$self->languages('de');
Change languages.
METHODS
Mojolicious::Plugin::I18N inherits all methods from Mojolicious::Plugin and implements the following new ones.
"register"
$plugin->register($app, $conf);
Register plugin hooks and helpers in Mojolicious application.
SEE ALSO
Mojolicious, Mojolicious::Guides, <http://mojolicio.us>.
perl v5.14.2 2012-09-05 Mojolicious::Plugin::I18N(3pm)