GNOME Bugzilla – Bug 673092
Conversion characters are unsupported
Last modified: 2012-03-29 19:40:24 UTC
On non-latin languages with local numbers (like Persian) we use %I conversion modifier to show the local shape numbers should be used instead of Latin numbers. Whenever I click on a document for preview, it shows and error: Unable to load "%s" for preview Unsupported conversion charecter %I I replaced all %Id on translations to %d and preview works now. Seems gnome-documents have some problems with these conversion modifiers.
Yeah; this is because we can't use the standard library implementation of printf() directly from Javascript, and our implementation ([1], but it's copied verbatim from gnome-shell's implementation), doesn't support that modifier. A fix for this would be to implement the format() JS method on top of an introspected C helper which uses the standard printf() from glibc. As a temporary workaround, my suggestion is not to use that modifier in translations. [1] http://git.gnome.org/browse/gnome-documents/tree/src/format.js
You should be wrong in this case. As far as I know, gnome-shell supports these modifiers and we're using it. At first it wasn't possible too, but I'm sure they implemented it, I searched for it but couldn't find the specific bug.
(In reply to comment #2) > You should be wrong in this case. As far as I know, gnome-shell supports these > modifiers and we're using it. > At first it wasn't possible too, but I'm sure they implemented it, I searched > for it but couldn't find the specific bug. I don't see how that could possibly work (for translated strings coming from JS files), since gnome-shell uses the same code as gnome-documents there.
Oops, seems that you're right. what I was talking about was #648678 that is about dates. Should I file a bug for gnome-shell?
Sorry, this bug is what I mentioned above https://bugzilla.gnome.org/show_bug.cgi?id=648678
Okay, I now pushed a fix to gnome-documents that makes it support %Id conversion specifiers as requested. I also prepared a similar patch for gnome-shell, and cloned this bug there to bug 673106.
Thanks man! That was so quick! I reverted my change to translation files now :) Thanks again.