Executes the specified operation (methode) for the informed object.
1 java.getAvailableLocales
<java.getAvailableLocales lang='lang'/>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Alang | string | Language for which the premises are required. |
Returns | |
---|---|
Type | Description |
ResultSet | The ResultSet with the locals, for each registers the data partner cde-description. |
Example
Returns the available locals for the language 'es'.
Copy
CODE: . DESC: spanish CODE: AR. DESC: spanish (Argentina) CODE: BO. DESC: spanish (Bolivia) CODE: CL. DESC: spanish (Chile) CODE: CO. DESC: spanish (Colombia) CODE: CR. DESC: spanish (Costa Rica) CODE: DO. DESC: spanish (República Dominicana) CODE: EC. DESC: spanish (Ecuador) CODE: ES. DESC: spanish (España) CODE: GT. DESC: spanish (Guatemala) CODE: HN. DESC: spanish (Honduras) CODE: MX. DESC: spanish (México) CODE: NI. DESC: spanish (Nicaragua) CODE: PA. DESC: spanish (Panamá) CODE: PE. DESC: spanish (Perú) CODE: PR. DESC: spanish (Puerto Rico) CODE: PY. DESC: spanish (Paraguay) CODE: SV. DESC: spanish (El Salvador) CODE: US. DESC: spanish (Estados Unidos) CODE: UY. DESC: spanish (Uruguay) CODE: VE. DESC: spanish (Venezuela)
Copy
<xsql-script name='getAvailableLocales'> <body> <foreach> <in prefix='m_'> <java.getAvailableLocales lang='es' /> </in> <do> <println>CODE: <m_code />. DESC: <m_desc /></println> </do> </foreach> </body> </xsql-script>