SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 353 | Next

James Kennard

"Mastering Joomla! 1.5 Extension and Framework Development"


As with JText::sprintf(), the extra parameters are inserted into the translated
string at the defined points, which are defined using the type specifiers defined in the
table given on the previous page.
This example returns the byte length (not UTF-8 aware) of Saved %d items and
outputs the translated string:
$length = JText::printf('SAVED_ITEMS', 3);
The extra parameters used by the JText sprintf() and sprint()
methods are not translated. If we want to translate them, we must do
so before passing them.
Defining Translations
Different languages are identified by tags defined by RFC 3066. Each language has its
own separate folder and will have many translation files, all of which will be held in
the same folder. This table identifies some of the more common language tags:
Language Tag
English, Britain en-GB
French, France fr-FR
German, Germany de-DE
Portuguese, Portugal Pt-PT
Spanish, Spain es-ES
Translations are stored in INI files in the root language and administrator language
directories.


Pages:
341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6