Home › Forums › Legacy Support › Support queries › Translation issues › Translation bugs in assignments plugin
Tagged: assignmets, bugs, translations
- This topic has 8 replies, 2 voices, and was last updated 7 years, 11 months ago by Skywalker [ ex VibeThemes].
Viewing 9 posts - 1 through 9 (of 9 total)
-
AuthorPosts
-
January 18, 2017 at 6:24 am #90518rumitruParticipantCan't translate 2 strings in wplms-assignments plugin, screenshot: https://yadi.sk/i/QLrfR0Ox39ahVQ Looks like a bugs in assignmets.php file (wplms assignments plugin):
- at line 751
echo '<i class="icon-clock"></i> '.sprintf(_x('Submitted %s','assignment submission time','vibe'),human_time_diff($time,time()));
- at line 682 ('wplms-assignments')
<h3 class="heading"><?php _e('Assignment Results','wplms-assignment'); ?></h3>
January 18, 2017 at 6:31 am #90521rumitruParticipantand one more at line 784:echo '<div class="download_attachment"><i class="icon-download-3"></i> '.__('Download Attachment','vibe').'</div>';
Missing translation string in vibe.pot file, you can add it mannually via Loco translate plugin or change to: .__('Download Attachment','wplms-assignments').January 18, 2017 at 6:38 am #90523rumitruParticipantand same problem at line 771:echo '<h3 class="heading">'.__('My Submission','vibe').'</h3>';
January 18, 2017 at 9:16 am #90561rumitruParticipantand one more at line 115 (can't translate with .pot file, only plugin source change)<input type="number" value="" class="form_field" id="assignment_marks" placeholder="Enter marks out of '.$max_marks.'" />
January 19, 2017 at 1:24 pm #90878Skywalker [ ex VibeThemes]ParticipantFollow these steps. 1. Go to wp-admin->plugins->wplms assignments->click on edit template->click on sync and save the template. After that go to 2 .Go to wp-admin->plugins->wplms assignments->select your language->click on sync->find the string you want to translate and click on save.January 20, 2017 at 8:42 am #91032rumitruParticipantYou mean "Loco translate"? Yes, i know, but it's not what i talking about, it's bug in wplms-assigments plugin. 1: <h3 class="heading"><?php _e('Assignment Results','wplms-assignment'); ?></h3> - not 'wplms-assignment', right: 'wplms-assignments', this can not be translated via Loco plugin, only source change 2: echo '<i class="icon-clock"></i> '.sprintf(_x('Submitted %s','assignment submission time','vibe'),human_time_diff($time,time())); - don't know why this string don't work. 3: <input type="number" value="" class="form_field" id="assignment_marks" placeholder="Enter marks out of '.$max_marks.'" /> - this can not be translated via Loco plugin, only source change About other my posts - yes, it's can be translated by editing templates in Loco translate.January 20, 2017 at 10:39 am #91048Skywalker [ ex VibeThemes]ParticipantIt is not a bug. You simply need to sync the template with the source code and then sync the po/mo files with the template. The text domain is correct in our code.January 20, 2017 at 11:50 am #91068rumitruParticipantNot correct, see my last post again, please. How to translate placeholder here? It's don't have any text domain: <input id="assignment_marks" class="form_field" type="number" value="" placeholder="Enter marks out of '.$max_marks.'" /> Here is wrong text-domain: <h3 class="heading"><?php _e('Assignment Results','wplms-assignment'); ?></h3> WPLMS Assignments plugin have 'wplms-assignmentS' text-domain, NOT 'wplms-assignment'.January 21, 2017 at 7:57 am #91161Skywalker [ ex VibeThemes]ParticipantWe have marked this as a bug. Track this link : https://trello.com/c/LZ7gofaK -
AuthorPosts
Viewing 9 posts - 1 through 9 (of 9 total)
- The topic ‘Translation bugs in assignments plugin’ is closed to new replies.