LOCALE_GET_DISPLAY_REGION(3) 1 LOCALE_GET_DISPLAY_REGION(3)Locale::getDisplayRegion - Returns an appropriately localized display name for region of the input locale
Object oriented style
SYNOPSIS
publicstatic string Locale::getDisplayRegion (string $locale, [string $in_locale])
DESCRIPTION
Procedural style
string locale_get_display_region (string $locale, [string $in_locale])
Returns an appropriately localized display name for region of the input locale. If is NULL then the default locale is used.
PARAMETERS
o $locale
- The locale to return a display region for.
o $in_locale
- Optional format locale to use to display the region name
RETURN VALUES
display name of the region for the $locale in the format appropriate for $in_locale.
EXAMPLES
Example #1
locale_get_display_region(3) example
<?php
echo locale_get_display_region('sl-Latn-IT-nedis', 'en');
echo ";
";
echo locale_get_display_region('sl-Latn-IT-nedis', 'fr');
echo ";
";
echo locale_get_display_region('sl-Latn-IT-nedis', 'de');
?>
Example #2
OO example
<?php
echo Locale::getDisplayRegion('sl-Latn-IT-nedis', 'en');
echo ";
";
echo Locale::getDisplayRegion('sl-Latn-IT-nedis', 'fr');
echo ";
";
echo Locale::getDisplayRegion('sl-Latn-IT-nedis', 'de');
?>
The above example will output:
Italy;
Italie;
Italien
SEE ALSO locale_get_display_name(3), locale_get_display_language(3), locale_get_display_script(3), locale_get_display_variant(3).
PHP Documentation Group LOCALE_GET_DISPLAY_REGION(3)
Check Out this Related Man Page
LOCALE_GET_DISPLAY_SCRIPT(3) 1 LOCALE_GET_DISPLAY_SCRIPT(3)Locale::getDisplayScript - Returns an appropriately localized display name for script of the input locale
Object oriented style
SYNOPSIS
publicstatic string Locale::getDisplayScript (string $locale, [string $in_locale])
DESCRIPTION
Procedural style
string locale_get_display_script (string $locale, [string $in_locale])
Returns an appropriately localized display name for script of the input locale. If is NULL then the default locale is used.
PARAMETERS
o $locale
- The locale to return a display script for
o $in_locale
- Optional format locale to use to display the script name
RETURN VALUES
Display name of the script for the $locale in the format appropriate for $in_locale.
EXAMPLES
Example #1
locale_get_display_script(3) example
<?php
echo locale_get_display_script('sl-Latn-IT-nedis', 'en');
echo ";
";
echo locale_get_display_script('sl-Latn-IT-nedis', 'fr');
echo ";
";
echo locale_get_display_script('sl-Latn-IT-nedis', 'de');
?>
Example #2
OO example
<?php
echo Locale::getDisplayScript('sl-Latn-IT-nedis', 'en');
echo ";
";
echo Locale::getDisplayScript('sl-Latn-IT-nedis', 'fr');
echo ";
";
echo Locale::getDisplayScript('sl-Latn-IT-nedis', 'de');
?>
The above example will output:
Latin;
latin;
Lateinisch
SEE ALSO locale_get_display_name(3), locale_get_display_language(3), locale_get_display_region(3), locale_get_display_variant(3).
PHP Documentation Group LOCALE_GET_DISPLAY_SCRIPT(3)
hi,
Can any body pls tell the what the following second statement does.
region="$(dirname $1)"
mixedregion="$(echo ${region%${region#?}} | tr ']' ']')\
$(echo ${region#?} | tr ']' ']')"
cheers
RRK (3 Replies)
i want to add a string in a very top of a file without using VI or SED or AWK
this is what ive done:
(echo '0a'; echo 'LINE OF TEXT'; echo '.'; echo 'wq') | ed -s myfile
to add astrng right in the middle i could have count the lines of the file and just chenge the address.
... (6 Replies)
do not know why this piece of code does not work
echo "enter input"
read input
if ; then
echo the input is abc
else
echo the input is wrong
fi
thanks for the help (2 Replies)
Hi friends,
Please suggest a solution for this.
A script has following things.
echo "Enter P for PML"
echo "Enter V for VVL"
echo "Enter L for LNL"
echo "Enter G for GDL"
read choice
echo ${choice} >> LOG_Daily.txt
if operator enters anything other that P/V/L/G it should show an... (8 Replies)
Hi
I am using tcsh.
I want display in a file_1 like this.
$VARIBALE
I gave in a termianl
> echo "\$VARIBALE" > file_1
Its not workning.
It was giving VARIBALE: Undefined variable.
I gave \ before $, but why it was giving undefined varible?
Please help me.
Thanks in advance (4 Replies)
hi i have written a script
#!/bin/sh
clear
menu()
{
......
echo "enter 4 for finding text in a files"
echo "input: \c"
}
switch()
{
read input
case $input in
.......
4) echo "find" (1 Reply)
Hello all,
How can i have a user input that reads like this:
echo -n "Please enter a & b:" 10 20
read a
read b
echo $a
echo $b
10
20
right now i have divided it into two echos, like
echo -n "a: "
echo -n "b: " (1 Reply)
Greetings Forumers!
I've been fighting a locale problem on a v490 running Solaris 10 u4 (8/07). When I login to the system, I get several "locale" error messages:
user1's password:
Last login: Wed May 26 2010 09:14:13 -0400 from system1
You have mail.
couldn't set locale correctly
couldn't... (0 Replies)
Hi
I am facing a strange problem
a=03
echo ${a}
the output is 3
But i want to display it is 03
Can you people help me how to display it like 03.
Thanks (2 Replies)
Hi Friends,
I have the following values in
echo "$csi_tas_id"
echo "$platform"
echo "$region"
I want to display these values as shown below:
CSI_TAS_ID | PLATFORM | REGION
123 | UNIX | SG
231 | AIX ... (1 Reply)
lets say I am printing something out
echo "Please enter a valid username"
and its being printed out 5 times, is there any way I can limit to only being displayed ONCE. I tried echo -n but that just makes everything fit on one line.
Right now it keeps saying
Please enter a valid... (5 Replies)
Hi,
Humorous UNIX Commands shows a fun way of using echo and dc to sort of obfuscate a string.
% echo 'sasb3135071790101768542287578439snlbxq'|dc
GET A LIFE!
I am just wanting to know if there is a way to sort of use dc and echo to print out an obfuscated/garbled string instead... (3 Replies)