\hypertarget{__localization_8utils_8php}{\section{Riferimenti per il file \-\_\-src/\-\_\-lib/\-\_\-localization.utils.\-php}
\label{dc/d26/__localization_8utils_8php}\index{\-\_\-src/\-\_\-lib/\-\_\-localization.\-utils.\-php@{\-\_\-src/\-\_\-lib/\-\_\-localization.\-utils.\-php}}
}


questo file contiene le funzioni di supporto per la gestione della localizzazione  


\subsection*{Funzioni}
\begin{DoxyCompactItemize}
\item 
\hyperlink{__localization_8utils_8php_abc6a2e7ced3c930616301c295bb7ae40_abc6a2e7ced3c930616301c295bb7ae40}{get\-Current\-Localization} ()
\begin{DoxyCompactList}\small\item\em questa funzione stabilisce qual e' il contesto locale corrente \end{DoxyCompactList}\item 
\hyperlink{__localization_8utils_8php_a88a834da98fdf9fc6b1401b80b6f659b_a88a834da98fdf9fc6b1401b80b6f659b}{get\-Browser\-Language} ()
\begin{DoxyCompactList}\small\item\em questa funzione cerca di stabilire qual e' il linguaggio richiesto dal browser \end{DoxyCompactList}\item 
\hyperlink{__localization_8utils_8php_af0f0e95bfd2756bb3233710cdc1b4f76_af0f0e95bfd2756bb3233710cdc1b4f76}{get\-Request\-Language} ()
\begin{DoxyCompactList}\small\item\em questa funzione cerca di ricavare una lingua dall'array \$\-\_\-\-R\-E\-Q\-U\-E\-S\-T \end{DoxyCompactList}\item 
\hyperlink{__localization_8utils_8php_a498ef8ec688b4fb84ea124f9b4c21ce6_a498ef8ec688b4fb84ea124f9b4c21ce6}{get\-Domain\-Language} ()
\begin{DoxyCompactList}\small\item\em questa funzione cerca di ricavare una lingua dal dominio corrente \end{DoxyCompactList}\item 
\hyperlink{__localization_8utils_8php_a05eb5ced3beeebc2ed29248428b6a930_a05eb5ced3beeebc2ed29248428b6a930}{translate} (\$t, \$m= 'commons', \$c= 'generic', \$l=false)
\begin{DoxyCompactList}\small\item\em questa funzione \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Descrizione dettagliata}
questo file contiene le funzioni di supporto per la gestione della localizzazione la piattaforma Glis\-Web utilizza diversi standard per identificare i paesi e le lingue

riferimenti\-:

lo standard I\-S\-O 3166-\/1 alpha-\/2 \href{http://it.wikipedia.org/wiki/ISO_3166-1_alpha-2}{\tt http\-://it.\-wikipedia.\-org/wiki/\-I\-S\-O\-\_\-3166-\/1\-\_\-alpha-\/2} usato per i luoghi lo standard I\-S\-O 3166-\/1 alpha-\/3 \href{http://it.wikipedia.org/wiki/ISO_3166-1_alpha-3}{\tt http\-://it.\-wikipedia.\-org/wiki/\-I\-S\-O\-\_\-3166-\/1\-\_\-alpha-\/3} usato per i luoghi lo standard I\-S\-O 639-\/2 alpha-\/2 \href{http://it.wikipedia.org/wiki/ISO_639-2}{\tt http\-://it.\-wikipedia.\-org/wiki/\-I\-S\-O\-\_\-639-\/2} usato per i linguaggi lo standard I\-E\-T\-F language tag \href{http://en.wikipedia.org/wiki/IETF_language_tag}{\tt http\-://en.\-wikipedia.\-org/wiki/\-I\-E\-T\-F\-\_\-language\-\_\-tag} usato per i linguaggi 

\subsection{Documentazione delle funzioni}
\hypertarget{__localization_8utils_8php_a88a834da98fdf9fc6b1401b80b6f659b_a88a834da98fdf9fc6b1401b80b6f659b}{\index{\-\_\-localization.\-utils.\-php@{\-\_\-localization.\-utils.\-php}!get\-Browser\-Language@{get\-Browser\-Language}}
\index{get\-Browser\-Language@{get\-Browser\-Language}!_localization.utils.php@{\-\_\-localization.\-utils.\-php}}
\subsubsection[{get\-Browser\-Language}]{\setlength{\rightskip}{0pt plus 5cm}get\-Browser\-Language (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{dc/d26/__localization_8utils_8php_a88a834da98fdf9fc6b1401b80b6f659b_a88a834da98fdf9fc6b1401b80b6f659b}


questa funzione cerca di stabilire qual e' il linguaggio richiesto dal browser 

\hypertarget{__localization_8utils_8php_abc6a2e7ced3c930616301c295bb7ae40_abc6a2e7ced3c930616301c295bb7ae40}{\index{\-\_\-localization.\-utils.\-php@{\-\_\-localization.\-utils.\-php}!get\-Current\-Localization@{get\-Current\-Localization}}
\index{get\-Current\-Localization@{get\-Current\-Localization}!_localization.utils.php@{\-\_\-localization.\-utils.\-php}}
\subsubsection[{get\-Current\-Localization}]{\setlength{\rightskip}{0pt plus 5cm}get\-Current\-Localization (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{dc/d26/__localization_8utils_8php_abc6a2e7ced3c930616301c295bb7ae40_abc6a2e7ced3c930616301c295bb7ae40}


questa funzione stabilisce qual e' il contesto locale corrente 

\hypertarget{__localization_8utils_8php_a498ef8ec688b4fb84ea124f9b4c21ce6_a498ef8ec688b4fb84ea124f9b4c21ce6}{\index{\-\_\-localization.\-utils.\-php@{\-\_\-localization.\-utils.\-php}!get\-Domain\-Language@{get\-Domain\-Language}}
\index{get\-Domain\-Language@{get\-Domain\-Language}!_localization.utils.php@{\-\_\-localization.\-utils.\-php}}
\subsubsection[{get\-Domain\-Language}]{\setlength{\rightskip}{0pt plus 5cm}get\-Domain\-Language (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{dc/d26/__localization_8utils_8php_a498ef8ec688b4fb84ea124f9b4c21ce6_a498ef8ec688b4fb84ea124f9b4c21ce6}


questa funzione cerca di ricavare una lingua dal dominio corrente 

\hypertarget{__localization_8utils_8php_af0f0e95bfd2756bb3233710cdc1b4f76_af0f0e95bfd2756bb3233710cdc1b4f76}{\index{\-\_\-localization.\-utils.\-php@{\-\_\-localization.\-utils.\-php}!get\-Request\-Language@{get\-Request\-Language}}
\index{get\-Request\-Language@{get\-Request\-Language}!_localization.utils.php@{\-\_\-localization.\-utils.\-php}}
\subsubsection[{get\-Request\-Language}]{\setlength{\rightskip}{0pt plus 5cm}get\-Request\-Language (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{dc/d26/__localization_8utils_8php_af0f0e95bfd2756bb3233710cdc1b4f76_af0f0e95bfd2756bb3233710cdc1b4f76}


questa funzione cerca di ricavare una lingua dall'array \$\-\_\-\-R\-E\-Q\-U\-E\-S\-T 

\hypertarget{__localization_8utils_8php_a05eb5ced3beeebc2ed29248428b6a930_a05eb5ced3beeebc2ed29248428b6a930}{\index{\-\_\-localization.\-utils.\-php@{\-\_\-localization.\-utils.\-php}!translate@{translate}}
\index{translate@{translate}!_localization.utils.php@{\-\_\-localization.\-utils.\-php}}
\subsubsection[{translate}]{\setlength{\rightskip}{0pt plus 5cm}translate (
\begin{DoxyParamCaption}
\item[{}]{\$t, }
\item[{}]{\$m = {\ttfamily 'commons'}, }
\item[{}]{\$c = {\ttfamily 'generic'}, }
\item[{}]{\$l = {\ttfamily false}}
\end{DoxyParamCaption}
)}}\label{dc/d26/__localization_8utils_8php_a05eb5ced3beeebc2ed29248428b6a930_a05eb5ced3beeebc2ed29248428b6a930}


questa funzione 

