WordPress.org

Ready to get started?Download WordPress

Forums

Resume Submissions & Job Postings
[resolved] The problem with the translation! (12 posts)

  1. sayansk
    Member
    Posted 1 year ago #

    Peace be with you. Explain to me why the plugin does not use translation translation? All I found on the net - it is associated with several textdomain. Tell me how to translate your plugin? After all, even with PoEdit translation is not displayed! Here's what he wrote:
    Error: The actual loaded translation content does not match the textdomain: resume-submissions-job-postings
    Expect, that any text you translate will not occure as long as the textdomain is mismatching!
    This is a coding issue at the source files you try to translate, please contact the original Author and explain this mismatch.

    http://wordpress.org/extend/plugins/resume-submissions-job-postings/

  2. kandrews
    Member
    Plugin Author

    Posted 1 year ago #

    This is a known issue with the displays not have the text domain on them

    example:
    _e( 'Regarding Job' );
    should be:
    _e( 'Regarding Job', 'resume-submissions-job-postings' );

    There are other text display that just display in english.

    Like I said in the other post, other projects have been taking up my time.

  3. sayansk
    Member
    Posted 1 year ago #

    Thanks for the reply. Did as you said. The error disappeared. MO file successfully generated. However, not a single word on the site is not translated. Maybe I missed something? I recently in the WP ...

  4. sayansk
    Member
    Posted 1 year ago #

    Has deactivated the plugin, after deciding to use another. In the other plugin also found many problems. Activated the Job Manager again and, behold! Translation work! :)

  5. sayansk
    Member
    Posted 1 year ago #

    After the next update the translation again fell off. .. Now I have it already I can't return :( Tell me, what do I do?

    (После очередного обновления перевод снова слетел... Теперь я его уже никак не могу возвратить :( Подскажите, что мне делать?)

  6. sayansk
    Member
    Posted 1 year ago #

    1) Create a resume-submissions-job-postings-ru_RU.po automatically by the plugin "Lotsalisation"
    2) Plugin-localizator does not generate mo and swears on textdomain.
    3) I am all in scripts __ ('english-text') and _e ('english-text'), change them on __ ('english-text', 'resume-submissions-job-postings') and _e (' english -text ',' resume-submissions-job-postings').
    4) The error disappears, the file "mo" is generated without problems
    5) I translate "po" for Russian, generating "mo" - there is no effect.

    What I left out?

  7. kandrews
    Member
    Plugin Author

    Posted 1 year ago #

    From what I know, you did everything correctly.

    Are those files in the languages folder of this plugin?
    Does the following code still exists in the file resume-submission.php?

    function resume_load_textdomain() {
    	load_plugin_textdomain( 'resume-submissions-job-postings', false, resume_get_plugin_dir( 'path' ) . '/languages/' );
    }
    add_action( 'init', 'resume_load_textdomain' );
  8. kandrews
    Member
    Plugin Author

    Posted 1 year ago #

    Actually try switching:

    function resume_load_textdomain() {
    	load_plugin_textdomain( 'resume-submissions-job-postings', false, resume_get_plugin_dir( 'path' ) . '/languages/' );
    }
    add_action( 'init', 'resume_load_textdomain' );

    To:

    function resume_load_textdomain() {
    	load_plugin_textdomain( 'resume-submissions-job-postings', false, resume_get_plugin_dir( 'path' ) . '/languages/' );
    }
    add_action( 'plugins_loaded', 'resume_load_textdomain' );
  9. sayansk
    Member
    Posted 1 year ago #

    Changed the "init" to "plugins_loaded":
    Plug-in "Localization" began to swear at "texdomain". Scan files produced by this plugin. The error disappeared. Generated mo.
    nothing has changed: (

  10. sayansk
    Member
    Posted 12 months ago #

    Apparently the author of the plugin is very little free time. Maybe someone is faced with such a problem? You can tell?

  11. donato.lt
    Member
    Posted 12 months ago #

    Resume-submission.php file, line ~ 80.
    Change this:

    function resume_load_textdomain() {
    	load_plugin_textdomain( 'resume-submissions-job-postings', false, resume_get_plugin_dir( 'path' ) . '/languages/' );
    }

    To:

    function resume_load_textdomain() {
    	load_plugin_textdomain( 'resume-submissions-job-postings', false, 'resume-submissions-job-postings/languages' );
    }
  12. sayansk
    Member
    Posted 12 months ago #

    donato.lt, thank you very very very much, it worked!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic