format: support %Id conversion characters in format.js

This is needed for languages which translate numbers with an
alternative representation, such as Persian.

https://bugzilla.gnome.org/show_bug.cgi?id=673106
This commit is contained in:
Cosimo Cecchi
2012-03-29 15:29:48 -04:00
parent 8a11ab7d96
commit 6d82aefad4
3 changed files with 28 additions and 2 deletions

View File

@ -868,3 +868,15 @@ shell_util_wifexited (int status,
return ret;
}
/**
* shell_format_int_alternative_output:
* @intval:
*
* Returns: (transfer full):
*/
gchar *
shell_format_int_alternative_output (gint intval)
{
return g_strdup_printf ("%Id", intval);
}