Pier Schipper
asked 9 years ago

Hello, I’ve translated DWQA in Dutch (still testing 😉 but because some Dutch words – and sentences – are longer then the English counterparts, they don’t fit.
This is especially awkard at the buttons for sorting the questions ( seen, answered, votes).
Is there a css-style or a template that I can change?

Also the text in the control panel doesn’t wrap good, see picture.![enter image description here](http://is.gd/JBsWvv "enter image title here")
In the picture you can also see that not all text-snippets are in the mo/po-files.

You can see DWQA in action on: http://is.gd/8PkXu1 (in Dutch)

1 Answers
DominicStaff
answered 9 years ago

Hi,

  • At the moment, our plugin have some problems should you can not translate the status, we will check and fix this issue as soon as possible. However, you also can change it now but it will still display English language after changing.
    If you want to change, you can open the template-functions.php file in the folder path "wp-content > plugins > dw-question-answer > inc". Find the from line 605 to line 626.
    Also, you can tell me detail about the position that you want to translate, I will help you.
  • About the text in the control panel doesn’t wrap good, you can send me username & password of your site (via private answer) for further checking.
    Regards,
wormgat
replied 9 years ago

Thank Dominic, for your quick response.

As for now, the status seems translated well, but the boxes behind them are to small. See http://goo.gl/IvWES0

Overall, the translation works well.
Only on some places. for instance: http://goo.gl/GcHFV2
I will collect those places, so you can add them to the po list in an upgrade.

Regarding the controlpanel, I’ll come back to you when I’ve installed a good membership/role-plugin.
Where as the Question-panel isn’t displaying correctly, the Answers-panel is: http://goo.gl/PI1rsA

Regards

dominic Staff
replied 9 years ago
  • To change the boxes, you can add the following code to the style.css file:
    .dwqa-list-question .dwqa-comment, .dwqa-list-question .dwqa-view, .dwqa-list-question .dwqa-vote {
    width: 62px;
    height: 47px;
    }
  • To translate the "Notify me when have new comment to my answer" section, you can open the template-functions.php file find the line 128 or add the following code to the .po file in the language folder.

    #../inc/template-functions.php:128
    msgid "Notify me when have new comment to my answer"
    msgstr ""
  • Hope this helps !

wormgat
replied 9 years ago

Almost: the boxes are at the right size, but now the Question and metatext overlaps the boxes. I’ve tried to ad some css to : .dwqa-list-question .dwqa-header .dwqa-title {
But I couldn’t make it work.

There seems to be another ‘floating’-problem: the avatar at the comment to the answer is to big, see: http://is.gd/TZdvkb

I’ve altered the po-file and translated it.

Again, thanks for your help!

dominic Staff
replied 9 years ago
  • You can add the following code to the style.css file:
    .dwqa-list-question .dwqa-footer-meta { right: 5px; }

  • About avatar issue, you can add the following code:
    .dwqa-single-question .dwqa-comment-author .avatar { width: 92px;}
    Hope this helps !
Powered by DW Question & Answer Pro