• Hello,

    Firstly I want to thank you for developing this excellent plugin.

    Secondly, I would have one single issue (question) regarding the translation of the question status messages that can be found on the question listing page under the question on the left side of the username by default. They are “Open” “Answered” etc.

    I know it is probably not the best way, but I translated the plugin via the php files in the plugin editor since I’m used to managing my plugins this way if the plugin has no designated translation menu/page. I’ve managed to do everything except this. I tried changing the the below pasted rows in the status.php (and searched for it in the rest of the files aswell):

    function dwqa_question_get_status_name( $status ) {  
    	$status = strtolower( $status );  
    	switch ( $status ) {
    		case 'resolved':
    			$message = __( 'Megoldva', 'dwqa' );
    			break;
    		case 'pending':
    			$message = __( 'Folyamatban', 'dwqa' );
    			break;
    		case 're-open':
    			$message = __( 'Újranyitás', 'dwqa' );
    			break;
    		case 'closed':
    			$message = __( 'Lezárva', 'dwqa' );
    			break;
    		case 'new':
    			$message = __( 'Új', 'dwqa' );
    			break;
    
    		case 'answered':
    			$message = __( 'Megválaszolva', 'dwqa' );
    			break;

    I found that most display text is next to a ‘dwqa’ tag and I guess this is the one I’ve been searching for here aswell. With everything else it worked, here it still displays the old “Open” and “Answered” tags.

    I would be very happy if you could help me with it and sorry if I ask for some extra work for you 🙂

    Greetings,

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author DesignWall

    (@designwall)

    Hi there,

    Thank you for your contribution to DW Q&A.

    You can translate in file content-single-question.php.

    Besides, our plugin’s language file hasn’t been updated properly, You can help us translate the plugin into your language and take note those parts unable to translate, then send us the details of your file language. We will update it in the next version of DW Q&A.

    Feel free to ask for any questions.

    Thread Starter traum0

    (@traum0)

    Hello,

    Thanks for the response, but my content-single-question.php file was already translated:

    							<option <?php selected( dwqa_question_status(), 'open' ) ?> value="open"><?php _e( 'Nyitott', 'dwqa' ) ?></option>
    							<option <?php selected( dwqa_question_status(), 'closed' ) ?> value="closed"><?php _e( 'Lezárva', 'dwqa' ) ?></option>
    							<option <?php selected( dwqa_question_status(), 'resolved' ) ?> value="resolved"><?php _e( 'Megválaszolva', 'dwqa' ) ?></option>
    						</optgroup>
    					</select>

    besides this file seems to only control the page that you get when clicking on an actual question and you get a dropdown menu where you can decide to mark it as close/open/etc.

    What I’m having a problem with is to activate the translation on this:

    View post on imgur.com

    Thanks again for taking the time to help.

    • This reply was modified 8 years, 9 months ago by traum0.
    • This reply was modified 8 years, 9 months ago by traum0.
    Thread Starter traum0

    (@traum0)

    Can you help please? Issue is still not resolved.

    • This reply was modified 8 years, 8 months ago by traum0.
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Translation of status msg’ is closed to new replies.