It would be nice if PyQtGraph had support for localizations (foreign language support).
In my application that uses PyQtGraph, we have a requirement that a future version of our application support foreign languages. In preparation for this, since I started coding it, I have been wrapping all English strings that appear in my application and are presented to the user in the " *self.tr()*" method. Translation is then easily accomplished by the tools provided by Qt. I think it would be sufficient to simply wrap all the English strings that appear in the popup menu in self.tr(). Then the menu can be translated. I don't think it is necessary to do this for the examples (and I'm not going to be translating the examples) and I don't think it is necessary to add more sophisticated localization features, such as number formatting options (in some languages, the comma is used instead of the period for the decimal point). The popup menu is the only thing I think needs to be addressed to support foreign languages. It would be undesirable to also wrap the English strings that appear in exceptions that are raised. Doing so would include these strings in the list of strings presented to the person doing the translations and since these are not normally seen, translating them is unnecessary. Luke, would you please consider adding this to a future release of PyQtGraph? -- You received this message because you are subscribed to the Google Groups "pyqtgraph" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/a8442da3-ce66-4de6-9975-d6e03452c9e4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
