forked from leftypol/leftypol
js i18n: misc fixes; quick-reply.js i18n
Conflicts: tools/i18n_compile.php
This commit is contained in:
parent
701cf42eef
commit
61a305a1a2
2 changed files with 5 additions and 5 deletions
|
@ -2,12 +2,12 @@
|
|||
|
||||
/* gettext-compatible _ function, example of usage:
|
||||
*
|
||||
* > // Loading pl_PL.json here (containing polish translation strings generated by tools/locale_compile.php)
|
||||
* > // Loading pl_PL.json here (containing polish translation strings generated by tools/i18n_compile.php)
|
||||
* > alert(_("Hello!"));
|
||||
* Witaj!
|
||||
*/
|
||||
function _(s) {
|
||||
return (typeof tb_l10n != 'undefined' && typeof tb_l10n[s] != 'undefined') ? tb_l10n[s] : s;
|
||||
return (typeof l10n != 'undefined' && typeof l10n[s] != 'undefined') ? l10n[s] : s;
|
||||
}
|
||||
|
||||
/* printf-like formatting function, example of usage:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue