elexis
5a691463a3
Update sprintf.js library from 1.0.2 to 1.1.2.
...
Includes a changeset that removes a SpiderMonkey segfault from occurring
(when passing an XmppClient JS::Heap or JS::PersistentRooted GUIMessage
following 9023f4bebb ), refs #5636 .
https://bugzilla.mozilla.org/show_bug.cgi?id=1234425
https://bugzilla.mozilla.org/show_bug.cgi?id=1238475
https://github.com/alexei/sprintf.js/commit/61c795624204883948c0e19f8af208f5359e6fdb
sprintf.js commits that add new features:
padding (intent) support:
https://github.com/alexei/sprintf.js/commit/9e846915e273ebeb12b4decc59af94d596e5ee92
Adds support for the %g placeholder
g — yields a float as is; see notes on precision above
https://github.com/alexei/sprintf.js/commit/a60a5705fcb589b55373b1f15f2b4b5b5892f19c
Adds type option
T — yields the type of the argument1
https://github.com/alexei/sprintf.js/commit/c31c24ecefe92abff04fc38f860ad50c97bebf62
Adds support for the %t (boolean) type specifier
t — yields true or false
https://github.com/alexei/sprintf.js/commit/b92b530c7a4c6ef98632339e05cdea8a041da857
Adds support for returning primitive values through the %v specifier
v — yields the primitive value of the specified argument
https://github.com/alexei/sprintf.js/commit/f18037240bbbc7d53ede6be9a1d7bc964a75e309
The other commits clean sprintf internals and do not change the existing
formats, see:
https://github.com/alexei/sprintf.js/blob/1.0.2/src/sprintf.js
https://github.com/alexei/sprintf.js/blob/1.1.2/src/sprintf.js
https://github.com/alexei/sprintf.js/blob/1.1.2/README.md
Differential Revision: https://code.wildfiregames.com/D2421
Tested by: Angen
This was SVN commit r23157.
2019-11-14 13:00:35 +00:00
elexis
b1a116db37
Move translate functions from mod/globalscripts/ to mod/gui/common/.
...
This throws reference errors at JS compile time when attempting to
translate strings in the simulation.
Differential Revision: https://code.wildfiregames.com/D1075
Refs D619
Reviewed By: bb
This was SVN commit r20549.
2017-11-28 18:48:52 +00:00
elexis
2ad6dc478c
JS l10n cleanup.
...
Remove unneeded variable creation and duplicate comments, simplify
isTranslatableString and capitalize globals.
Differential Revision: https://code.wildfiregames.com/D390
Reviewed By: leper
This was SVN commit r19487.
2017-05-01 00:09:13 +00:00
elexis
417c84870c
Actually remove trailing tabs from source/.
...
This was SVN commit r18991.
2016-11-23 14:09:58 +00:00
elexis
6149dd3841
Actually remove trailing whitespace for non-header files as well.
...
This was SVN commit r18989.
2016-11-23 13:02:58 +00:00
elexis
9e39d6b46c
Implement markForPluralTranslation() which allows to translate plural-strings sent by the simulation.
...
Use it for the build-restriction notifications.
Based on patch by Safa Alfulaij, fixes #3081 .
This was SVN commit r17398.
2015-12-06 23:56:03 +00:00
Itms
f756cab1f8
Update sprintf.js to the latest version 1.0.2 ( https://github.com/alexei/sprintf.js ).
...
Update suggested and patch generated by Shane, fixes #2859 .
This was SVN commit r15916.
2014-10-29 23:23:11 +00:00
leper
be2f0e69fc
Make the modmod standalone.
...
Mount public in case we are starting Atlas and no mods are specified in
the config.
If users remove all mods and save this to the config and try to start
Atlas it will
crash, as it cannot find some needed files.
This was SVN commit r15678.
2014-08-25 16:38:54 +00:00