Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+4 votes
1.7k views
in Q2A Core by

Unlike the other language, Bengali language has it's own numerical symbols/characters. For 0-9, Bengali Numerical system has 10 different symbols. When the language pack for Bengali is selected, everything (letters, words, sentences etc) of the q2a site changes to Bengali, except te numerical system. The numerical system stays in English.

Can anyone please help me to find a way to show the Bengali numerical system, instead of the English numerical system?

I am using q2a 1.7 in a localhost. The Bengali language file for q2a is listed here.

Q2A version: 1.7

1 Answer

+5 votes
by
Bad news for you. It is not possible. I've been working in something very related to it a few weeks ago, as you can see here: https://github.com/q2a/question2answer/pull/188

This is a first step towards that direction. It basically allows to change thousand and decimal separators by sending numbers through a function that the end user could override using a plugin. In that override any number can be changed into whatever character you want.

However, there are many numbers spread in the Q2A core code that don't need to be formatted (for point and decimal separators), so those ones won't be sent through the function not allowing them to be changed. That's quite a lot of work because it requires going through each line of the core and see if a number is output. If it is, it should go through the function I've added to that pull request. Once that is done then you can override the function with whatever you want.

And the worst thing, probably, is that the pull request is in the Q2A 1.8 queue... so don't expect this soon!
by
Well... I am not that much of a "code guy". So I didn't understand the most of the things you've discussed. :p But still, It's like a light of hope that, someone is working on that.

By the way, can you please tell me how can I use your changes/modifications in my localhost setup?
by
You can either monitor the pull request and, once it is merged to 1.8, just download the 1.8 branch from the GitHub repository. If you want to try it out right away, you can get it directly from my fork then you can download the code from here: https://github.com/pupi1985/question2answer/tree/patch-48

Anyway, note that the feature you're looking for is not implemented. Even if it was, implementing the appropriate translation to your own language will require someone who knows how to create a Q2A plugin, enough PHP to implement the translation logic and knowledge of the language being translated
by
Well ... then I guess, I've to wait for some one to implement this! :(
Thanks anyway. :)
...